尊敬的作者,您好!
我在运行您的代码的时候遇到了这样的报错:
Traceback (most recent call last):
File "train.py", line 809, in
main()
File "train.py", line 603, in main
train_metrics = train_epoch(
File "train.py", line 662, in train_epoch
for batch_idx, (input1, target) in enumerate(loader):
File "/opt/conda/lib/python3.8/site-packages/timm/data/loader.py", line 102, in iter
yield input, target
UnboundLocalError: local variable 'input' referenced before assignmen
我的运行环境和readme文件中的一致,请问这个要怎么解决呢?
尊敬的作者,您好! 我在运行您的代码的时候遇到了这样的报错: Traceback (most recent call last): File "train.py", line 809, in
main()
File "train.py", line 603, in main
train_metrics = train_epoch(
File "train.py", line 662, in train_epoch
for batch_idx, (input1, target) in enumerate(loader):
File "/opt/conda/lib/python3.8/site-packages/timm/data/loader.py", line 102, in iter
yield input, target
UnboundLocalError: local variable 'input' referenced before assignmen
我的运行环境和readme文件中的一致,请问这个要怎么解决呢?