Skip to content

Some error when training?NameError: name 'trainer' is not defined. Did you mean: 'Trainer'? #18

Description

@tianjilong123

@CreamyLong
Hi, I met some errors when I execute the code python main.py --base configs/latent-diffusion/mask2img/config.yaml -t --gpus 0
the error detail is below:
Traceback (most recent call last):
File "D:\Postgraduate\Master\Project\DiffusionModel\stable-diffusion-master\main.py", line 773, in
if trainer.global_rank == 0:
^^^^^^^

How can I solve this problems. Hope for your reply.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions