Spaces:
Build error
Build error
|
Download docs/API.md from Form-Fighter/FormFighterAIStack: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/Form-Fighter/FormFighterAIStack/resolve/dbb4512c9a599024d4923232badd2a3d42e2bd04/docs/API.md
- Command line
-
hf download hf://spaces/Form-Fighter/FormFighterAIStack@dbb4512c9a599024d4923232badd2a3d42e2bd04/docs/API.md
-
curl -L -o API.md https://huggingface.co/spaces/Form-Fighter/FormFighterAIStack/resolve/dbb4512c9a599024d4923232badd2a3d42e2bd04/docs/API.md
536 Bytes
| ## Python API | |
| To use python API of WHAM, please finish the basic installation first ([Installation](INSTALL.md) or [Docker](DOCKER.md)). | |
| If you use Docker environment, please run: | |
| ```bash | |
| cd /path/to/WHAM | |
| docker run -it -v .:/code/ --rm yusun9/wham-vitpose-dpvo-cuda11.3-python3.9 python | |
| ``` | |
| Then you can run wham via python code like | |
| ```bash | |
| from wham_api import WHAM_API | |
| wham_model = WHAM_API() | |
| input_video_path = 'examples/IMG_9732.mov' | |
| results, tracking_results, slam_results = wham_model(input_video_path) | |
| ``` |