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)
- error during container init: unable to apply apparmor profile HOT 1
- Updating auto1111 HOT 1
- Stuck at "removing nvidia-cudnn-cu11" forever HOT 4
- Unexpected error from cudaGetDeviceCount() HOT 13
- Docker install fails due to "missing" library HOT 11
- Automatic UI and Invoke fail to start (throwing exceptions) HOT 12
- Cannot load container on Ubuntu 24.04 HOT 4
- ModuleNotFoundError: No module named 'torch._custom_ops' HOT 3
- Cannot install auto HOT 1
- Redundant code in Auto
- Failed building in windows HOT 1
- install ComfyUI Manager when building the Comfy docker image
- Unable to build the "auto" (AUTOMATIC1111) image via docker build HOT 2
- ImportError: cannot import name 'TypeIs' HOT 13
- Model Checkpoint Not Found: Unable to Load Stable Diffusion Model HOT 1
- ImportError: cannot import name 'TypeIs' from 'typing_extensions' HOT 1
- Comfy installed but Error occurred when executing CLIPTextEncode HOT 4
- how do I add unet for FLUX-dev?
- After building to run, get 12 file errors and ImportError HOT 1
- Two files missing - Repository not found in hugging face - error 24 HOT 7
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.