Download examples/video.py from PramaLLC/BEN3: direct link, hf CLI and curl.
- Browser
- Download file 135 Bytes
-
https://huggingface.co/PramaLLC/BEN3/resolve/main/examples/video.py
- Command line
-
hf download hf://PramaLLC/BEN3/examples/video.py
-
curl -L -o video.py https://huggingface.co/PramaLLC/BEN3/resolve/main/examples/video.py
135 Bytes
| from ben3 import BEN3 | |
| model = BEN3("ben3.pth", device="cuda") | |
| model.segment_video("input.mp4", "foreground.webm", batch=8, webm=True) | |