56926bc8b4a158e1c40cddbc795303bc6a66f44d,semantic-segmentation/deeplabv3plus/model_inference.py,,post_process,#Any#Any#Any#,46

Before Change



def post_process(output, old_size, taget_size):

    ratio = float(taget_size)/max(old_size)
    new_size = tuple([int(x*ratio) for x in old_size])

    post_processed = output[0:new_size[0], 0:new_size[1]]

After Change




def post_process(output, old_size, target_size):
    ratio = min(np.divide(desired_size, old_size))
    new_size = (int(old_size[0]*ratio), int(old_size[1]*ratio))

    post_processed = output[0:new_size[0], 0:new_size[1]]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: sony/nnabla-examples
Commit Name: 56926bc8b4a158e1c40cddbc795303bc6a66f44d
Time: 2019-05-23
Author: sukriti.mehrotra@sony.com
File Name: semantic-segmentation/deeplabv3plus/model_inference.py
Class Name:
Method Name: post_process


Project Name: CellProfiler/CellProfiler
Commit Name: 54887fd542d79b2642c972ec9e2bba2f2074e685
Time: 2016-12-01
Author: mcquin@broadinstitute.org
File Name: cellprofiler/modules/rescaleintensity.py
Class Name: RescaleIntensity
Method Name: scale_by_image_maximum


Project Name: sony/nnabla-examples
Commit Name: 56926bc8b4a158e1c40cddbc795303bc6a66f44d
Time: 2019-05-23
Author: sukriti.mehrotra@sony.com
File Name: semantic-segmentation/deeplabv3plus/image_preprocess.py
Class Name:
Method Name: resize


Project Name: CellProfiler/CellProfiler
Commit Name: 54887fd542d79b2642c972ec9e2bba2f2074e685
Time: 2016-12-01
Author: mcquin@broadinstitute.org
File Name: cellprofiler/modules/rescaleintensity.py
Class Name: RescaleIntensity
Method Name: divide_by_image_maximum