codeslake / IFAN

[CVPR 2021] Official PyTorch Implementation for "Iterative Filter Adaptive Network for Single Image Defocus Deblurring"
GNU Affero General Public License v3.0
222 stars 37 forks source link

Possible syntax error in trainer.py #2

Closed sreeragiyer closed 2 years ago

sreeragiyer commented 2 years ago

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

codeslake commented 2 years ago

Hi,

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

codeslake commented 2 years ago

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?

sreeragiyer commented 2 years ago

yes, that resolves the issue.