Using Tensorflow to detect objects - Solved

by: tclancy, 2 months ago

Last edited: 2 months ago

<Had wrong camera selected>

Trying to get sample working as shown but failing on feed_dict={image_tensor: image_np_expanded}). Code is as published with adjustments for directories etc. Error is as below, any clues greatly appreciated.

Traceback (most recent call last):
  File "C:Python36Sourcetensorflowtftest.py", line 142, in <module>
    feed_dict={image_tensor: image_np_expanded})
  File "C:Python36libsite-packagestensorflowpythonclientsession.py", line 895, in run
    run_metadata_ptr)
  File "C:Python36libsite-packagestensorflowpythonclientsession.py", line 1093, in _run
    np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
  File "C:Python36libsite-packagesnumpycorenumeric.py", line 531, in asarray
    return array(a, dtype, copy=False, order=order)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'



You must be logged in to post. Please login or register an account.