Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dreambooth isn't working (google colab) #2951

Open
mdlieber99 opened this issue Nov 13, 2024 · 10 comments
Open

Dreambooth isn't working (google colab) #2951

mdlieber99 opened this issue Nov 13, 2024 · 10 comments

Comments

@mdlieber99
Copy link

both gemini and ChatGPT think there is an issue with the det.py script. It fails in the "model download" section whether I give it a path or a link. given the other recent comments it looks like this might be a problem on a1111 as well. Here is the error when I give it the path:

Detecting model version...

CalledProcessError Traceback (most recent call last)
in <cell line: 144>()
218 wget.download('https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/det.py')
219 print('Detecting model version...')
--> 220 Custom_Model_Version=check_output('python det.py '+sftnsr+' --MODEL_PATH '+str(MODEL_PATH), shell=True).decode('utf-8').replace('\n', '')
221 clear_output()
222 print(''+Custom_Model_Version+' Detected')

1 frames
/usr/lib/python3.10/subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs)
524 retcode = process.poll()
525 if check and retcode:
--> 526 raise CalledProcessError(retcode, process.args,
527 output=stdout, stderr=stderr)
528 return CompletedProcess(process.args, retcode, stdout, stderr)

CalledProcessError: Command 'python det.py --from_safetensors --MODEL_PATH /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/cyberrealistic_v50.safetensors' returned non-zero exit status 1.

@mdlieber99
Copy link
Author

ok - I added !pip install protobuf==3.20.3
before the model download step and now it seems to be working

@vadar007
Copy link

vadar007 commented Nov 14, 2024

Yup, that fixed it for me (Issue #2950)! How did you pin down the need to install this additional piece/version of software?

@mdlieber99
Copy link
Author

Yup, that fixed it for me (Issue #2950)! How did you pin down the need to install this additional piece/version of software?

So chatGPT said it was about the det.py script. I noticed that others were raising issues on this page about a1111 not working and that was also about the det.py script. Someone offered this solution on that page so I tried it here and it worked.

@unco-ctr
Copy link

ok - I added !pip install protobuf==3.20.3 before the model download step and now it seems to be working

Could you please help me putting the line, where exactly did you add it? I am getting the same error and adding it doesn't help. Thanks!

@vadar007
Copy link

I inserted as the first line in the colab Dependencies code:

!pip install protobuf==3.20.3
from IPython.utils import capture
import time
import os

You still get some dependencies warning messages but it runs....

@unco-ctr
Copy link

I inserted as the first line in the colab Dependencies code:

!pip install protobuf==3.20.3 from IPython.utils import capture import time import os

You still get some dependencies warning messages but it runs....

That is amazing, it works! Perhaps I was doing something wrong, but adding these to the beginning of the Model Download step didn't help. Thank you!

@mdlieber99
Copy link
Author

Is dreambooth still working for you guys? It broke again yesterday for me but no one else has brought up an issue

@vadar007
Copy link

Yep, been using it constantly today. What is the error message(s) you are getting? Mind you, I am running off a copy of the colab so if the source colab itself was modified, I probably won't see it.

@mdlieber99
Copy link
Author

mdlieber99 commented Nov 20, 2024 via email

@vadar007
Copy link

Sticking with protobuf 3.20.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants