Spaces:
Build error
Build error
Download src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils/nms_wrapper.py from karolwoz/pixel3dmms: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/karolwoz/pixel3dmms/resolve/main/src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils/nms_wrapper.py
- Command line
-
hf download hf://spaces/karolwoz/pixel3dmms/src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils/nms_wrapper.py
-
curl -L -o nms_wrapper.py https://huggingface.co/spaces/karolwoz/pixel3dmms/resolve/main/src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils/nms_wrapper.py
460 Bytes
| # -------------------------------------------------------- | |
| # Fast R-CNN | |
| # Copyright (c) 2015 Microsoft | |
| # Licensed under The MIT License [see LICENSE for details] | |
| # Written by Ross Girshick | |
| # -------------------------------------------------------- | |
| from .nms.cpu_nms import cpu_nms, cpu_soft_nms | |
| def nms(dets, thresh): | |
| """Dispatch to either CPU or GPU NMS implementations.""" | |
| if dets.shape[0] == 0: | |
| return [] | |
| return cpu_nms(dets, thresh) | |