Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
ZiyuG
/
SAM2Point
like
14
Running
on
Zero
App
Files
Files
Community
7068291
SAM2Point
/
sam2
/
csrc
/
connected_comp.py
ZiyuG
Upload 42 files
d2410ba
verified
3 months ago
raw
Copy download link
history
blame
Safe
171 Bytes
from
torch.autograd
import
Function
from
sam2.csrc.backend
import
_backend
__all__ = [
'connect'
]
def
connect
(
mask
):
return
_backend.get_connected_componnets(mask)