5bc2c075733e672a9a7c5e14bc474788f88e90de,gluoncv/utils/viz/mask.py,,expand_mask,#Any#Any#Any#Any#Any#Any#Any#,9
Before Change
full_masks = []
bboxes *= scale
for i in sorted_inds:
if scores is not None and scores[i] < thresh:
continue
mask = masks[i]
bbox = bboxes[i]
full_masks.append(fill(mask, bbox, im_shape))
full_masks = np.array(full_masks)
return full_masks, sorted_inds
After Change
bboxes *= scale
valid = np.where(scores >= thresh)[0]
sorted_inds = sorted_inds[valid]
masks = masks[valid]
bboxes = bboxes[valid]
full_masks = fill(masks, bboxes, im_shape)
return full_masks, sorted_inds
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: dmlc/gluon-cv
Commit Name: 5bc2c075733e672a9a7c5e14bc474788f88e90de
Time: 2019-12-06
Author: jerryzh.cn@gmail.com
File Name: gluoncv/utils/viz/mask.py
Class Name:
Method Name: expand_mask
Project Name: deepchem/deepchem
Commit Name: 624dfb1a1263e5539d30112e2ba7344957b9b20f
Time: 2020-07-20
Author: peastman@stanford.edu
File Name: deepchem/feat/coulomb_matrices.py
Class Name: CoulombMatrix
Method Name: coulomb_matrix
Project Name: maciejkula/spotlight
Commit Name: eef158f03c4ec9bf872a3e358d62a1fd21a73c35
Time: 2017-07-13
Author: maciej.kula@gmail.com
File Name: examples/movielens_cnn.py
Class Name:
Method Name:
Project Name: microsoft/nni
Commit Name: 2de52a8976971da4836727ba9242fedcc7474878
Time: 2020-01-16
Author: 656569648@qq.com
File Name: src/sdk/pynni/nni/compression/torch/compressor.py
Class Name: Pruner
Method Name: export_model