Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code in Extract_labels.py #3

Open
3017218198 opened this issue Feb 2, 2023 · 2 comments
Open

code in Extract_labels.py #3

3017218198 opened this issue Feb 2, 2023 · 2 comments

Comments

@3017218198
Copy link

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
Copy link

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
Copy link

sysu19351115 commented Mar 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants