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 colab notebook doesn't work #2968

Open
gimena8569 opened this issue Dec 24, 2024 · 5 comments
Open

Dreambooth colab notebook doesn't work #2968

gimena8569 opened this issue Dec 24, 2024 · 5 comments

Comments

@gimena8569
Copy link

I've been trying to use this colab notebook:

https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb

But I have this error when I execute the "Model Download" cell:


Detecting model version...

CalledProcessError Traceback (most recent call last)
in <cell line: 144>()
277 wget.download('https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/det.py')
278 print('Detecting model version...')
--> 279 Custom_Model_Version=check_output('python det.py '+sftnsr+' --MODEL_PATH '+modelnm, shell=True).decode('utf-8').replace('\n', '')
280 clear_output()
281 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 --MODEL_PATH model.ckpt' returned non-zero exit status 1.


The same error with any model. Please, help

@mdlieber99
Copy link

same error here

@wptm
Copy link

wptm commented Dec 29, 2024

I've put these two lines at the very top of the code which seems to be working:
!pip uninstall wandb -y
!pip install wandb==0.15.12

@mdlieber99
Copy link

that worked! thanks wptm

@gimena8569
Copy link
Author

I've put these two lines at the very top of the code which seems to be working: !pip uninstall wandb -y !pip install wandb==0.15.12

Thank you very much for replying. It worked!. In my case, I have added the code lines that you wrote before "Model Download" cell and the following code line before "Training cell".

!pip install --upgrade torch tensorboard

@wptm
Copy link

wptm commented Dec 30, 2024

I'm putting these lines at the very top of the training too:
!pip uninstall protobuf -y
!pip install protobuf==3.20.3
!pip uninstall wandb -y
!pip install wandb==0.15.12

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