lllyasviel / Fooocus

Focus on prompting and generating
GNU General Public License v3.0
41.67k stars 5.94k forks source link

Style dropdown instead of / in addition to checkboxes #740

Open diaolulu1 opened 1 year ago

diaolulu1 commented 1 year ago

I suggest integrating the styles into the settings. Line 189 of webui.py

            performance_selection = gr.Radio(label='Performance', choices=['Speed', 'Quality'], value='Speed')
            style_selections = gr.Dropdown(label='Style',choices=legal_style_names,
                                           value=modules.path.default_styles,
                                           multiselect=True)
            aspect_ratios_selection = gr.Dropdown(label='Aspect Ratios', choices=list(aspect_ratios.keys()),
                                               value=modules.path.default_aspect_ratio, info='width × height')
barepixels commented 1 year ago

With your mod:

Under the settings tab

Aspect Ratios pulldown menu looks great and WORKS The style pulldown menu looks great BUT not working

setting

Under the style tab (still exists)

Default checkboxes are still there and WORKS

style

I think you need to remove the style pulldown from the Setting tab and convert the Style tab to pulldown.

Would be cool if under Style tab to have 2 pull down. One for style and one for Artist Style

Come to think of it, it will be cleaner if we have 3 pull down in the Setting tab, Aspect ratio, Style, and Artist style. No style tab would be needed. Save room for future features.

diaolulu1 commented 1 year ago

感谢敏神回复!

diaolulu1 commented 1 year ago

Yes, I indeed have removed the Style tab, it has been replaced by the dropdown menu. It wouldn't work without removing it.

barepixels commented 1 year ago

Instruction for the new mod?