Open weekenddeveloper opened 3 years ago
I had the same issue.
Same Issue: Bug in Tutorial for TF2?
$PYTHONPATH: /home/useraccount/.local/lib/python3.6/site-packages:/home/useraccount/models/research/slim:/home/useraccount/models/research:/home/useraccount/models
(py36dl) useraccount@nano:~/models/research$ python object_detection/builders/model_builder_test.py
2021-04-08 21:29:05.738693: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.2
Traceback (most recent call last):
File "object_detection/builders/model_builder_test.py", line 23, in
Same issue. I was running https://github.com/tensorflow/models/blob/master/research/slim/train_image_classifier.py and the same error occured.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
1. The entire URL of the file you are using
http://download.tensorflow.org/models/object_detection/tf2/20200711/faster_rcnn_resnet101_v1_640x640_coco17_tpu-8.tar.gz
2. Describe the bug
I am using tensorflow 2.0 and tried to follow the object detection tutorial (https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/auto_examples/object_detection_camera.html). However, when I tried to load the model, I got an Attribute error.
I did the research online and got the answer that you have to use tensorflow 1.4 to make the object detection work. and contrib has been deprecated in tensorflow 2.0.
I am confused that the tutorial for tensorflow 2.0 object detection api will require tensorflow 1.x??
3. Steps to reproduce
Use tensorflow 2.0, follow the TF 2.0 object detection tutorial, and when you load the model, you will get the issue.
4. Expected behavior
model get loaded correctly.
5. Additional context
Include any logs that would be helpful to diagnose the problem.
AttributeError Traceback (most recent call last)