f2ce1348cc711bc1e7806ff464192d2aff181bdc,repos/insightface/deploy/test.py,,,#,6
Before Change
dist = np.sum(np.square(f1-f2))
print(dist)
sim = np.dot(f1, f2.T)
print(sim)
//diff = np.subtract(source_feature, target_feature)
//dist = np.sum(np.square(diff),1)
After Change
img = cv2.imread("/Users/aub3/3.jpg")
f3 = model.get_feature(img)
dist1 = np.sum(np.square(f1-f2))
dist2 = np.sum(np.square(f1-f3))
print(dist1,dist2)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: f2ce1348cc711bc1e7806ff464192d2aff181bdc
Time: 2018-01-26
Author: akshayubhat@gmail.com
File Name: repos/insightface/deploy/test.py
Class Name:
Method Name:
Project Name: OpenNMT/OpenNMT-py
Commit Name: 77a6ec73c53c5cc62a2ae451694537144afa5644
Time: 2016-09-14
Author: alerer@fb.com
File Name: mnist/main.py
Class Name:
Method Name: test
Project Name: hanxiao/bert-as-service
Commit Name: c139d9a5dcca330c527cbd44cc41b2ef50f57276
Time: 2018-12-18
Author: hanhxiao@tencent.com
File Name: example/example8.py
Class Name:
Method Name: