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