datitran / object_detector_app

Real-Time Object Recognition App with Tensorflow and OpenCV

Home Page:https://medium.com/towards-data-science/building-a-real-time-object-recognition-app-with-tensorflow-and-opencv-b7a2b4ebdc32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't run python object_detection_app.py

tych777 opened this issue · comments

When I try
conda env create -f environment.yml

I receive

Using Anaconda API: https://api.anaconda.org

SpecNotFound: Can't process without a name

When I run
python object_detection_app.py
I get the following
obj
After pressing stop program, I receive following repetitive code 3-4 times when I try to close command prompt.
obj2

Please point me if it's not a bug.

Cheers

It was an allocation issue. I fixed it just by adding to the def worker in object_detection_app.py the following
config = tf.ConfigProto()
config.gpu_options.allow_growth = True

and modifying

sess = tf.Session(graph=detection_graph, config=config)