ae754071b2a696949a31b1003150409bce388990,dvalib/indexer.py,FacenetIndexer,apply,#FacenetIndexer#Any#,259
Before Change
def apply(self,image_path):
self.load()
images = facenet.load_data([image_path,], do_random_crop=False, do_random_flip=False, image_size=self.image_size,do_prewhiten=True)
feed_dict = {self.images_placeholder: images, self.phase_train_placeholder: False}
return self.session.run(self.embeddings, feed_dict=feed_dict)
After Change
img.save("/Users/aub3/debug.jpg")
img = np.array(img)
img = facenet.prewhiten(img)
images = np.zeros((1, self.image_size, self.image_size, 3))
images[0, :, :, :] = img
feed_dict = {self.images_placeholder: images, self.phase_train_placeholder: False}
return self.session.run(self.embeddings, feed_dict=feed_dict)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: ae754071b2a696949a31b1003150409bce388990
Time: 2017-03-06
Author: akshayubhat@gmail.com
File Name: dvalib/indexer.py
Class Name: FacenetIndexer
Method Name: apply
Project Name: keras-team/autokeras
Commit Name: a33f747920882f6cd857bbdb50050ea360a6f366
Time: 2020-11-19
Author: jhfjhfj1@gmail.com
File Name: tests/integration_tests/io_api_test.py
Class Name:
Method Name: test_io_api
Project Name: keras-team/autokeras
Commit Name: a33f747920882f6cd857bbdb50050ea360a6f366
Time: 2020-11-19
Author: jhfjhfj1@gmail.com
File Name: tests/integration_tests/functional_api_test.py
Class Name:
Method Name: test_image_blocks