-
Notifications
You must be signed in to change notification settings - Fork 27
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 when evaluating the Episodic Transformer baselines #9
Comments
Hi @yingShen-ys, It looks like you have caught an interesting corner case and I will push a fix to prevent this error shortly. However, it is very likely that you are running into this error because this line failed. Your terminal output should include the stack trace of the actual error that you are running into (although the try-catch we have there will ensure that the process does not get killed due to the error). Can you provide a larger section of the terminal output of the above run (at least 20-30 lines before the above error)? If you are able to share a larger amount of the output, I recommend pasting it in a .txt file, uploading it somewhere and providing a link in your response. Best, P.S.: I am on leave for most of this week so responses to issues will be slower than usual this week. |
I have the same error. I am trying to evaluate the ET model locally. The terminal output is shown below. [MainThread-17308-DEBUG] teach.utils: Creating task from state diff ... |
Hi @aishwaryap, Here is the error.log. It is similar to what @PeixinC has pasted. I think this error happens for every instance (I didn't run the entire inference) rather than just some of them. |
Alright, I think I might have found the problem. And I think the problem is that the function So the workaround I did is basically change model_started_success = True
try:
model.start_new_edh_instance(edh_instance, edh_history_images, instance_file)
except Exception:
model_started_success = False
metrics["error"] = 1
logger.error(f"Failed to start_new_edh_instance for {instance_id}", exc_info=True) So far, I am able to run the inference bug-free after this modification. Please let me know if I missed anything. Thanks! |
Hi @yingShen-ys You did identify the problem correctly but I feel a preferred solution would be to correct Thanks a lot for catching this! Aishwarya |
Great, thank you. |
Hello,
I have been trying to evaluate the Episodic Transformer baselines for the TEACh Benchmark Challenge. And I keep getting the following error message when I am running the evaluation script provided inside the ET directory. I have also tried running the evaluation via "teach_inference". The error is the same.
I am doing the inference on an AWS instance. I have started the X-server and installed all requirements and prerequisites without bug.
Here's the script I used for evaluation.
Could you help me with this? Thanks!
The text was updated successfully, but these errors were encountered: