Ask Your Question

Revision history [back]

is dnn module possible to get specific outputs from multiple layers in one forwarding?

i.g.

 net = cv.dnn.readNet(caffemodel, prototxt)
 img = ...
 blob = cv.dnn.blobFromImage(img, scale, (227, 227), mean, isrgb, cropFromCenter)
 net.setInput(blob)

 A, B = net.forward([ "A", "B" ])
click to hide/show revision 2
retagged

updated 2019-07-30 06:43:21 -0600

berak gravatar image

is dnn module possible to get specific outputs from multiple layers in one forwarding?

i.g.

 net = cv.dnn.readNet(caffemodel, prototxt)
 img = ...
 blob = cv.dnn.blobFromImage(img, scale, (227, 227), mean, isrgb, cropFromCenter)
 net.setInput(blob)

 A, B = net.forward([ "A", "B" ])