tensorflow / models

Models and examples built with TensorFlow
Other
77.04k stars 45.77k forks source link

AttributeError: 'EnumTypeWrapper' object has no attribute 'TF_SEQUENCE_EXAMPLE' #8586

Open sathyamsn opened 4 years ago

sathyamsn commented 4 years ago

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/inputs_test.py

2. Describe the bug

Not able to run the model training. Tried running input test file but failed with 11 errors. AttributeError: 'EnumTypeWrapper' object has no attribute 'TF_SEQUENCE_EXAMPLE' NameError: name 'context_rcnn_meta_arch' is not defined

3. Steps to reproduce

Installed the new version following the steps as in https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md

Tested the installation with below command and its success. python object_detection/builders/model_builder_tf1_test.py

4. Expected behavior

Model should run without any issues

5. Additional context

Attached test output logs. model_builder_test_logs.log input_test_error_logs.log

Include any logs that would be helpful to diagnose the problem.

6. System information

('v1.15.0-rc3-22-g590d6ee', '1.15.0')
sathyamsn commented 4 years ago

input_reader_pb2.txt Attaching the generated input_reader_pb2.py

swapniel99 commented 4 years ago

I reinstalled tensorflow with right setuptools version and it got solved.

sathyamsn commented 4 years ago

Hi Swapniel, I installed Tensorflow 1.15.0 and followed the steps as in https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md. Please let me know what versions you have used to resolve. That will be a great help. Thanks!

swapniel99 commented 4 years ago

Tensorflow 1.15.2 setuptools>=40. I use 47. specific versions to downgrade: numpy==1.17.* gast==0.2.2 folium==0.2.1 imgaug==0.2.5. Also Cython and tfslim have to be installed.

linux packages: apt-get install protobuf-compiler python-pil python-lxml python-tk

Hazhzeng commented 4 years ago

Try defining protobuf>=3.8.0 and reinstall with pip install -U -r requirements.txt. Seems like the protobuf module in your Python packages is too old.

sathyamsn commented 4 years ago

Will try. Thanks!

satyamedh commented 3 years ago

Mods close issue ig