RCAN icon indicating copy to clipboard operation
RCAN copied to clipboard

AttributeError

Open LoveSimons opened this issue 5 years ago • 0 comments

Hello, I am very interested in your research, but I am running the main.py script and there is no "module" error. How can I solve this problem?

Traceback (most recent call last):

File "", line 1, in runfile('/home/renxue/RCAN/RCAN_TrainCode/code/main.py', wdir='/home/renxue/RCAN/RCAN_TrainCode/code')

File "/home/renxue/anaconda3/envs/3d-AAE/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 827, in runfile execfile(filename, namespace)

File "/home/renxue/anaconda3/envs/3d-AAE/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 110, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "/home/renxue/RCAN/RCAN_TrainCode/code/main.py", line 17, in model = model.Model(args, checkpoint)

File "/home/renxue/RCAN/RCAN_TrainCode/code/model/init.py", line 35, in init cpu=args.cpu

File "/home/renxue/RCAN/RCAN_TrainCode/code/model/init.py", line 102, in load self.get_model().load_state_dict(

File "/home/renxue/RCAN/RCAN_TrainCode/code/model/init.py", line 61, in get_model return self.model.module

File "/home/renxue/anaconda3/envs/3d-AAE/lib/python3.6/site-packages/torch/nn/modules/module.py", line 535, in getattr type(self).name, name))

AttributeError: 'RCAN' object has no attribute 'module'

look forward to your reply!

LoveSimons avatar May 28 '19 08:05 LoveSimons