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
您好作者,这个训练代码是否有问题,我按照您给出的方式设置了trainA和trainB但是仍然报错
‘Traceback (most recent call last):
File "D:\WorkProject\Image_Enhancement\night-enhancement-main\ENHANCENET.py", line 156, in train
real_A, _ = trainA_iter.next()
UnboundLocalError: local variable 'trainA_iter' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\WorkSoftware\Install\PyCharm Community Edition 2024.1.3\plugins\python-ce\helpers\pydev\pydevd.py", line 1546, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\WorkSoftware\Install\PyCharm Community Edition 2024.1.3\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:\WorkProject\Image_Enhancement\night-enhancement-main\main.py", line 75, in
main()
File "D:\WorkProject\Image_Enhancement\night-enhancement-main\main.py", line 71, in main
gan.train()
File "D:\WorkProject\Image_Enhancement\night-enhancement-main\ENHANCENET.py", line 159, in train
real_A, _ = trainA_iter.next()
AttributeError: '_SingleProcessDataLoaderIter' object has no attribute 'next'’
The text was updated successfully, but these errors were encountered:
您好作者,这个训练代码是否有问题,我按照您给出的方式设置了trainA和trainB但是仍然报错
‘Traceback (most recent call last):
File "D:\WorkProject\Image_Enhancement\night-enhancement-main\ENHANCENET.py", line 156, in train
real_A, _ = trainA_iter.next()
UnboundLocalError: local variable 'trainA_iter' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\WorkSoftware\Install\PyCharm Community Edition 2024.1.3\plugins\python-ce\helpers\pydev\pydevd.py", line 1546, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\WorkSoftware\Install\PyCharm Community Edition 2024.1.3\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:\WorkProject\Image_Enhancement\night-enhancement-main\main.py", line 75, in
main()
File "D:\WorkProject\Image_Enhancement\night-enhancement-main\main.py", line 71, in main
gan.train()
File "D:\WorkProject\Image_Enhancement\night-enhancement-main\ENHANCENET.py", line 159, in train
real_A, _ = trainA_iter.next()
AttributeError: '_SingleProcessDataLoaderIter' object has no attribute 'next'’
The text was updated successfully, but these errors were encountered: