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 ?
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 ?