Open Meharaj002 opened 3 years ago
hey! nick bro! love your teaching method! I'm facing this error! so expecting your kind help here @nicknochnack
Looks like an issue with the input feed. What do you get if you print out image_np?
[[[8 8 8] [8 8 8] [8 8 8] ... [8 8 8] [8 8 8] [8 8 8]]
[[8 8 8] [8 8 8] [8 8 8] ... [8 8 8] [8 8 8] [8 8 8]]
[[8 8 8] [8 8 8] [8 8 8] ... [8 8 8] [8 8 8] [8 8 8]]
...
[[8 8 8] [8 8 8] [8 8 8] ... [8 8 8] [8 8 8] [8 8 8]]
[[8 8 8] [8 8 8] [8 8 8] ... [8 8 8] [8 8 8] [8 8 8]]
[[8 8 8] [8 8 8] [8 8 8] ... [8 8 8] [8 8 8] [8 8 8]]]
this is the print output of image_np before throwing error @nicknochnack
Is your webcam activating? Can you also try restarting the kernel and just rerunning the detection code?
yes! the webcam turns on when i use jupyer notebook but the moment I put my hand I gets stuck and through error! also tried to rerun !
i tried in vscode also gives same error! but in vscode the camera turns on but cv2's frame don't turnon @nicknochnack
hey @nicknochnack bro! can you help me to solve it! any suggestion which I can try!
before giving the image_np output this>>>
2021-02-16 21:05:05.961641: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-02-16 21:05:05.973190: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2021-02-16 21:05:05.991176: W tensorflow/stream_executor/cuda/cuda_driver.cc:326] failed call to cuInit: UNKNOWN ERROR (303)
2021-02-16 21:05:06.006007: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: DESKTOP-ED2GVQI
2021-02-16 21:05:06.037053: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: DESKTOP-ED2GVQI
2021-02-16 21:05:06.124778: 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: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-02-16 21:05:06.692467: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
[[[106 139 56]
[105 137 55]
[107 135 51]
... ```
line prints out in vscode
hey bro @nicknochnack can you give me a suggestion about what can I do?
TypeError Traceback (most recent call last)