ba0b828ee9db1689ba0a1de62c0b88918c2a5056,run_inference.py,,main,#,33

Before Change



    for file in tqdm(test_files):

        img = imread(file).astype(np.float32)

        h,w,_ = img.shape
        if (not args.no_resize) and (h != args.img_height or w != args.img_width):

After Change



    for file in tqdm(test_files):

        img = imread(file)

        h,w,_ = img.shape
        if (not args.no_resize) and (h != args.img_height or w != args.img_width):
            img = np.array(Image.fromarray(img).imresize((args.img_height, args.img_width)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: ClementPinard/SfmLearner-Pytorch
Commit Name: ba0b828ee9db1689ba0a1de62c0b88918c2a5056
Time: 2020-04-13
Author: anon@ymo.us
File Name: run_inference.py
Class Name:
Method Name: main


Project Name: ipazc/mtcnn
Commit Name: c34aea24b60a8b55782600889df372ca72253ab6
Time: 2019-08-02
Author: tbarnold@protonmail.ch
File Name: example.py
Class Name:
Method Name:


Project Name: qubvel/classification_models
Commit Name: 5161f3958d783b0468c44cddaf12f51f6d1c6a78
Time: 2019-01-16
Author: qubvel@gmail.com
File Name: tests/test_models.py
Class Name:
Method Name: _get_img