zrporz/AutoSeg-SAM2
소개
This is an automatic full segmentation tool based on Segment-Anything-2 and Segment-Anything-1. Our tool performs automatic full segmentation of the video, enabling the tracking of each object and the detection of possible new objects.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalREADME
This is an automatic full segmentation tool based on Segment-Anything-2 and Segment-Anything-1. Our tool performs automatic full segmentation of the video, enabling the tracking of each object and the detection of possible new objects.
Demo
https://github.com/user-attachments/assets/12fc2c3f-b915-4f58-a492-fc74bbc31e52
https://github.com/user-attachments/assets/f080aab6-12a6-461b-8618-cc25bcf67a9b
https://github.com/user-attachments/assets/ef45b7ee-4d89-4096-87d7-24c273f9dc6e
Environment Setup
First, clone this repository and submodules
#SSH
git clone [email protected]:zrporz/AutoSeg-SAM2.git --recursive
or
#HTTPS
git clone https://github.com/zrporz/AutoSeg-SAM2.git --recursive
The code requires python>=3.10, as well as torch>=2.3.1 and torchvision>=0.18.1
We use SAM1 to provide static segmentation results and use the SAM2 to track the static segmentation results. You can install them by the following commands
### install sam1 and sam2 modules
pip install -e submodule/segment-anything-1
pip install -e submoudle/segment-anything-2
### download checkpoints
cd checkpoints/sam1
bash download.sh
cd ../sam2
bash download.sh
Prepare your data
Please organize your video data as follows
|-<video dir>
|-000001.jpg
|-000002.jpg
|-000003.jpg
|-000004.jpg
...
or you can use our demo datasets chickenchicken and put it under videos/chickenchicken, then run
bash scripts/chickenchicken.sh
Citation
@software{AutoSeg_SAM2,
author = {Zrporz},
title = {AutoSeg-SAM2},
year = {2024},
publisher = {GitHub},
url = {https://github.com/zrporz/AutoSeg-SAM2},
version = {Latest},
license = {MIT},
note = {Automated image segmentation tool based on Segment Anything Model (SAM)}
}
관련 프로젝트 살펴보기
불러오는 중…