d93e7b11140c11b43113686849a1c5c74d3a06f2,plugins/extract/align/_base.py,Aligner,finalize,#Aligner#Any#,158

Before Change


                        batch["image"],
                        batch["landmarks"])
        for face, filename, image, landmarks in generator:
            face.landmarks_xy = [(int(round(pt[0])), int(round(pt[1]))) for pt in landmarks]
            face.image = image
            face.filename = filename
        self._remove_invalid_keys(batch, ("detected_faces", "filename", "image"))
        logger.trace("Item out: %s", {key: val

After Change


        

        for face, landmarks in zip(batch["detected_faces"], batch["landmarks"]):
            if not isinstance(landmarks, np.ndarray):
                landmarks = np.array(landmarks)
            face.landmarks_xy = np.rint(landmarks).astype("int32")
        self._remove_invalid_keys(batch, ("detected_faces", "filename", "image"))
        logger.trace("Item out: %s", {key: val
                                      for key, val in batch.items()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: deepfakes/faceswap
Commit Name: d93e7b11140c11b43113686849a1c5c74d3a06f2
Time: 2019-10-18
Author: 36920800+torzdf@users.noreply.github.com
File Name: plugins/extract/align/_base.py
Class Name: Aligner
Method Name: finalize


Project Name: mathics/Mathics
Commit Name: 3682971abb85dd12991152d55cb687e259331419
Time: 2016-08-10
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/numeric.py
Class Name: Round
Method Name: apply


Project Name: chartbeat-labs/textacy
Commit Name: 2d73fbbe9ec240ff700f9abeb30f12861044389e
Time: 2019-07-14
Author: burtdewilde@gmail.com
File Name: textacy/ke/sgrank.py
Class Name:
Method Name: sgrank