c8b28432a637a780eed96547260722ff3dede57e,niftynet/engine/sampler_selective.py,,rand_choice_coordinates,#Any#Any#Any#Any#Any#Any#,350
Before Change
indices_to_add = candidates_indices[list_indices_fin[i]]
// print(max_coords.shape, indices_to_add)
for s in range(0, N_SPATIAL):
max_coords [i, s] = indices_to_add[s] - np.floor(
spatial_win_sizes[0]/2)[s]
// for i in range(0, N_SPATIAL):
// assert uniq_spatial_size[i] >= max_spatial_win[i], \
After Change
list_indices_fin = list_indices_fin[:n_samples]
max_coords = np.zeros((n_samples, N_SPATIAL), dtype=np.int32)
half_win = np.floor(np.asarray(win_sizes["image"]) / 2).astype(np.int)
for (i_sample, ind) in enumerate(list_indices_fin):
indices_to_add = candidates_indices[ind]
max_coords[i_sample, :N_SPATIAL] = \
indices_to_add[:N_SPATIAL] - half_win[:N_SPATIAL]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: NifTK/NiftyNet
Commit Name: c8b28432a637a780eed96547260722ff3dede57e
Time: 2017-10-04
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_selective.py
Class Name:
Method Name: rand_choice_coordinates
Project Name: chainer/chainercv
Commit Name: 222213890a758b3efc8ed8ff57133291753f98e0
Time: 2017-09-28
Author: yuyuniitani@gmail.com
File Name: chainercv/transforms/image/random_sized_crop.py
Class Name:
Method Name: random_sized_crop
Project Name: minimaxir/textgenrnn
Commit Name: a40184feb58dcff44df72b2a93a155ecf4845f04
Time: 2018-05-01
Author: max@minimaxir.com
File Name: textgenrnn/textgenrnn.py
Class Name: textgenrnn
Method Name: train_on_texts