Hi when I try to runt this code, the following issue has occured. Do you have any idea to solve it?
python main_Digits.py --mode test --resume ckpt_mnist.pth.tar
=> loading checkpoint 'ckpt_mnist.pth.tar'
=> loaded checkpoint 'ckpt_mnist.pth.tar' (iter 10001)
svhn
Loading SVHN dataset.
Traceback (most recent call last):
File "main_Digits.py", line 334, in
main()
File "main_Digits.py", line 100, in main
evaluation(model, args.data_dir, args.batch_size, kwargs)
File "/home/comp/20481160/code/M-ADA-master/utils/digits_process_dataset.py", line 184, in evaluation
output = model.functional(params, False, input)
File "/usr/local/lib64/python3.6/site-packages/torch/nn/modules/module.py", line 779, in getattr
type(self).name, name))
torch.nn.modules.module.ModuleAttributeError: 'ConvNet' object has no attribute 'functional'
Hi when I try to runt this code, the following issue has occured. Do you have any idea to solve it?
python main_Digits.py --mode test --resume ckpt_mnist.pth.tar
=> loading checkpoint 'ckpt_mnist.pth.tar'
=> loaded checkpoint 'ckpt_mnist.pth.tar' (iter 10001)
svhn
Loading SVHN dataset.
Traceback (most recent call last):
File "main_Digits.py", line 334, in
main()
File "main_Digits.py", line 100, in main
evaluation(model, args.data_dir, args.batch_size, kwargs)
File "/home/comp/20481160/code/M-ADA-master/utils/digits_process_dataset.py", line 184, in evaluation
output = model.functional(params, False, input)
File "/usr/local/lib64/python3.6/site-packages/torch/nn/modules/module.py", line 779, in getattr
type(self).name, name))
torch.nn.modules.module.ModuleAttributeError: 'ConvNet' object has no attribute 'functional'