Comments (15)
Thanks @fpgaminer I managed to get it up and running with the correct cli args, I also updated the Readme.
@sausax Can you try from again with version 0.1.0
?
from stable-diffusion-webui-docker.
I will give it a look today after work!
from stable-diffusion-webui-docker.
@sausax Unfortunately, the UI in its latest version does not seems to provide a file upload for the pre-made embedding, unlike what is mentioned here, or at least I could not find it, therefore I cannot implement / test this feature.
if you know where I can find it that would be great! otherwise I would suggest you get in contact with author of the library, either here https://github.com/hlky/sd-enable-textual-inversion or here https://github.com/hlky/stable-diffusion
from stable-diffusion-webui-docker.
This is weird. The code is present here in the original repo: https://github.com/hlky/stable-diffusion-webui/blob/master/frontend/frontend.py#L99
But it is not coming up in the ui by the docker container.
from stable-diffusion-webui-docker.
The model needs to have the an embedding_manager
attribute, which seems to be done here, However, the LatentDiffusion
class is NOT instantiated in the WebUI.
from stable-diffusion-webui-docker.
The sd-enable repo also has a modified config, which includes a personalization_config
key. Does that perhaps get the WebUI to change its behavior?
from stable-diffusion-webui-docker.
@fpgaminer it might be that cp -rf
that I used is not enough, I will dig deeper!
from stable-diffusion-webui-docker.
I have made sure that the the new configuration is included. In the attached log you can see that the personalization_config
is part of main repo.
Yet still, I can't see anything new in the UI
This is the code I used in the dockerfile to copy the stuff over, feel fee to experiment with it
RUN apt-get update && apt install rsync -y && apt-get clean
RUN git clone https://github.com/hlky/sd-enable-textual-inversion.git && cd sd-enable-textual-inversion && \
git reset --hard 08f9b5046552d17cf7327b30a98410222741b070
RUN rsync -a /sd-enable-textual-inversion/ /stable-diffusion/
RUN cat /stable-diffusion/configs/stable-diffusion/v1-inference.yaml
from stable-diffusion-webui-docker.
Remove the --optimized
and --optimized-turbo
flags and the UI will show:
EDIT: The reason for this is because webui.py loads the optimized config and optimized models with those flags. I guess the textual tweaks were only implemented in the stock models for now. They'd need to be ported over. But yeah, for now, copy everything over like the repo says, drop the optimized flags, and it looks like it'll work (I'm training an embedding right now so can't directly test).
from stable-diffusion-webui-docker.
Okay, got it fully working. Also need to add the --no-half
flag, otherwise it errors out during generation. Tested using my own embedding. FYI, textual inversion doesn't work great for SD right now anyway. I think they have it tweaked for plain Latent Diffusion, not the specific Stable Diffusion model. So we'll need to wait for another update there to get better results.
from stable-diffusion-webui-docker.
@fpgaminer can you create a PR with the fix ?
from stable-diffusion-webui-docker.
I'll be a bit busy so probably not. Sounds like @AbdBarho already has a working Dockerfile update; just needs the README updated to mention removing those flags to get embeddings working.
from stable-diffusion-webui-docker.
@AbdBarho Getting a new error when trying to build the latest master
$ docker-compose build
Building model
Sending build context to Docker daemon 9.216kB
Error response from daemon: dockerfile parse error line 33: unknown instruction: GIT
ERROR: Service 'model' failed to build : Build failed
from stable-diffusion-webui-docker.
@sausax can you try again with docker compose
instead of docker-compose
? one of them is v1 the other one is v2.
I am using Heredoc syntax which is modern feature, you need a relatively modern docker version (from the last half year or so)
from stable-diffusion-webui-docker.
That worked :) Thanks @AbdBarho
from stable-diffusion-webui-docker.
Related Issues (20)
- Windows 10: pytorch error on build HOT 7
- rsync: chown "/data/models/VAE-approx/.model.pt.pA3bXk" failed: Operation not permitted (1) HOT 1
- OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. HOT 6
- Taking up 16 GB of Ram on startup - automatically renders maybe? HOT 5
- Undefined Symbol Error HOT 3
- can not download stablediffusion.git HOT 17
- Turn off automatic download HOT 5
- Binaries HOT 1
- scripts HOT 1
- 'docker' is not recognized as the name of a cmdlet, function, script file, or operable program HOT 2
- E: You don't have enough free space in /var/cache/apt/archives/. HOT 2
- I update 1.6 to 1.7 HOT 1
- use AnimateDiff mportError: cannot import name 'animatediff_i2ibatch
- comfy 的docker image是否沒有更新了
- exec format error HOT 2
- ComfyUI Out of Date HOT 3
- Cannot start due to wcwidth error
- error during container init: unable to apply apparmor profile
- Updating auto1111 HOT 1
- Stuck at "removing nvidia-cudnn-cu11" forever HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui-docker.