I am obtaining the following error message when running:
!python3 "predict_video.py" --save_weights_path="/content/tennis_tracking/WeightsTracknet/model.1" --input_video_path="/content/tennis_tracking/VideoInput/video_cut.mp4" --output_video_path="/content/tennis_tracking/VideoOutput/video_output.avi" --n_classes=256 --path_yolo_classes="/content/tennis_tracking/Yolov3/yolov3.txt" --path_yolo_weights="/content/tennis_tracking/Yolov3/yolov3.weights" --path_yolo_config="/content/tennis_tracking/Yolov3/yolov3.cfg"
On a Google Colab with GPU.
The error message:
2022-12-07 09:10:38.868557: W tensorflow/core/util/tensor_slice_reader.cc:96] Could not open /content/tennis_tracking/WeightsTracknet/model.1: DATA_LOSS: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? Traceback (most recent call last): File "predict_video.py", line 85, in <module> net = cv2.dnn.readNet(yolo_weights, yolo_config) cv2.error: OpenCV(4.6.0) /io/opencv/modules/dnn/src/darknet/darknet_importer.cpp:217: error: (-212:Parsing error) Failed to parse NetParameter file: /content/tennis_tracking/Yolov3/yolov3.weights in function 'readNetFromDarknet'
Hi, Can anyone help me with this?
I am obtaining the following error message when running:
!python3 "predict_video.py" --save_weights_path="/content/tennis_tracking/WeightsTracknet/model.1" --input_video_path="/content/tennis_tracking/VideoInput/video_cut.mp4" --output_video_path="/content/tennis_tracking/VideoOutput/video_output.avi" --n_classes=256 --path_yolo_classes="/content/tennis_tracking/Yolov3/yolov3.txt" --path_yolo_weights="/content/tennis_tracking/Yolov3/yolov3.weights" --path_yolo_config="/content/tennis_tracking/Yolov3/yolov3.cfg"
On a Google Colab with GPU.
The error message:
2022-12-07 09:10:38.868557: W tensorflow/core/util/tensor_slice_reader.cc:96] Could not open /content/tennis_tracking/WeightsTracknet/model.1: DATA_LOSS: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? Traceback (most recent call last): File "predict_video.py", line 85, in <module> net = cv2.dnn.readNet(yolo_weights, yolo_config) cv2.error: OpenCV(4.6.0) /io/opencv/modules/dnn/src/darknet/darknet_importer.cpp:217: error: (-212:Parsing error) Failed to parse NetParameter file: /content/tennis_tracking/Yolov3/yolov3.weights in function 'readNetFromDarknet'
Thanks in advance!