-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Add support for multiple separate style*.csv files #14081
Conversation
…usion-webui into multiple-style-files
Multiple style files
…ble-diffusion-webui into multiple-style-files
Ignore "do not save" styles
…on-webui into multiple-style-files
Merge multiple-style-files branch to Dev
I am usually inclined to not want to add changes to the code unless there is demand for them... Can some users comment on desirability of this feature? |
well .... I can see that you have made changes too no comment on whether or not this should be merged |
The feature request for this is my own. I hadn't created the Issue before, but I have now: |
Fix for Issue 14005
@cjj1977 please squash your commits |
Apologies for my ignorance/bad etiquette! I have moved my customizations to ".git\info\exclude". |
I didn't squash commits. Revoking this PR & will raise a replacement one, hopefully cleaner. |
Description
style*.csv
; this allows users to split styles between different CSV files (e.g. photographic, illustrative, etc.) and use downloaded CSV files (e.g. the Fooocus style list) without needing to merge them into one single file.styles.py
file; no changes required elsewhere within the application to support this. Interfaces to exposed functions/methods have not been broken.Usage
To enable the multiple CSV functionality it is sufficient to add or amend the
--styles-file
command-line argument to include a wildcard*
in the CSV file name, e.g.--styles-file=\path\to\styles*.csv
. This will load all files matching the wildcarded file name.The styles drop-down groups styles according to the file they were loaded from and inserts markers within the list to indicate which file the subsequent styles have been loaded from.
Edited styles are pushed to the bottom of the list of styles (no change to existing behavior). When an existing style is edited and saved, it will be saved to the same file that it was loaded from. New styles are always added back to the default
styles.csv
.If the command line argument is omitted, or points to exactly one file, then the default behavior of using just that one file is maintained.
Checklist: