ef58bc62d3b5ee992b37e9277a7aa7701d8c1757,mmdet/ops/nms/nms_wrapper.py,,soft_nms,#Any#Any#Any#Any#Any#,64
Before Change
method_codes = {"linear": 1, "gaussian": 2}
if method not in method_codes:
raise ValueError("Invalid method for SoftNMS: {}".format(method))
new_dets, inds = soft_nms_cpu(
dets_np,
iou_thr,
method=method_codes[method],
After Change
dets_t = dets.detach().cpu()
elif isinstance(dets, np.ndarray):
is_tensor = False
dets_t = torch.from_numpy(dets)
else:
raise TypeError(
"dets must be either a Tensor or numpy array, but got {}".format(
type(dets)))
method_codes = {"linear": 1, "gaussian": 2}
if method not in method_codes:
raise ValueError("Invalid method for SoftNMS: {}".format(method))
results = nms_cpu.soft_nms(dets_t, iou_thr, method_codes[method], sigma,
min_score)
new_dets = results[:, :5]
inds = results[:, 5]
if is_tensor:
return dets.new_tensor(new_dets), dets.new_tensor(
inds, dtype=torch.long)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: open-mmlab/mmdetection
Commit Name: ef58bc62d3b5ee992b37e9277a7aa7701d8c1757
Time: 2020-02-12
Author: xvjiarui0826@gmail.com
File Name: mmdet/ops/nms/nms_wrapper.py
Class Name:
Method Name: soft_nms
Project Name: dpressel/mead-baseline
Commit Name: 2eb4c5f77bd8da9b1e23851b0acb84543e442953
Time: 2018-09-24
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/model.py
Class Name: WordClassifierModelBase
Method Name: make_input
Project Name: kengz/SLM-Lab
Commit Name: 4df11055e61fa6c9fede6b2114c8ce05de9a035e
Time: 2017-12-08
Author: lgraesser@users.noreply.github.com
File Name: slm_lab/agent/algorithm/dqn.py
Class Name: DQNBase
Method Name: compute_q_target_values
Project Name: hassony2/kinetics_i3d_pytorch
Commit Name: 1f3da600c20e3376b0bb396bba482b1e90b7883c
Time: 2017-11-24
Author: yana.hasson@inria.fr
File Name: i3nception_tf.py
Class Name:
Method Name: