Jzy2017 / TACL

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

Open jokeru8 opened 6 months ago

jokeru8 commented 6 months ago

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'