-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support styles.csv in AUTOMATIC1111 #386
Conversation
Can you test #180 (comment) |
I tested it, but it doesn't work. Just as you already discovered the changes are not written back into the host file. The file After clean container startup:
After saving a style:
File contents of styles.csv:
File contents of styles.csv.bak:
So symlinking won't work. Interestingly my solution isn't working as well. I thought: why would my solution work then?
So I guess we had to mount a folder in order to make that work. I will take a look into AUTOMATIC1111's repo to see if we can find a simpler solution on their side, possible by adding a flag to disable this backup strategy. I'll come back to you in a couple of days. Edit: |
Thank you for your investigation, please don't invest too much time into this, in my book it is a 'nice to have'. |
I proposed a solution at AUTOMATIC1111's repo. I really appreciate the functionality to quickly save some snippets. I am going to use my changes as of now, hopefully we can merge it into the repos. |
Here is my temporary patch on how I use it personally in case anyone wants to copy it until we have sorted things out correctly: wget https://github.com/gmasil/stable-diffusion-webui-docker/commit/90f0b1a8e4f64890a7c05a80f752245f820edede.patch
git apply 90f0b1a8e4f64890a7c05a80f752245f820edede.patch |
I was able to get this working with only: MOUNTS["${ROOT}/styles.csv"]="/data/styles.csv" However I did extract a premade styles.csv to |
Are you sure that you can save new styles from webui? Is it really persisted to your host file? |
The styles.csv saved externally is read and loaded correctly, however it seems saving new styles will overwrite the symlink instead of following it, thus preventing the new additions. |
I see that there is little interest in this feature, so I am going to close this PR for now. |
@LEv145 it has been merged to dev, that means we still have to wait until it is merged to master and then we have to check what we have to do to use the latest revision as there are a lot of changes. |
Merged to master! |
Nice! I will wait a day or two for emergency bug fixes and then try to update. The last version was so buggy I did not dare to merge it #379 |
And it doesn't count as a contribution when its merged to dev first :P |
Follow up to #386 after AUTOMATIC1111/stable-diffusion-webui#9334 has been merged. Closes #435
Follow up to AbdBarho#386 after AUTOMATIC1111/stable-diffusion-webui#9334 has been merged. Closes AbdBarho#435
Follow up to AbdBarho#386 after AUTOMATIC1111/stable-diffusion-webui#9334 has been merged. Closes AbdBarho#435
I noticed that adding styles in AUTOMATIC1111 web UI is not persisted to host fs.
I added a simple example
styles.csv
containing some common negative expressions and added a mount indocker-compose.yml
.A default file must be present as the mount will cause problems when the file is missing all together.
My hopefully sane default negatives are
but I am open for any suggestions, I just wanted to add something as an example.
I also added
styles.csv
to.gitignore
file, as changes will be made by users which should not be upstreamed into the repository.