fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

ask for help

Open zcdliuwei opened this issue 3 years ago • 16 comments

I want to train multiple animation characters at the same time, instead of training only one character at a time like the original dreamBooth code. I found your following code: https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb, But this code uses Google's colab,how can I modify this code so that I can use your code on my Linux server, look forward to your reply,thanks

zcdliuwei avatar Nov 02 '22 12:11 zcdliuwei

if you have 15GB of VRAM, all you have to do is change the folders to match your local folders as for the dependencies, if you have a functioning AUTOMATIC1111, that should make it easier.

TheLastBen avatar Nov 02 '22 13:11 TheLastBen

@zcdliuwei Check out my repo, universal-fast-stable-diffusion. You might still need to change the folders where the dependencies are copied to, though. I'm working on that myself, but it might be a while.

askiiart avatar Nov 02 '22 16:11 askiiart

try this code to get the installation folder :

from subprocess import getoutput

s=getoutput('pip show wget')
s=s[213:259]

You can replace wget with any other package

TheLastBen avatar Nov 02 '22 17:11 TheLastBen

thanks, When I use the downloadmodel function to download the model, I encounter the following error

fatal: Authentication failed for ' https://USER:[email protected]/runwayml/stable-diffusion-v1-5/'

image

I don't know what to do

zcdliuwei avatar Nov 02 '22 17:11 zcdliuwei

remove the { } around the token

TheLastBen avatar Nov 02 '22 17:11 TheLastBen

@zcdliuwei You should probably invalidate that token, now that it's posted here

Especially if it has write perms 😬

askiiart avatar Nov 02 '22 20:11 askiiart

try this code to get the installation folder :

from subprocess import getoutput

s=getoutput('pip show wget')
s=s[213:259]

You can replace wget with any other package

Thanks for the tip! I changed it around a bit to use .find() to get the location of the... location, and it works great.

askiiart avatar Nov 02 '22 21:11 askiiart

@zcdliuwei Did you get this fixed?

askiiart avatar Nov 03 '22 13:11 askiiart

I encountered a new error: RuntimeError: No such operator xformers::efficient_attention_forward_generic - did you forget to build xformers with python setup.py develop?

image

zcdliuwei avatar Nov 04 '22 09:11 zcdliuwei

What GPU are you using? Find it using !nvidia-smi

askiiart avatar Nov 04 '22 14:11 askiiart

What GPU are you using? Find it using !nvidia-smi V100

image

zcdliuwei avatar Nov 04 '22 14:11 zcdliuwei

try !pip install xformers

TheLastBen avatar Nov 04 '22 15:11 TheLastBen

try !pip install xformers

Same error

zcdliuwei avatar Nov 06 '22 07:11 zcdliuwei

you need to uninstall the previous xformers, and : !pip install git+https://github.com/facebookresearch/xformers@51dd119#egg=xformers

TheLastBen avatar Nov 06 '22 09:11 TheLastBen

you need to uninstall the previous xformers, and : !pip install git+https://github.com/facebookresearch/xformers@51dd119#egg=xformers

image

zcdliuwei avatar Nov 06 '22 16:11 zcdliuwei

check the xformers repo for a best way to install it

TheLastBen avatar Nov 06 '22 16:11 TheLastBen