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/5e0986d69bbbd70563cfb85475a2889397b2d1ea/docs/API.md
- Command line
-
hf download hf://spaces/Form-Fighter/FormFighterAIStack@5e0986d69bbbd70563cfb85475a2889397b2d1ea/docs/API.md
-
curl -L -o API.md https://huggingface.co/spaces/Form-Fighter/FormFighterAIStack/resolve/5e0986d69bbbd70563cfb85475a2889397b2d1ea/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) | |
| ``` |