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

NameError: name 'trainer' is not defined. #77

Open
sebvln opened this issue Jun 7, 2023 · 2 comments
Open

NameError: name 'trainer' is not defined. #77

sebvln opened this issue Jun 7, 2023 · 2 comments

Comments

@sebvln
Copy link

sebvln commented Jun 7, 2023

Hi, thank you for the repo !

I am trying to fine tune stable-diffusion on collab like this:

!python main.py -t --base configs/stable-diffusion/pokemon.yaml --weights_save_path "./" --gpus 1 --auto_select_gpus True --scale_lr False --num_nodes 1 --check_val_every_n_epoch 10 --finetune_from "$ckpt_path" data.params.batch_size="$BATCH_SIZE" lightning.trainer.accumulate_grad_batches="$ACCUMULATE_BATCHES" data.params.validation.params.n_gpus="$NUM_GPUS"

But got the following error:

Traceback (most recent call last):
File "/content/stable-diffusion/main.py", line 939, in
if trainer.global_rank == 0:
NameError: name 'trainer' is not defined. Did you mean: 'Trainer'?

@dreaming-huang
Copy link

me too

@dreaming-huang
Copy link

I think this error occur because ours network,maybe proxy canhelp us(I tried then it work)

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

2 participants