f32d270262d975d4984743da41f2d3d4db1511f4,autokeras/pretrained/face_detector.py,FaceDetector,load,#FaceDetector#Any#,313

Before Change


        self.scale_factor = 0.709

    def load(self, model_path=None):
        temp_path = temp_path_generator()
        ensure_dir(temp_path)
        for model_link, file_path in zip(Constant.FACE_DETECTION_PRETRAINED["PRETRAINED_MODEL_LINKS"],
                                         Constant.FACE_DETECTION_PRETRAINED["FILE_NAMES"]):
            download_file(model_link, f"{temp_path}/{file_path}")

After Change



    def load(self, model_path=None):
        model_paths = [download_model(model_link, file_name) for model_link, file_name in zip(
            Constant.FACE_DETECTOR["MODEL_LINKS"], Constant.FACE_DETECTOR["MODEL_NAMES"])]
        return model_paths

    def predict(self, img_path, output_file_path=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: keras-team/autokeras
Commit Name: f32d270262d975d4984743da41f2d3d4db1511f4
Time: 2019-01-08
Author: yashwanth95tuniki@gmail.com
File Name: autokeras/pretrained/face_detector.py
Class Name: FaceDetector
Method Name: load


Project Name: jhfjhfj1/autokeras
Commit Name: f32d270262d975d4984743da41f2d3d4db1511f4
Time: 2019-01-08
Author: yashwanth95tuniki@gmail.com
File Name: autokeras/pretrained/object_detector.py
Class Name: ObjectDetector
Method Name: load