AKASH2907 / pi-consistency-activity-detection

End-to-End Semi-Supervised Learning for Video Action Detection [CVPR 2022]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnboundLocalError

35454652 opened this issue · comments

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

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.