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
UnboundLocalError - 'context' reference before assignment #6
Comments
Currently the code only runs with the --reset_context_delta parameter, when using it the context will be created. |
Can you guide me where should i use --reset_context_delta parameter this command to run the code as i am trying to run this command as : python run.py but still i am getting the unbound-local error . Will be great help if you can further clarify. Thanks again |
I run the command as: python run.py and it works. |
你好,你的邮件已经收到。祝你一切顺利。
|
感谢您的工作! |
In ZeroCLIP.py in function
get_next_probs
variablecontext
is created withinif
statement, but then in line 228 it is referenced. So if the condition in line 220 isFalse
then there is an UnboundLocalError.The text was updated successfully, but these errors were encountered: