I am working on object detection using YOLO. I have the config file and the weight file. I tried loading it using cv.dnn.readNet(yolo.config, yolo.weight) but I am getting error that cv2.dnn has no attribute 'readNet'.

I also tried loading it from cv2.dnn.readNetFromCaffe(yolo.prototxt, yolo.weights) and readNetFromTensorflow(yolo.weights, yolo.config), but it gave error :

FAILED: ReadProtoFromTextFile(param_file, param)

Is there any other way to load a pre-trained model using config and weight file or by converting it to prototxt or some other file?

More Anupam Anurag Tripathi's questions See All
Similar questions and discussions