d52f37e431cb96d49d865b722978a9e1b1b90848,donkeycar/utils.py,,get_test_img,#Any#,419
Before Change
count, seq_len, h, w, ch = model.inputs[0].get_shape()
// generate random array in the right shape
img = np.random.rand(int(h), int(w), int(ch))
return img
After Change
count, seq_len, h, w, ch = model.inputs[0].get_shape()
// generate random array in the right shape
img = np.random.randint(0, 255, size=(h, w, ch))
return img.astype(np.uint8)
def train_test_split(data_list, shuffle=True, test_size=0.2):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: autorope/donkeycar
Commit Name: d52f37e431cb96d49d865b722978a9e1b1b90848
Time: 2020-10-09
Author: 47540921+DocGarbanzo@users.noreply.github.com
File Name: donkeycar/utils.py
Class Name:
Method Name: get_test_img
Project Name: autorope/donkeycar
Commit Name: d52f37e431cb96d49d865b722978a9e1b1b90848
Time: 2020-10-09
Author: 47540921+DocGarbanzo@users.noreply.github.com
File Name: scripts/profile.py
Class Name:
Method Name: profile
Project Name: azavea/raster-vision
Commit Name: 2f81754d55a621365af95df01f639f4c0fcaa7eb
Time: 2018-08-13
Author: jmcclain@azavea.com
File Name: src/rastervision/label_stores/segmentation_raster_file_test.py
Class Name: TestingRasterSource
Method Name: __init__