Views
No views yet
inference.py, along with sample input data located in the demo_inputs/ directory. The script accepts as input either an .mp4 video file or an .npz file. If providing an .npz file, it should follow the following format:video: array of shape (T, H, W, 3), dtype: uint8depths (optional): array of shape (T, H, W), dtype: float32intrinsics (optional): array of shape (T, 3, 3), dtype: float32extrinsics (optional): array of shape (T, 4, 4), dtype: float32--input_path, the script first runs MegaSAM with MoGe to estimate depth maps and camera parameters. Subsequently, the model will process these inputs within the global frame.python inference.py --input_path demo_inputs/sheep.mp4 --checkpoint checkpoints/tapip3d_final.pth --resolution_factor 2outputs/inference/. To visualize the results:python visualize.py <result_npz_path>.npz file containing all four keys (rgb, depths, intrinsics, extrinsics) is provided, the model will operate in an aligned global frame, generating point trajectories in world coordinates.@article{tapip3d,
title={TAPIP3D: Tracking Any Point in Persistent 3D Geometry},
author={Zhang, Bowei and Ke, Lei and Harley, Adam W and Fragkiadaki, Katerina},
journal={arXiv preprint arXiv:2504.14717},
year={2025}
}