Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #6

Open
Ali-Usama opened this issue Jul 1, 2021 · 0 comments

Comments

@Ali-Usama
Copy link

Hi! I have followed the same procedure mentioned in your blog post, saved the code in a file named 'web_object_detection.py, but got the following error:

_[ WARN:0] global /tmp/pip-req-build-13uokl4r/opencv/modules/videoio/src/cap_v4l.cpp (890) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
2021-07-01 10:37:25.471802: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-07-01 10:37:25.472225: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE4.1
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-07-01 10:37:25.481073: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.
Traceback (most recent call last):
File "web_object_detection.py", line 177, in
(boxes, scores, classes, num_detections) = sess.run(
File "/home/usama/anaconda3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 967, in run
result = self._run(None, fetches, feed_dict, options_ptr,
File "/home/usama/anaconda3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1160, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/home/usama/anaconda3/lib/python3.8/site-packages/numpy/core/asarray.py", line 102, 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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant