You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
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'
The text was updated successfully, but these errors were encountered:
jokeru8
changed the title
What's the meaning of dataset A and B
File "/root/TACL/train.py", line 60, in <module> objs.update(loss.data.item(), opt.batch_size) AttributeError: 'NoneType' object has no attribute 'data'
May 11, 2024
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'
hey bro!The reason for this issue is that the model. optimize_marameters () on line 59 of train. py does not have a return value set in cycle_gan. You can obtain the loss by using loss=model. get_currentloss().
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'
The text was updated successfully, but these errors were encountered: