victordibia / skyfall

Gesture Controlled Web based Game using Tensorflow Object Detection Api
https://medium.com/@victor.dibia/how-to-build-a-gesture-controlled-web-based-game-using-tensorflow-object-detection-api-587fb7e0f907
MIT License
77 stars 24 forks source link

ImportError: cannot import name detector_utils #1

Closed ferris1 closed 5 years ago

ferris1 commented 6 years ago

when i run app.py. I get an error!

ImportError: cannot import name detector_utils Is this a version issue?

my version: tensorflow=1.6.0 Flask==0.12.2 opencv_python==3.4.0.12 numpy==1.14.2 protobuf==3.5.2.post1 websocket_client==0.47.0

victordibia commented 6 years ago

Hi,

Thanks for trying this out and noting the issue. Looks like your python does not see the files in the utils folder.

This is a python 2.x thing which gets resolved by adding init.py to the module folder. I just added init.py, you can make a fresh pull request and try again. Let me know how it goes!

The app has been tested using Python 3. Please use your Python 3 environment if possible.

-V