Skip to content

Commit

Permalink
Revert "Fix to an UnboundLocalError due to rename. (deepfakes#318)"
Browse files Browse the repository at this point in the history
This reverts commit 2e2dc84.
  • Loading branch information
kvrooman committed Mar 28, 2018
1 parent e7db8ee commit a96e062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FaceLandmarksExtractor/FaceLandmarksExtractor.py
Expand Up @@ -173,7 +173,7 @@ def extract(input_image_bgr, detector, verbose, all_faces=True, input_is_predete
center[1] -= (bottom - top) * 0.12
scale = (right - left + bottom - top) / 195.0

image = crop(input_image_bgr, center, scale).transpose ( (2,0,1) ).astype(np.float32) / 255.0
image = crop(input_image, center, scale).transpose ( (2,0,1) ).astype(np.float32) / 255.0
image = np.expand_dims(image, 0)

pts_img = get_pts_from_predict ( keras_model.predict (image)[-1][0], center, scale)
Expand Down

0 comments on commit a96e062

Please sign in to comment.