@theAIGuysCode Hi Sir. I am working in focal fossa(ubuntu 20.04). It throws error libcudnn version 7 which is compatible 10.1 cuda version. Right now I am using cuda 11.8 and 10.1 cuda version supports for 18.04 ubuntu. Is there any other way that might work? Thanks in advance.
python detect_video.py --weights ./checkpoints/yolov4-416 --size 416 --model yolov4 --video ./data/video/video.mp4 --output ./detections/results.avi
2024-02-26 14:23:07.520360: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2024-02-26 14:23:08.323843: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcuda.so.1
2024-02-26 14:23:08.352815: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2024-02-26 14:23:08.352986: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: NVIDIA GeForce GTX 1060 computeCapability: 6.1
coreClock: 1.733GHz coreCount: 10 deviceMemorySize: 5.94GiB deviceMemoryBandwidth: 178.99GiB/s
2024-02-26 14:23:08.353006: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2024-02-26 14:23:08.354560: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2024-02-26 14:23:08.357404: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10
2024-02-26 14:23:08.357709: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10
2024-02-26 14:23:08.359443: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10
2024-02-26 14:23:08.360342: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10
2024-02-26 14:23:08.360566: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib64/:
2024-02-26 14:23:08.360577: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1753] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
Traceback (most recent call last):
File "detect_video.py", line 9, in
from core.yolov4 import filter_boxes
File "/home/praveen/YOLOV4/Yolo_v4_obj_det/tensorflow-yolov4-tflite/core/yolov4.py", line 292, in
def filter_boxes(box_xywh, scores, score_threshold=0.4, input_shape = tf.constant([416,416])):
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 263, in constant
return _constant_impl(value, dtype, shape, name, verify_shape=False,
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 275, in _constant_impl
return _constant_eager_impl(ctx, value, dtype, shape, verify_shape)
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 300, in _constant_eager_impl
t = convert_to_eager_tensor(value, ctx, dtype)
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 97, in convert_to_eager_tensor
ctx.ensure_initialized()
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 524, in ensure_initialized
config_str = self.config.SerializeToString()
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 973, in config
config.device_count["CPU"] = 0
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/google/protobuf/internal/containers.py", line 325, in setitem
raise TypeError(
TypeError: RepeatedCompositeFieldContainer object does not support item assignment
@theAIGuysCode Hi Sir. I am working in focal fossa(ubuntu 20.04). It throws error libcudnn version 7 which is compatible 10.1 cuda version. Right now I am using cuda 11.8 and 10.1 cuda version supports for 18.04 ubuntu. Is there any other way that might work? Thanks in advance.
python detect_video.py --weights ./checkpoints/yolov4-416 --size 416 --model yolov4 --video ./data/video/video.mp4 --output ./detections/results.avi 2024-02-26 14:23:07.520360: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1 2024-02-26 14:23:08.323843: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcuda.so.1 2024-02-26 14:23:08.352815: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2024-02-26 14:23:08.352986: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties: pciBusID: 0000:01:00.0 name: NVIDIA GeForce GTX 1060 computeCapability: 6.1 coreClock: 1.733GHz coreCount: 10 deviceMemorySize: 5.94GiB deviceMemoryBandwidth: 178.99GiB/s 2024-02-26 14:23:08.353006: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1 2024-02-26 14:23:08.354560: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10 2024-02-26 14:23:08.357404: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10 2024-02-26 14:23:08.357709: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10 2024-02-26 14:23:08.359443: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10 2024-02-26 14:23:08.360342: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10 2024-02-26 14:23:08.360566: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib64/: 2024-02-26 14:23:08.360577: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1753] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices... Traceback (most recent call last): File "detect_video.py", line 9, in
from core.yolov4 import filter_boxes
File "/home/praveen/YOLOV4/Yolo_v4_obj_det/tensorflow-yolov4-tflite/core/yolov4.py", line 292, in
def filter_boxes(box_xywh, scores, score_threshold=0.4, input_shape = tf.constant([416,416])):
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 263, in constant
return _constant_impl(value, dtype, shape, name, verify_shape=False,
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 275, in _constant_impl
return _constant_eager_impl(ctx, value, dtype, shape, verify_shape)
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 300, in _constant_eager_impl
t = convert_to_eager_tensor(value, ctx, dtype)
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 97, in convert_to_eager_tensor
ctx.ensure_initialized()
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 524, in ensure_initialized
config_str = self.config.SerializeToString()
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 973, in config
config.device_count["CPU"] = 0
File "/home/praveen/YOLOV4/my_env/lib/python3.8/site-packages/google/protobuf/internal/containers.py", line 325, in setitem
raise TypeError(
TypeError: RepeatedCompositeFieldContainer object does not support item assignment