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"))

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()
                                      if key != "image"})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: pfnet/optuna
Commit Name: ab391322dc7c62a66e5edc6ee2eb201e1e6643b7
Time: 2018-07-05
Author: toshihiko.yanase@gmail.com
File Name: examples/xgboost_cancer.py
Class Name:
Method Name: objective


Project Name: dPys/PyNets
Commit Name: 449ce796e6f506a28075f16099c986e298141569
Time: 2017-11-12
Author: dpisner@utexas.edu
File Name: pynets/nodemaker.py
Class Name:
Method Name: get_names_and_coords_of_parcels