b8f005eebd686c3e16b3a3603f294db0013a569e,src/predict.py,,,#,47

Before Change


        if os.path.isfile(out_file):
            continue
        pred = predict(segmenter, imfile, target_shape=(dw, dh))
        res = cv2.imwrite(out_file, pred)
    print("")

After Change


        if mode == "pillow":
            pred_final = predict_pillow(segmenter, imfile, h=dh, w=dw)
            // pred_final.save(out_file)
        elif mode == "opencv":
            pred_final = predict_opencv(segmenter, imfile, h=dh, w=dw)
            // res = cv2.imwrite(out_file, pred_final)
        elif mode == "skimage":
            pred_final = predict_skimage(segmenter, imfile, h=dh, w=dw)
            // res = io.imsave(out_file, pred_final)
        // break

    print("")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: PavlosMelissinos/enet-keras
Commit Name: b8f005eebd686c3e16b3a3603f294db0013a569e
Time: 2017-04-07
Author: pmelissi@iti.gr
File Name: src/predict.py
Class Name:
Method Name:


Project Name: deepfakes/faceswap
Commit Name: b3ae6130ed4714852211a6e8cb56de66450da83c
Time: 2018-02-07
Author: Github@clorr.fr
File Name: scripts/extract.py
Class Name: ExtractTrainingData
Method Name: process


Project Name: utkuozbulak/pytorch-cnn-visualizations
Commit Name: 83d02d08feabaca88b65875318cb79a5e9e7b9c4
Time: 2018-11-17
Author: utku.ozbulak@gmail.com
File Name: src/generate_class_specific_samples.py
Class Name: ClassSpecificImageGeneration
Method Name: generate