IyatomiLab / LeafGAN

Other
71 stars 23 forks source link

AttributeError: 'NoneType' object has no attribute 'parameters' #8

Open LaoGanGitHub opened 2 years ago

LaoGanGitHub commented 2 years ago

hello,i try to train you network ,but But there is a problem with the parameters of optimizer , can you you help me,Thx image

huuquan1994 commented 2 years ago

@LaoGanGitHub Sorry for my late reply! Probably the self.netG_A or the self.netG_B were not loaded correctly. Maybe you should check the options of netG (e.g., resnet_9blocks, resnet_6blocks, unet_128, unet_256) in the define_G function.

Feel free to let me know if the problem is still around.