Là một dự án mã nguồn mở, yangchris11/samurai đã đạt 7.1k sao trên GitHub, ngôn ngữ Python. Official repository of "SAMURAI: Adapting Segment Anything Model for Zero-Shot Visual Tracking with Motion-Aware Memory"
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Incoming: Support vot-challenge toolkit intergration.
Incoming: Release demo script to support inference on video (with mask prompt).
2025/02/18: Release multi-GPU inference script.
2025/01/27: Release inference script on VOS task (SA-V)!
2024/11/21: Release demo script to support inference on video (bounding box prompt).
2024/11/20 Release inference script on VOT task (LaSOT, LaSOT-ext, GOT-10k, UAV123, TrackingNet, OTB100)!
2024/11/19: Release paper, code, and raw results!
Getting Started
SAMURAI Installation
SAM 2 needs to be installed first before use. The code requires python>=3.10, as well as torch>=2.3.1 and torchvision>=0.18.1. Please follow the instructions here to install both PyTorch and TorchVision dependencies. You can install the SAMURAI version of SAM 2 on a GPU machine using:
cd sam2
pip install -e .
pip install -e ".[notebooks]"
Please see INSTALL.md from the original SAM 2 repository for FAQs on potential issues and solutions.
To run the demo with your custom video or frame directory, use the following examples:
Note: The .txt file contains a single line with the bounding box of the first frame in x,y,w,h format while the SAM 2 takes x1,y1,x2,y2 format as bbox input.
# Only JPG images are supported
python scripts/demo.py --video_path <your_frame_directory> --txt_path <path_to_first_frame_bbox.txt>
FAQs
Question 1: Does SAMURAI need training? issue 34
Answer 1: Unlike real-life samurai, the proposed samurai do not require additional training. It is a zero-shot method, we directly use the weights from SAM 2.1 to conduct VOT experiments. The Kalman filter is used to estimate the current and future state (bounding box location and scale in our case) of a moving object based on measurements over time, it is a common approach that had been adopted in the field of tracking for a long time, which does not require any training. Please refer to code for more detail.
Question 2: Does SAMURAI support streaming input (e.g. webcam)?
Answer 2: Not yet. The existing code doesn't support live/streaming video as we inherit most of the codebase from the amazing SAM 2. Some discussion that you might be interested in: facebookresearch/sam2#90, facebookresearch/sam2#388 (comment).
Question 3: How to use SAMURAI in longer video?
Answer 3: See the discussion from sam2 https://github.com/facebookresearch/sam2/issues/264.
Question 4: How do you run the evaluation on the VOT benchmarks?
Answer 4: For LaSOT, LaSOT-ext, OTB, NFS please refer to the issue 74 for more details. For GOT-10k-test and TrackingNet, please refer to the official portal for submission.
Acknowledgment
SAMURAI is built on top of SAM 2 by Meta FAIR.
The VOT evaluation code is modifed from VOT Toolkit by Luka Čehovin Zajc.
Citation
Please consider citing our paper and the wonderful SAM 2 if you found our work interesting and useful.
@article{ravi2024sam2,
title={SAM 2: Segment Anything in Images and Videos},
author={Ravi, Nikhila and Gabeur, Valentin and Hu, Yuan-Ting and Hu, Ronghang and Ryali, Chaitanya and Ma, Tengyu and Khedr, Haitham and R{\"a}dle, Roman and Rolland, Chloe and Gustafson, Laura and Mintun, Eric and Pan, Junting and Alwala, Kalyan Vasudev and Carion, Nicolas and Wu, Chao-Yuan and Girshick, Ross and Doll{\'a}r, Piotr and Feichtenhofer, Christoph},
journal={arXiv preprint arXiv:2408.00714},
url={https://arxiv.org/abs/2408.00714},
year={2024}
}
@misc{yang2024samurai,
title={SAMURAI: Adapting Segment Anything Model for Zero-Shot Visual Tracking with Motion-Aware Memory},
author={Cheng-Yen Yang and Hsiang-Wei Huang and Wenhao Chai and Zhongyu Jiang and Jenq-Neng Hwang},
year={2024},
eprint={2411.11922},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2411.11922},
}
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/yangchris11/samurai là nguồn chính thức.
yangchris11/samurai có bao nhiêu sao?
yangchris11/samurai có 7.1k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/yangchris11/samurai. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
yangchris11/samurai có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho yangchris11/samurai. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
yangchris11/samurai còn đang phát triển không?
Commit gần nhất trên yangchris11/samurai là 1.7 năm trước (theo timestamp GitHub). Repo có 500 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
yangchris11/samurai viết bằng ngôn ngữ gì?
yangchris11/samurai chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về samurai?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về samurai.