Instructions to use replicate/cv_utils with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/cv_utils with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("replicate/cv_utils") - Notebooks
- Google Colab
- Kaggle
Download torch-ext/torch_binding.h from replicate/cv_utils: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/replicate/cv_utils/resolve/main/torch-ext/torch_binding.h
- Command line
-
hf download hf://replicate/cv_utils/torch-ext/torch_binding.h
-
curl -L -o torch_binding.h https://huggingface.co/replicate/cv_utils/resolve/main/torch-ext/torch_binding.h
272 Bytes
| std::vector<torch::Tensor> connected_components_labeling_2d(const torch::Tensor &inputs, bool get_counts); | |
| torch::Tensor generic_nms(const torch::Tensor &dets, const torch::Tensor &scores, double iou_threshold, bool use_iou_matrix); |