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]]
post_processed = cv2.resize(
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
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: 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: librosa/librosa
Commit Name: 4d78e7c936be168db70c65276915688a131ef193
Time: 2015-02-17
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: __axis_chroma
Project Name: ClimbsRocks/auto_ml
Commit Name: ba097e3d9e780ff40ab0c513028e4177d3024888
Time: 2016-08-12
Author: ClimbsBytes@gmail.com
File Name: auto_ml/utils.py
Class Name: FinalModelATC
Method Name: fit
Project Name: dPys/PyNets
Commit Name: 45c1bf1938a7cd547f9532094b239b01e99d8a09
Time: 2020-07-04
Author: dpisner@utexas.edu
File Name: pynets/plotting/plot_graphs.py
Class Name:
Method Name: plot_community_conn_mat