e99fa49e48a92e3e27cc731c0835fca131e8fd86,lib/model/masks.py,,dfaker,#Any#Any#Any#,16
Before Change
mask = np.zeros_like(face, dtype=np.uint8)
hull = cv2.convexHull(facepoints.astype(int)) // pylint: disable=no-member
hull = cv2.transform(hull.reshape(1, -1, 2), // pylint: disable=no-member
mat).reshape(-1, 2).astype(int)
cv2.fillConvexPoly(mask, hull, (255, 255, 255)) // pylint: disable=no-member
After Change
kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (15, 15)) // pylint: disable=no-member
mask = cv2.dilate(mask, kernel, borderType=cv2.BORDER_REFLECT) // pylint: disable=no-member
mask = np.expand_dims(mask, axis=-1)
return merge_mask(face, mask, channels)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: deepfakes/faceswap
Commit Name: e99fa49e48a92e3e27cc731c0835fca131e8fd86
Time: 2019-03-21
Author: vrooman.kyle@gmail.com
File Name: lib/model/masks.py
Class Name:
Method Name: dfaker
Project Name: NifTK/NiftyNet
Commit Name: 2665f09ab4159730c12ddbc3e643291f01234a80
Time: 2018-08-11
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/contrib/csv_reader/csv_reader.py
Class Name: CSVReader
Method Name: layer_op
Project Name: sony/nnabla
Commit Name: a6f63f9d910d93d5cf3a2d016a0ed2b925f9eb9f
Time: 2018-11-19
Author: Akio.Hayakawa@sony.com
File Name: python/src/nnabla/utils/image_utils/cv2_utils.py
Class Name:
Method Name: imresize