-
Notifications
You must be signed in to change notification settings - Fork 45.7k
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
TypeError: unhashable type: 'list'. When running "model_builder_tf2_test.py" #11161
Comments
Hi @RodasPneus , Thanks for reaching out here, but it is happening with research repository code as it is not having much development now a days. |
Thank you for answering, do you think that downgrading tensorflow would work? |
Hi @RodasPneus , I am not sure whether it works are not since the research code base is not aligned with the latest changes in TF Framework and there are few libraries deprecated time to time with the new releases in TF.But I suggest you try with downgrading Tensorflow and see if it works. I would like you to move on to official Model Garden repo to work with latest changes in your code. Thanks. |
I'm sorry to bother you again, I managed to fix the previous issue by downgrading tensorflow to 2.5.0, and by changing some stuff inside of the object_detection library to be able to use tf.contrib.slim, however the following lines
Now give me errors like this
Do you have any idea on how to solve this? |
Hi @RodasPneus , No, not at all, Happy to help you.! It seems like there might be compatibility issues or changes in the object detection library you're using.Make sure that the object detection library is correctly installed in your environment. Sometimes, incomplete installations(since you are downgrading the TF version) or corruption during installation can lead to such errors.Also i suggest you to try with TF2.6.0 version to see if this error disappears. But working with old Versions of TF would lead to these kind of errors due to deprecation the libraries or renaming the libraries. Thanks |
Thank you, for some reason I didn't have some of the files downloaded. I have now solved that error and some more errors. However I now get the following error: |
Hi @RodasPneus , The error showing undefined type Thanks |
I have checked and everything is correct. Is there anyway to get the _pb2.py files without compiling them myself to make sure they're right? My .proto files are the same as in the repo, but I noticed that RandomJitterboxes gets exported while Jittermode doesn't. Is this supposed to happen? Here is the code: |
Is this going to be fixed for the main repo? |
Prerequisites
Please answer the following questions for yourself before submitting an issue.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/blob/master/research/object_detection/builders/model_builder_tf2_test.py
2. Describe the bug
Whenever I run the file I get the following error:
3. Steps to reproduce
Clone the repo and run the file
4. Expected behavior
The file should run the tests without any errors
5. Additional context
This has been happening for a while with the file: https://github.com/tensorflow/models/blob/master/research/object_detection/model_main_tf2.py
I reinstalled everything and ran the file in a virtual environment to see if it fixed itself and it didn't. This error happens with both the est file and the normal file.
6. System information
The text was updated successfully, but these errors were encountered: