← 开源
ByteDance-Seed

TraceAnything

[ICLR 2026] Trace Anything: Representing Any Video in 4D via Trajectory Fields

ModelsVision modelsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
587
Star
25
Fork
+2
本周
3
贡献者
创建于 2025-10-15 · 更新于 2026-10-10 · 今日第 16497 名
主要开发者
DarlingHangtrace-anythinghong22

ByteDance-Seed/TraceAnything 排名第 16,497,有 587 个星标。

同类别比较

ByteDance-Seed/TraceAnything 排名第 16,497,此处有 8 个同类条目;FoundationVision/Groma 排名第 16,498。

同类别比较
名称排名指标
fe1ixxu/ALMA16,438
语言:
Ruby
星标数:
591
分叉数:
44
简介:
State-of-the-art LLM-based translation models.
wzzheng/OccWorld16,447
语言:
Python
星标数:
591
分叉数:
44
简介:
[ECCV 2024] 3D World Model for Autonomous Driving
microsoft/CSWin-Transformer16,476
语言:
Python
星标数:
589
分叉数:
81
简介:
CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped, CVPR 2022
Shawn-IEITSystems/Yuan-1.016,485
语言:
Python
星标数:
588
分叉数:
109
简介:
Yuan 1.0 Large pretrained LM
FoundationVision/Groma16,498
语言:
Python
星标数:
587
分叉数:
44
简介:
[ECCV2024] Grounded Multimodal Large Language Model with Localized Visual Tokenization
pesser/pytorch_diffusion16,511
语言:
Python
星标数:
587
分叉数:
51
简介:
PyTorch reimplementation of Diffusion Models
alex4727/MotionStream16,531
星标数:
586
分叉数:
21
简介:
MotionStream: Real-Time Video Generation with Interactive Motion Controls
wyf0912/SinSR16,558
语言:
Python
星标数:
585
分叉数:
36
简介:
[CVPR 2024] SinSR: Diffusion-Based Image Super-Resolution in a Single Step
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Vision models
关键词3D, Computer vision, Deep Research, Visual understanding
星标数587
分叉数25
贡献者3
创建日期2025-10-15
更新日期2026-10-10
1 天星标数0
7 天星标数2
排名16,497
上次排名16,287
排名变化-210
7 天星标排名8,766
上次 7 天星标排名6,454
7 天星标排名变化-2,312
总星标排名17,052
上次总星标排名17,032
总星标排名变化-20
国家China
README 摘录

Trace Anything: Representing Any Video in 4D via Trajectory Fields 1 Bytedance Seed 2 HKUST 3 Zhejiang University 4 Dartmouth College Overview We propose a 4D video representation, __trajectory field__, which maps each pixel across frames to a continuous, parametric 3D trajectory. With a single forward pass, the __Trace Anything__ model efficiently estimates such trajectory fields for any video, image pair, or unstructured image set. This repository provides the official PyTorch implementation for running inference with the Trace Anything model

and exploring trajectory fields in an interactive 3D viewer. Setup Create and activate environment Requirements **Python** ≥ 3. 10 **PyTorch** (install according to your CUDA/CPU setup) **Dependencies**: **Notes** **CUDA:** Tested with **CUDA 12. **GPU Memory:** The provided examples are tested to run on a **single GPU with ≥ 48 GB VRAM**. Model weights Download the pretrained **model** and place it at: Inference We provide example input videos and image pairs under . Each subdirectory corresponds to a scene: The inference script loads

images from these scene folders and produces outputs. (Portrait images are automatically transposed. ) Images are resized so that the long side = **512**, then cropped to the nearest multiple of 16 (a model requirement). If the number of views exceeds 40, the script automatically downsamples. (Advanced) The script assumes input images are ordered in time (e. Support for unstructured, unordered inputs will be released in the future. Even though the true timestamp is implicit from known sequence order, the network’s

timestamp head still estimates it. This script lets you interactively select points on the first frame of a scene to produce per-frame foreground masks. Install SAM2 and download its checkpoint. Then run with: This will saves masks to: It also updates with: When visualizing, will automatically be preferred over if available. Then hit **Build / Refresh** to construct trajectories, and toggle **Show trajectories** to view them. 🎉 Pump up or shrink point size Filter out noisy background / foreground points by confidence

Drag to swivel the viewpoint Slide through time and watch the trajectories evolve Acknowledgements We sincerely thank the authors of the open-source repositories DUSt3R, Fast3R, VGGT, MonST3R, Easi3R, St4RTrack, POMATO, SpaTrackerV2 and Viser for their inspiring and high-quality work that greatly contributed to this project. License **Code**: Licensed under the Apache 2. **Model weights**: Licensed under the CC BY-NC 4. These weights are provided for research and non-commercial use only. Citation If you find our repository

useful, please consider giving it a star ⭐ and citing our paper in your work:

常见问题

记录了多少星标和分叉?

ByteDance-Seed/TraceAnything 有 587 个星标和 25 个分叉。

仓库排名是多少?

ByteDance-Seed/TraceAnything 排名第 16,497。

记录的语言和类别是什么?

ByteDance-Seed/TraceAnything 有 587 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

ByteDance-Seed/TraceAnything 与 FoundationVision/Groma 比较,后者排名第 16,498,有 587 个星标。

README

Trace Anything: Representing Any Video in 4D via Trajectory Fields

![Interactive Results](https://img.shields.io/badge/🖐️ Interactive%20Results-2b7a78?logoColor=white)

[Xinhang Liu](https://xinhangliu.com/)1,2    


[Yuxi Xiao](https://henry123-boy.github.io/)1,3    


[Donny Y. Chen](https://donydchen.github.io/)1    


[Jiashi Feng](https://scholar.google.com.sg/citations?user=Q8iay0gAAAAJ&hl=en)1    




[Yu-Wing Tai](https://yuwingtai.github.io/)4    


[Chi-Keung Tang](https://cse.hkust.edu.hk/~cktang/bio.html)2    


[Bingyi Kang](https://bingykang.github.io/)1    

1Bytedance Seed     2HKUST     3Zhejiang University     4Dartmouth College

Overview

We propose a 4D video representation, trajectory field, which maps each pixel across frames to a continuous, parametric 3D trajectory. With a single forward pass, the Trace Anything model efficiently estimates such trajectory fields for any video, image pair, or unstructured image set. This repository provides the official PyTorch implementation for running inference with the Trace Anything model and exploring trajectory fields in an interactive 3D viewer.

Setup

Create and activate environment

# Clone the repository
git clone https://github.com/ByteDance-Seed/TraceAnything.git
cd TraceAnything

# Create and activate environment
conda create -n trace_anything python=3.10
conda activate trace_anything

Requirements

  • Python ≥ 3.10

  • PyTorch (install according to your CUDA/CPU setup)

  • Dependencies:

    pip install einops omegaconf pillow opencv-python viser imageio matplotlib torchvision
    

Notes

  • CUDA: Tested with CUDA 12.8.
  • GPU Memory: The provided examples are tested to run on a single GPU with ≥ 48 GB VRAM.

Model weights

Download the pretrained model and place it at:

checkpoints/trace_anything.pt

Inference

We provide example input videos and image pairs under examples/input. Each subdirectory corresponds to a scene:

examples/
  input/
    scene_name_1/
      ...
    scene_name_2/
      ...

The inference script loads images from these scene folders and produces outputs.


Notes

  • Images must satisfy W ≥ H. (Portrait images are automatically transposed.)
  • Images are resized so that the long side = 512, then cropped to the nearest multiple of 16 (a model requirement).
  • If the number of views exceeds 40, the script automatically downsamples.
  • (Advanced) The script assumes input images are ordered in time (e.g., video frames or paired images). Support for unstructured, unordered inputs will be released in the future.

Running inference

Run the model over all scenes:

python scripts/infer.py

Default arguments

You can override these paths with flags:

  • --config configs/eval.yaml
  • --ckpt checkpoints/trace_anything.pt
  • --input_dir examples/input
  • --output_dir examples/output

Example

python scripts/infer.py \
  --input_dir examples/input \
  --output_dir examples/output \
  --ckpt checkpoints/trace_anything.pt

Results are saved to:

//output.pt

What’s inside output.pt?

  • preds[i]['ctrl_pts3d'] — 3D control points, shape [K, H, W, 3]

  • preds[i]['ctrl_conf'] — confidence maps, shape [K, H, W]

  • preds[i]['fg_mask'] — binary mask [H, W], computed via Otsu thresholding on control-point variance. (Mask images are also saved under //masks.)

  • preds[i]['time'] — predicted scalar time ∈ [0, 1).

    Even though the true timestamp is implicit from known sequence order, the network’s timestamp head still estimates it.

  • views[i]['img'] — normalized input image tensor ∈ [-1, 1]

Optional: User-Guided Masks with SAM2

If you prefer user-guided SAM2 masks instead of the automatic masks computed from Trace Anything outputs (for visualization), we provide a helper script scripts/user_mask.py. This script lets you interactively select points on the first frame of a scene to produce per-frame foreground masks.

Install SAM2 and download its checkpoint. Then run with:

python scripts/user_mask.py --scene  \
  --sam2_cfg configs/sam2.1/sam2.1_hiera_l.yaml \
  --sam2_ckpt 

This will saves masks to:

/masks/{i:03d}_user.png

It also updates /output.pt with:

preds[i]["fg_mask_user"]

When visualizing, fg_mask_user will automatically be preferred over fg_mask if available.

Interactive Visualization 🚀

Our visualizer lets you explore the trajectory field interactively:

Fire up the interactive 3D viewer and dive your trajectory fields:

python scripts/view.py --output examples/output//output.pt

Useful flags

  • --port 8020 — set viewer port
  • --t_step 0.025 — timeline step (smaller = more fine-grained curve evaluation)
  • --ds 2 — downsample all data by ::2 for extra speed

Remote use (SSH port-forwarding)

ssh -N -L 8020:localhost:8020 @
# Then open http://localhost:8020 locally

Trajectory panel

Input a frame number, or simply type "mid" / "last". Then hit Build / Refresh to construct trajectories, and toggle Show trajectories to view them.

Play around! 🎉

  • Pump up or shrink point size
  • Filter out noisy background / foreground points by confidence
  • Drag to swivel the viewpoint
  • Slide through time and watch the trajectories evolve

Acknowledgements

We sincerely thank the authors of the open-source repositories DUSt3R, Fast3R, VGGT, MonST3R, Easi3R, St4RTrack, POMATO, SpaTrackerV2 and Viser for their inspiring and high-quality work that greatly contributed to this project.

License

Citation

If you find our repository useful, please consider giving it a star ⭐ and citing our paper in your work:

@misc{liu2025traceanythingrepresentingvideo,
      title={Trace Anything: Representing Any Video in 4D via Trajectory Fields}, 
      author={Xinhang Liu and Yuxi Xiao and Donny Y. Chen and Jiashi Feng and Yu-Wing Tai and Chi-Keung Tang and Bingyi Kang},
      year={2025},
      eprint={2510.13802},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2510.13802}, 
}
排名相邻
同类项目