UnboundLocalError
35454652 opened this issue · comments
35454652 commented
When I run the main_ucf101.py code, the following error declaration occurs.How can this be solved?
line 146, in train_model_interface
total_cons_loss = total_seg_cons_loss
UnboundLocalError: local variable 'total_seg_cons_loss' referenced before assignment
Akash Kumar commented
I have added an else statement. That should take care of it. However, if you select bv or gv option, that error should not pop up.