fd10b74b45692e53047149cb4d526067845b4a7d,deploy/face_model.py,FaceModel,get_input,#FaceModel#,79

Before Change


                                          bbox,
                                          points,
                                          image_size="112,112")
        nimg = cv2.cvtColor(nimg, cv2.COLOR_BGR2RGB)
        aligned = np.transpose(nimg, (2, 0, 1))
        return aligned

    def get_feature(self, aligned):
        input_blob = np.expand_dims(aligned, axis=0)

After Change


        self.image_size = image_size

    def get_input(self, face_img):
        bbox, pts5 = self.detector.detect(face_img, threshold=0.8)
        if bbox.shape[0]==0:
            return None
        bbox = bbox[0, 0:4]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepinsight/insightface
Commit Name: fd10b74b45692e53047149cb4d526067845b4a7d
Time: 2020-11-06
Author: guojia@gmail.com
File Name: deploy/face_model.py
Class Name: FaceModel
Method Name: get_input


Project Name: deepinsight/insightface
Commit Name: fd10b74b45692e53047149cb4d526067845b4a7d
Time: 2020-11-06
Author: guojia@gmail.com
File Name: deploy/face_model.py
Class Name: FaceModel
Method Name: get_input


Project Name: xinntao/BasicSR
Commit Name: 6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4
Time: 2018-06-10
Author: wxt1994@126.com
File Name: codes/data/LR_dataset.py
Class Name: LRDataset
Method Name: __getitem__


Project Name: thoughtworksarts/EmoPy
Commit Name: 3341fc75b6327c95e6e11201ff4f86dfa9c546ea
Time: 2017-12-19
Author: angelica.perez37@gmail.com
File Name: data/dataProcessor.py
Class Name: DataProcessor
Method Name: get_training_data_from_csv