468e2709de706aa4cc7d704b46d5221b9b92abfb,plugins/extract/mask/vgg_clear.py,Mask,process_input,#Mask#Any#,34

Before Change



    def process_input(self, batch):
         Compile the detected faces for prediction 
        for index, face in enumerate(batch["detected_faces"]):
            face.load_aligned(face.image,
                              size=self.mask_in_size,
                              dtype="float32")
            self.input[index] = face.aligned["face"][..., :3]
        batch["feed"] = self.input - np.mean(self.input, axis=(1, 2))[:, None, None, :]
        return batch

    def predict(self, batch):

After Change



    def process_input(self, batch):
         Compile the detected faces for prediction 
        input_ = np.array([face.feed_face[..., :3]
                           for face in batch["detected_faces"]], dtype="float32")
        batch["feed"] = input_ - np.mean(input_, axis=(1, 2))[:, None, None, :]
        logger.trace("feed shape: %s", batch["feed"].shape)
        return batch
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

Instances


Project Name: deepfakes/faceswap
Commit Name: 468e2709de706aa4cc7d704b46d5221b9b92abfb
Time: 2019-10-11
Author: 36920800+torzdf@users.noreply.github.com
File Name: plugins/extract/mask/vgg_clear.py
Class Name: Mask
Method Name: process_input


Project Name: tensorflow/models
Commit Name: 2de7692ddeffef0f0e965e1f8cca7463df19033a
Time: 2018-05-09
Author: mironov@gmail.com
File Name: research/differential_privacy/privacy_accountant/python/rdp_accountant.py
Class Name:
Method Name: compute_rdp


Project Name: biotite-dev/biotite
Commit Name: 15d99b699f84b1ef04365928158ff83d1fc0ea7d
Time: 2019-02-11
Author: patrick.kunzm@gmail.com
File Name: src/biotite/structure/mechanics.py
Class Name:
Method Name: mass_center


Project Name: rtavenar/tslearn
Commit Name: 6ffdbc8963b6bcaf686af1a9d5b7ddf212dbfc31
Time: 2020-04-21
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/early_classification.py
Class Name: NonMyopicEarlyClassification
Method Name: fit