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

AttributeError: 'int' object has no attribute 'strip' #54

Open
RowanUnderwood opened this issue Oct 4, 2022 · 4 comments
Open

AttributeError: 'int' object has no attribute 'strip' #54

RowanUnderwood opened this issue Oct 4, 2022 · 4 comments

Comments

@RowanUnderwood
Copy link

My command is

python main.py --base configs/stable-diffusion/v1-finetune_unfrozen.yaml --train --actual_resume models/ldm/stable-diffusion-v1/sd-v1-4-full-ema.ckpt --name jacobpederson --gpus 1, --data_root training/face --reg_data_root classes/class-face-samples --class_word man

Error is

Traceback (most recent call last):
File "main.py", line 792, in
ngpu = len(lightning_config.trainer.gpus.strip(",").split(','))
AttributeError: 'int' object has no attribute 'strip'

Full text here https://pastebin.com/cPtUUe6H

Also referenced here #46

Thanks!

@TemporalLabsLLC-SOL
Copy link

TemporalLabsLLC-SOL commented Oct 5, 2022

(#32 (comment)) - FIX IS HERE

@RowanUnderwood
Copy link
Author

RowanUnderwood commented Oct 5, 2022 via email

@bh-github-learn
Copy link

You could only add
lightning_config.trainer.gpus = str (lightning_config.trainer.gpus)
before
ngpu = len(lightning_config.trainer.gpus.strip(",").split(','))
and its solved

@EduardoABarrera
Copy link

Commenting for future Zero123 users:
the --gpus 0 --> --gpus "0," solution also works for running Zero123 on a single A100.

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

4 participants