Merge branch 'main' of github.com:henry123-boy/SpaTrackerV2

This commit is contained in:
xiaoyuxi 2025-07-09 11:06:21 +08:00
commit 4393c1a348
2 changed files with 12 additions and 11 deletions

View File

@ -68,33 +68,33 @@ By following these steps, you should have a working environment ready to run the
## Quick Start
We give two examples to illustrate the usage of `SpaTrack2`.
Here are two examples of how to use `SpaTrack2`.
### Type1: Monocular video as input *(Example0)*
```
python inference.py --data_type="RGB" --data_dir="examples" --video_name="protein" --fps=5
python inference.py --data_type="RGB" --data_dir="examples" --video_name="protein" --fps=3
```
### Type2: Customized Posed RGBD video as input *(Example1)*
We provide an example which has Posed RGBD input with [MegaSAM](https://github.com/mega-sam/mega-sam).
Firstly, please download `examples` via:
### Type2: RGBD video + Camera poses as input *(Example1)*
We provide an example with Depth and Camera poses from [MegaSAM](https://github.com/mega-sam/mega-sam).
First, download the `examples` via:
```
sh scripts/download.sh
```
Run it with below:
Then run inference with the command with below:
```
python inference.py --data_type="RGBD" --data_dir="assets/example0" --video_name="snowboard" --fps=1
python inference.py --data_type="RGBD" --data_dir="assets/example1" --video_name="snowboard" --fps=1
```
### Visualize your results
The guidance will be displayed in the terminal after running `inference.py`.
Guidance will be displayed in the terminal after running `inference.py`.
## 🌟 Recommended: Gradio Demo with SAM 🌟
Please follow the instructions in the [app_3rd README](app_3rd/README.md) to configure the dependencies. Then,
Please follow the instructions in the [app_3rd README](app_3rd/README.md) to configure the dependencies. Then, install the required packages:
```
python -m pip install gradio==5.31.0 pako
```
Our gradio demo enables the user to track the points on the target object easily, just try:
Our Gradio demo enables users to easily track points on the target object. Just try:
```
python app.py
```

View File

@ -1,4 +1,5 @@
#!/bin/bash
# Download the example data using gdown
gdown --id 1q6n2R5ihfMoD-dU_u5vfcMALZSihNgiq -O ./assets/example0/snowboard.npz
mkdir -p ./assets/example1
gdown --id 1q6n2R5ihfMoD-dU_u5vfcMALZSihNgiq -O ./assets/example1/snowboard.npz