modelstreaming / ams

Adaptive Model Streaming for real-time video inference on edge devices
41 stars 6 forks source link

code in Extract_labels.py #3

Open 3017218198 opened 1 year ago

3017218198 commented 1 year ago

hi, when I try to run extract_labels.py, there's an exception said that "unboundlocalerror: local variable 'teacher_conf' referenced before assignment". I wonder whether there is a defination or initialization of 'teacher_conf' missed in this file. Thank you

qtyandhasee commented 1 year ago

no, i have met this problem, i just delete it, and it run with no problem, this extract_labels.py is just used to extract gt labels by teacher checkpoint, you can also recheck your environments, i don't no why, but when i skip this code, the problem solved

sysu19351115 commented 7 months ago

I think the correct code at line 89 in extract_labels.py is: 'teacher_conf = teacher_out[0] * 255'. But the variable 'teacher_conf' is not used in the follow code, so skip the 'teacher_conf' is ok, too.