Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Change this:

net = cv2.dnn.readNetFromCaffe("deploy.prototxt", "model.caffemodel")

to:

net = cv2.dnn.readNetFromCaffe(deploy, model)

This is what I used:

proto = '/home/stephen/Desktop/deep-learning-opencv/bvlc_googlenet.prototxt'
model = '/home/stephen/Desktop/deep-learning-opencv/bvlc_googlenet.caffemodel'
net = cv2.dnn.readNetFromCaffe(proto, model)

Change this:

net = cv2.dnn.readNetFromCaffe("deploy.prototxt", "model.caffemodel")

to:

net = cv2.dnn.readNetFromCaffe(deploy, model)

This is what I used:

proto = '/home/stephen/Desktop/deep-learning-opencv/bvlc_googlenet.prototxt'
model 'mobilenet_deploy.prototxt'
weights = '/home/stephen/Desktop/deep-learning-opencv/bvlc_googlenet.caffemodel'
'mobilenet.caffemodel'
net = cv2.dnn.readNetFromCaffe(proto, model)

Change this:

net = cv2.dnn.readNetFromCaffe("deploy.prototxt", "model.caffemodel")

to:

net = cv2.dnn.readNetFromCaffe(deploy, model)

This is what I used:

proto = 'mobilenet_deploy.prototxt'
weights = 'mobilenet.caffemodel'
net = cv2.dnn.readNetFromCaffe(proto, model)
weights)