ams icon indicating copy to clipboard operation
ams copied to clipboard

code in Extract_labels.py

Open 3017218198 opened this issue 2 years ago • 2 comments

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

3017218198 avatar Feb 02 '23 03:02 3017218198

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

qtyandhasee avatar May 17 '23 11:05 qtyandhasee

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.

sysu19351115 avatar Mar 21 '24 14:03 sysu19351115