Exemplo n.º 1
0
 def get_fc7(self, imagepath):
     im = cv2.imread(imagepath)
     code = im_detect(self.net, im, "fc7")
     # return np.ones((300, 4096))
     return code
Exemplo n.º 2
0
    def get_output_layer(self, image_path, layer):
        im = cv2.imread(image_path)
	code = im_detect(self.net, im, layer)
	return code
Exemplo n.º 3
0
 def autoencoder(self, image_path):
     print image_path
     im = cv2.imread(image_path)
     code = im_detect(self.net, im, "fc8_gustavo_encode")
     return code