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]]
post_processed = cv2.resize(
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: 4
Non-data size: 7
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: dickreuter/Poker
Commit Name: ca423e05927e73bf8b0c2c260c00241ac9d198a1
Time: 2019-12-23
Author: 47919514+MikePlace1971@users.noreply.github.com
File Name: poker/table_analysers/table_screen_based.py
Class Name: TableScreenBased
Method Name: get_game_number_on_screen
Project Name: Qiskit/qiskit-aqua
Commit Name: a194557ba754f9b14d473ff9e39a2bc2449e58c1
Time: 2018-07-06
Author: chenrich@us.ibm.com
File Name: qiskit_acqua/ising/maxcut.py
Class Name:
Method Name: sample_most_likely
Project Name: Qiskit/qiskit-aqua
Commit Name: d892fb853c4c296539034d2dbaf304c0d06a357d
Time: 2018-07-06
Author: 34400304+liupibm@users.noreply.github.com
File Name: qiskit_acqua/ising/graphpartition.py
Class Name:
Method Name: sample_most_likely