danier97 / LDMVFI

[AAAI'2024] "LDMVFI: Video Frame Interpolation with Latent Diffusion Models", Duolikun Danier, Fan Zhang, David Bull
MIT License
123 stars 11 forks source link

trainer error #16

Closed bo-wang-up closed 2 months ago

bo-wang-up commented 3 months ago

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

danier97 commented 3 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.

bo-wang-up commented 2 months ago

I replace "trainer.global_rank==0" with "Trainer.global_rank==0" . The method seems effective.