コード例 #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
ファイル: util.py プロジェクト: GMNetto/CS2951t_Project
    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