TACL icon indicating copy to clipboard operation
TACL copied to clipboard

File "/root/TACL/train.py", line 60, in <module> objs.update(loss.data.item(), opt.batch_size) AttributeError: 'NoneType' object has no attribute 'data'

Open jokeru8 opened this issue 1 year ago • 4 comments

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'

jokeru8 avatar May 10 '24 02:05 jokeru8