Spaces:
Running on Zero
Running on Zero
Download models/motion.py from Charlie839242/StreamTAP3D: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/spaces/Charlie839242/StreamTAP3D/resolve/main/models/motion.py
- Command line
-
hf download hf://spaces/Charlie839242/StreamTAP3D/models/motion.py
-
curl -L -o motion.py https://huggingface.co/spaces/Charlie839242/StreamTAP3D/resolve/main/models/motion.py
635 Bytes
| """Pixel features and the per-frame pixel update, owned by Tracker.""" | |
| from .motion_net.stream import CoTrackerThreeStream | |
| def build_motion(image_size): | |
| """The fnet and the pixel updater. Weights come from the tracker checkpoint.""" | |
| input_cache_size = 15 | |
| return CoTrackerThreeStream( | |
| stride=4, | |
| corr_radius=3, | |
| corr_levels=4, | |
| window_len=input_cache_size + 1, | |
| num_virtual_tracks=64, | |
| model_resolution=tuple(image_size), | |
| input_cache_size=input_cache_size, | |
| ttt_layers=(0, 1, 2), | |
| ttt_type="linear", | |
| ttt_head_dim=32, | |
| ttt_base_lr=0.1, | |
| ) | |