Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: choose random style #2855

Merged
merged 3 commits into from
May 9, 2024

Conversation

mashb1t
Copy link
Collaborator

@mashb1t mashb1t commented May 2, 2024

closes #2795

Implements a new style selection checkbox "Random Style".

image

Still torn between this implementation or the idea of having a checkbox "use random styles" (enbable/disable) + input for amount of styles to randomize, but i found this one more flexible as each image has its own single random style, which is tied to the task seed, and less styles offer better quality anyways.

Metadata substitution has already been implemenented for convenience, so users don't see "Random" as style in history log or image metadata, despite it working correctly as the base task seed would cause regeneration to work with the same style as random would be resolved correctly.

@mashb1t mashb1t requested a review from lllyasviel as a code owner May 2, 2024 20:33
@mashb1t mashb1t added the Size S small change, basically no testing needed label May 2, 2024
@mashb1t mashb1t added this to the 2.4.0 milestone May 2, 2024
@mashb1t mashb1t changed the base branch from main to develop May 4, 2024 23:01
@mashb1t mashb1t merged commit f54364f into lllyasviel:develop May 9, 2024
csokun pushed a commit to csokun/Fooocus that referenced this pull request Jun 16, 2024
* feat: add random style

* feat: rename random to random style, add translation

* feat: add preview image for random style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size S small change, basically no testing needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Random Style Button
1 participant