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

Failed to parse NetParameter file: /content/tennis_tracking/Yolov3/yolov3.weights in function 'readNetFromDarknet' #8

Open
LoboaTeresa opened this issue Dec 7, 2022 · 1 comment

Comments

@LoboaTeresa
Copy link

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!

@MasterHM-ml
Copy link

hey, have you solved it? If yes, please guide how you did it.

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

2 participants