UnboundLocalError: local variable 'optimizer_d' referenced before assignment
Opened this issue · 0 comments
lht-21836918 commented
Traceback (most recent call last):
File "run_sr.py", line 1292, in
train(args, cfg, data_dict)
File "run_sr.py", line 1221, in train
scene_rep_reconstruction_sr_patch(
File "run_sr.py", line 1062, in scene_rep_reconstruction_sr_patch
for i_opt_sr, param_d in enumerate(optimizer_d.param_groups):
UnboundLocalError: local variable 'optimizer_d' referenced before assignment
How to solve this problem ?