Closed bo-wang-up closed 2 months ago
Hi,
Looks like something's gone wrong in the try
statement before trainer
is defined (i.e. between line 487 and 643). You might want to take a look at the full error log to find out what caused an exception.
Thanks.
I replace "trainer.global_rank==0" with "Trainer.global_rank==0" . The method seems effective.
When I run the training code "python main.py --base configs/autoencoder/vqflow-f32.yaml -t --gpus 0", the error appears:
Traceback (most recent call last): File "/home/codes/LDMVFI/main.py", line 730, in
if trainer.global_rank == 0:
NameError: name 'trainer' is not defined