Skip to content

Docker: Object_detection_image.py throws error #2

@Stockholmsnovis

Description

@Stockholmsnovis

Docker build/run seems to work fine, but when running Object_detect_image.py I get this error from the python script. I had an idea that this might be due to the fact that Docker cant handle GUI, but this particular error doent seem to have anything to to with that fact(?)

root@e897aa773753:/tensorflow/models/research/object_detection# python Object_detection_image.py
2018-08-17 11:13:01.879611: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Traceback (most recent call last):
File "Object_detection_image.py", line 98, in
feed_dict={image_tensor: image_expanded})
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 877, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1069, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/usr/local/lib/python2.7/dist-packages/numpy/core/numeric.py", line 492, in asarray
return array(a, dtype, copy=False, order=order)
TypeError: long() argument must be a string or a number, not 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions