TIP 2022 | Twin Adversarial Contrastive Learning for Underwater Image Enhancement and Beyond.
54
stars
5
forks
source link
File "/root/TACL/train.py", line 60, in <module> objs.update(loss.data.item(), opt.batch_size) AttributeError: 'NoneType' object has no attribute 'data' #10
When I run “python train.py --dataroot ./datasets/UIBED --name chinamm_train --model cycle_gan” ,the error occured :File "/root/TACL/train.py", line 60, in
objs.update(loss.data.item(), opt.batch_size)
AttributeError: 'NoneType' object has no attribute 'data'
When I run “python train.py --dataroot ./datasets/UIBED --name chinamm_train --model cycle_gan” ,the error occured :File "/root/TACL/train.py", line 60, in
objs.update(loss.data.item(), opt.batch_size)
AttributeError: 'NoneType' object has no attribute 'data'