auto-tinder icon indicating copy to clipboard operation
auto-tinder copied to clipboard

OS Requirements

Open darox opened this issue 4 years ago • 1 comments

What are the OS requirements? Do I need a GPU or can I run the model on a CPU?

The main error I'm getting:

Traceback (most recent call last): File "auto_tinder.py", line 138, in <module> detection_graph = person_detector.open_graph() File "/home/dario/dev/tinder/py37-venv/auto-tinder/person_detector.py", line 56, in open_graph od_graph_def = tf.GraphDef() AttributeError: module 'tensorflow' has no attribute 'GraphDef'

after already installing the tensorflow person detector api via: pip install tensorflow-object-detection-api

darox avatar Sep 13 '20 10:09 darox

In my case I had the same problem because I was using Tensorflow 2, so I change the code as follows:

tf.GraphDef() --> tf.compat.v1.GraphDef() tf.gfile.GFile() --> tf.compat.v2.io.gfile.GFile()

PFCid avatar Oct 04 '20 11:10 PFCid