Пример #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
Пример #2
0
    def get_output_layer(self, image_path, layer):
        im = cv2.imread(image_path)
	code = im_detect(self.net, im, layer)
	return code
Пример #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