stable-diffusion-webui-docker icon indicating copy to clipboard operation
stable-diffusion-webui-docker copied to clipboard

Add support and enable deepdanbooru setting

Open pirahtays opened this issue 3 years ago • 7 comments

Add support for the Deep Danbooru option in Automatic1111's web ui

pirahtays avatar Oct 17 '22 17:10 pirahtays

You ought have created an issue first as per Readme

That being said, I wanted to add this feature a while ago, but I was very hesitant on making the image 4GB bigger and 2 times slower to build.

Would it make sense to have this as a build time flag?

AbdBarho avatar Oct 17 '22 17:10 AbdBarho

Sure, let me look into it. Honestly I just did the PR by accident in the midst of like 90 other things and went with it, sorry about that.

pirahtays avatar Oct 17 '22 17:10 pirahtays

I'm not as well versed with profiles, so I don't know if this can be done in a more elegant manner. I wasn't able to quickly get it to inherit the build context from the base profile, so it had to be redefined.

Another option would be to not have a second profile and do this, not sure what your feelings are on this. image

pirahtays avatar Oct 17 '22 18:10 pirahtays

@pirahtays I like the second option, but the user should not comment in the docker-compse.yml file, instead use a docker-compose.override.yml:

services:
  auto:
    build:
      args:
        - DEEPDANBOORU=1
    environment:
      - CLI_ARGS=--allow-code --medvram --xformers --deepdanbooru

Also, freeze the versions of tensorflow and co in the install command, and move the entire install block before the repo / deps update command, because that one is updated very often, and I don't want users to re-install tensorflow on every update.

AbdBarho avatar Oct 17 '22 19:10 AbdBarho

The changes work fine, but I noticed that on 1 of my 2 SD machines CUDA functions fail after running an "interrogate deepbooru" step. Looking into if there are any missing packages / configuration for this.

pirahtays avatar Oct 18 '22 14:10 pirahtays

@pirahtays might help:

TF_FORCE_GPU_ALLOW_GROWTH=true

AbdBarho avatar Oct 18 '22 14:10 AbdBarho

I resolved this, just need to check in the fix. it appears that using tensorflow and not tensorflow-cpu causes all sorts of weirdness with cuda conflicts at times.

pirahtays avatar Oct 20 '22 19:10 pirahtays

Fixed tensorflow / cuda issues.

(....took me long enough)

pirahtays avatar Oct 26 '22 15:10 pirahtays

I think this is cleaned up now.

pirahtays avatar Nov 04 '22 14:11 pirahtays

@pirahtays thank you, I created a new PR #194 with small tweaks after testing on my machine, I will close this one. You will be credited.

AbdBarho avatar Nov 04 '22 18:11 AbdBarho

@pirahtays thank you, I created a new PR #194 with small tweaks after testing on my machine, I will close this one. You will be credited.

👍

pirahtays avatar Nov 04 '22 20:11 pirahtays