lib/model/nms_wrapper.py
def nms(dets, thresh, force_cpu=False):
  """Dispatch to either CPU or GPU NMS implementations."""

  if dets.shape[0] == 0:
    return []
  if cfg.USE_GPU_NMS and not force_cpu:
    return gpu_nms(dets, thresh, device_id=0)
  else:
    return cpu_nms(dets, thresh)
Dispatch to either CPU or GPU NMS implementations.
Dispatch to either CPU or GPU NMS implementations.
Dispatch to either CPU or GPU NMS implementations .
def nms(dets, thresh, force_cpu=False):
  if dets.shape[0] == 0:
    return []
  if cfg.USE_GPU_NMS and not force_cpu:
    return gpu_nms(dets, thresh, device_id=0)
  else:
    return cpu_nms(dets, thresh)
def nms ( dets , thresh , force_cpu = False ) : if dets . shape [ 0 ] == 0 : return [ ] if cfg . USE_GPU_NMS and not force_cpu : return gpu_nms ( dets , thresh , device_id = 0 ) else : return cpu_nms ( dets , thresh )
Dispatch to either CPU or GPU NMS implementations.
Dispatch to either CPU or GPU NMS implementations .
"""Dispatch to either CPU or GPU NMS implementations."""
dets
thresh
force_cpu