codeslake/IFAN

Possible syntax error in trainer.py

sreeragiyer opened this issue · 3 comments

Hi,

I faced config is undefined while trying to train the model. It looks like line 298 in https://github.com/codeslake/IFAN/blob/main/models/trainers/trainer.py should be self.config.mode instead of config.mode

edit: 278->298

Hi,

config.mode can also be referred, as config is passed through the init function.
Can you paste the exact error message?

Hi, config.mode line 298 can be a problem. I've updated the repository.
Can you pull the repo and try the training procedure again?

yes, that resolves the issue.