• Nicolas Hug's avatar
    [OPS, IMP] New batched_nms implementation (#3426) · 414427dd
    Nicolas Hug authored
    
    
    * new batched_nms implem
    
    * flake8
    
    * hopefully fix torchscipt tests
    
    * Use where instead of nonzero
    
    * Use same threshold (4k) for CPU and GPU
    
    * Remove use of argsort
    
    * use views again
    
    * remove print
    
    * trying stuff, I don't know what's going on
    
    * previous passed onnx checks so the error isn't in _vanilla func. Trying to return vanilla now
    
    * add tracing decorators
    
    * cleanup
    
    * wip
    
    * ignore new path with ONNX
    
    * use vanilla if tracing...????
    
    * Remove script_if_tracing decorator as it was conflicting with _is_tracing
    
    * flake8
    
    * Improve coverage
    Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
    414427dd
boxes.py 10.5 KB