Giter Site home page Giter Site logo

Comments (15)

AbdBarho avatar AbdBarho commented on May 14, 2024 1

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.

AbdBarho avatar AbdBarho commented on May 14, 2024

I will give it a look today after work!

from stable-diffusion-webui-docker.

AbdBarho avatar AbdBarho commented on May 14, 2024

@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.

sausax avatar sausax commented on May 14, 2024

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.

AbdBarho avatar AbdBarho commented on May 14, 2024

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.

fpgaminer avatar fpgaminer commented on May 14, 2024

https://github.com/hlky/sd-enable-textual-inversion/blob/08f9b5046552d17cf7327b30a98410222741b070/configs/stable-diffusion/v1-inference.yaml#L20

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.

AbdBarho avatar AbdBarho commented on May 14, 2024

@fpgaminer it might be that cp -rf that I used is not enough, I will dig deeper!

from stable-diffusion-webui-docker.

AbdBarho avatar AbdBarho commented on May 14, 2024

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.

log.txt

Yet still, I can't see anything new in the UI
localhost_7860_

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.

fpgaminer avatar fpgaminer commented on May 14, 2024

Remove the --optimized and --optimized-turbo flags and the UI will show:

Screen Shot 2022-08-30 at 3 59 22 PM

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.

fpgaminer avatar fpgaminer commented on May 14, 2024

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.

Screen Shot 2022-08-30 at 4 07 33 PM

from stable-diffusion-webui-docker.

sausax avatar sausax commented on May 14, 2024

@fpgaminer can you create a PR with the fix ?

from stable-diffusion-webui-docker.

fpgaminer avatar fpgaminer commented on May 14, 2024

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.

sausax avatar sausax commented on May 14, 2024

@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.

AbdBarho avatar AbdBarho commented on May 14, 2024

@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.

sausax avatar sausax commented on May 14, 2024

That worked :) Thanks @AbdBarho

from stable-diffusion-webui-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.