e76ab16bfec7cb4ee4c0e96617fc844a58c18d6a,tools/sort.py,Sort,sort_face_cnn,#Sort#,172
Before Change
img_list = []
for x in tqdm(self.find_images(input_dir), desc="Loading", file=sys.stdout):
d = FaceLandmarksExtractor.extract(cv2.imread(x), "cnn", True, input_is_predetected_face=True)
img_list.append([x, np.array(d[0][1]) if len(d) > 0 else np.zeros((68, 2))])
img_list_len = len(img_list)
for i in tqdm(range(0, img_list_len - 1), desc="Sorting", file=sys.stdout):
After Change
for x in tqdm(self.find_images(input_dir),
desc="Loading",
file=sys.stdout):
d = face_alignment.Extract(
cv2.imread(x),
"dlib-cnn",
True,
input_is_predetected_face=True).landmarks
img_list.append([x, np.array(d[0][1])
if len(d) > 0
else np.zeros((68, 2))])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: deepfakes/faceswap
Commit Name: e76ab16bfec7cb4ee4c0e96617fc844a58c18d6a
Time: 2018-07-03
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/sort.py
Class Name: Sort
Method Name: sort_face_cnn
Project Name: deepfakes/faceswap
Commit Name: e76ab16bfec7cb4ee4c0e96617fc844a58c18d6a
Time: 2018-07-03
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/sort.py
Class Name: Sort
Method Name: sort_face_cnn_dissim
Project Name: deepfakes/faceswap
Commit Name: e76ab16bfec7cb4ee4c0e96617fc844a58c18d6a
Time: 2018-07-03
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/sort.py
Class Name: Sort
Method Name: reload_images
Project Name: deepfakes/faceswap
Commit Name: e76ab16bfec7cb4ee4c0e96617fc844a58c18d6a
Time: 2018-07-03
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/sort.py
Class Name: Sort
Method Name: sort_face_yaw