Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

error of yolo weight path #65

Open
pythonmjs opened this issue Jul 30, 2021 · 0 comments
Open

error of yolo weight path #65

pythonmjs opened this issue Jul 30, 2021 · 0 comments

Comments

@pythonmjs
Copy link

Hi, Can anyone help me to solve this out?

Traceback (most recent call last):
File "Vehicle_Counting.py", line 168, in
vehicle_counter = VehicleCounter(frame, detector, tracker, droi, args.showdroi, mcdf, mctf, di, args.clposition)
File "Vehicle_Counting.py", line 38, in init
initial_bboxes = get_bounding_boxes(droi_frame, self.detector)
File "/content/drive/MyDrive/Colab Notebooks/summer1/Vehicle-Counting/detectors/detector.py", line 4, in get_bounding_boxes
return yolo_gbb(frame)
File "/content/drive/MyDrive/Colab Notebooks/summer1/Vehicle-Counting/detectors/yolo/yolo_detector.py", line 16, in get_bounding_boxes
net = cv2.dnn.readNet(os.path.join(location, 'yolov3.weights'), os.path.join(location, 'yolov3.cfg'))
cv2.error: OpenCV(4.1.0) /io/opencv/modules/dnn/src/darknet/darknet_importer.cpp:214: error: (-212:Parsing error) Failed to parse NetParameter file: /content/drive/MyDrive/Colab Notebooks/summer1/Vehicle-Counting/detectors/yolo/yolov3.weights in function 'readNetFromDarknet'

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

No branches or pull requests

1 participant