Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
ZiyuG
/
SAM2Point
Like
16
Running
on
Zero
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
SAM2Point
/
sam2
/
csrc
/
connected_comp.py
ZiyuG
Upload 42 files
d2410ba
verified
about 2 years ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
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)