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
在使用 train.py 从头开始训练时,出现
Step: 1/9, accuracy: 0.155556, center loss: 0.998996, cross loss: 2.833399, Total Loss: 9.798814 ,lr:0.010000
Traceback (most recent call last):
File "train.py", line 283, in
main()
File "train.py", line 201, in main
val_writer.add_summary(summary_val, global_step=epoch)
UnboundLocalError: local variable 'summary_val' referenced before assignment
尝试加入 global summary_val 依然报错
The text was updated successfully, but these errors were encountered:
imliusu
changed the title
UnboundLocalError: local variable 'summary_val' referenced before assignment
使用train.py从零开始训练出现UnboundLocalError: local variable 'summary_val' referenced before assignment
Oct 13, 2019
在使用 train.py 从头开始训练时,出现 Step: 1/9, accuracy: 0.155556, center loss: 0.998996, cross loss: 2.833399, Total Loss: 9.798814 ,lr:0.010000 Traceback (most recent call last): File "train.py", line 283, in main() File "train.py", line 201, in main val_writer.add_summary(summary_val, global_step=epoch) UnboundLocalError: local variable 'summary_val' referenced before assignment
在使用 train.py 从头开始训练时,出现 Step: 1/9, accuracy: 0.155556, center loss: 0.998996, cross loss: 2.833399, Total Loss: 9.798814 ,lr:0.010000 Traceback (most recent call last): File "train.py", line 283, in main() File "train.py", line 201, in main val_writer.add_summary(summary_val, global_step=epoch) UnboundLocalError: local variable 'summary_val' referenced before assignment
尝试加入 global summary_val 依然报错
在使用 train.py 从头开始训练时,出现
Step: 1/9, accuracy: 0.155556, center loss: 0.998996, cross loss: 2.833399, Total Loss: 9.798814 ,lr:0.010000
Traceback (most recent call last):
File "train.py", line 283, in
main()
File "train.py", line 201, in main
val_writer.add_summary(summary_val, global_step=epoch)
UnboundLocalError: local variable 'summary_val' referenced before assignment
尝试加入 global summary_val 依然报错
The text was updated successfully, but these errors were encountered: