Skip to content

Commit e4b61d4

Browse files
committed
add colab-SAMTrack
1 parent 492f001 commit e4b61d4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
**Segment and Track Anything** is an open-source project that focuses on the segmentation and tracking of any objects in videos, utilizing both automatic and interactive methods. The primary algorithms utilized include the [**SAM** (Segment Anything Models)](https://github.com/facebookresearch/segment-anything) for automatic/interactive key-frame segmentation and the [**DeAOT** (Decoupling features in Associating Objects with Transformers)](https://github.com/yoxu515/aot-benchmark) (NeurIPS2022) for efficient multi-object tracking and propagation. The SAM-Track pipeline enables dynamic and automatic detection and segmentation of new objects by SAM, while DeAOT is responsible for tracking all identified objects.
88

99
## :loudspeaker:New Features
10-
- We have introduced a new WebUI that allows interactive user segmentation through strokes and clicks. Feel free to explore and have fun with the [tutorial](./tutorial/1.0-Version.md)!
11-
- Check out our new video tutorials!
10+
- [2023/4/25] You can easily use SAMTrack in [Colab](https://colab.research.google.com/drive/1R10N70AJaslzADFqb-a5OihYkllWEVxB?usp=sharing) for visual tracking tasks.
11+
12+
- [2023/4/23] We have introduced a new WebUI that allows interactive user segmentation through strokes and clicks. Feel free to explore and have fun with the [tutorial](./tutorial/1.0-Version.md)!
13+
- [2023/4/24] Check out our new video tutorials!
1214
- YouTube-Link: [Tutorial for Interactively modify single-object mask for first frame of video](https://www.youtube.com/watch?v=DF0iFSsX8KY)[Tutorial for Interactively add object by click](https://www.youtube.com/watch?v=UJvKPng9_DA)[Tutorial for Interactively add object by stroke](https://www.youtube.com/watch?v=m1oFavjIaCM).
1315
- Bilibili Video Link:[Tutorial for Interactively modify single-object mask for first frame of video](https://www.bilibili.com/video/BV1tM4115791/?spm_id_from=333.999.0.0)[Tutorial for Interactively add object by click](https://www.bilibili.com/video/BV1Qs4y1A7d1/)[Tutorial for Interactively add object by stroke](https://www.bilibili.com/video/BV1Lm4y117J4/?spm_id_from=333.999.0.0).
1416
- 1.0-Version is a developer version, please feel free to contact us if you encounter any bugs :bug:.
@@ -22,8 +24,8 @@
2224
This video showcases the segmentation and tracking capabilities of SAM-Track in various scenarios, such as street views, AR, cells, animations, aerial shots, and more.
2325

2426
## :calendar:TODO
25-
- [ ] Colab notebook
26-
- [x] 1.0-Version Interactive WebUI
27+
- [x] Colab notebook: Completed on April 25th, 2023.
28+
- [x] 1.0-Version Interactive WebUI: Completed on April 23rd, 2023.
2729
- We will create a feature that enables users to interactively modify the mask for the initial video frame according to their needs. The interactive segmentation capabilities of Segment-and-Track-Anything is demonstrated in [Demo1](https://www.youtube.com/watch?v=ctnD03w-5VA) and [Demo2](https://www.youtube.com/watch?v=DfCUGUxALYo).
2830
- Bilibili Video Link: [Demo1](https://www.bilibili.com/video/BV1JL411v7uE/), [Demo2](https://www.bilibili.com/video/BV1Qs4y1w763/).
2931
- [ ] 1.5-Version Interactive WebUI
@@ -93,10 +95,6 @@ SegTracker-Parameters:
9395
- **max_obj_num**: used to limit the maximum number of objects that SAM-Track can detect and track. A larger number of objects necessitates a greater utilization of memory, with approximately 16GB of memory capable of processing a maximum of 255 objects.
9496

9597
Usage: To see the details, please refer to the [tutorial for 1.0-Version WeiUI](./tutorial/1.0-Version.md).
96-
<!-- - Start app, use your browser to open the web-link.
97-
- Click on the `input-video window` to upload a video.
98-
- Adjust SAM-Track parameters as needed.
99-
- Click `Seg and Track` to get the experiment results. -->
10098

10199
### :full_moon_with_face:Credits
102100
Licenses for borrowed code can be found in `licenses.md` file.

script/download_ckpt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# download aot-ckpt
2-
wget -P ./ckpt https://drive.google.com/file/d/1QoChMkTVxdYZ_eBlZhK2acq9KMQZccPJ/view?usp=sharing
2+
gdown --id '1QoChMkTVxdYZ_eBlZhK2acq9KMQZccPJ' --output ./ckpt/R50_DeAOTL_PRE_YTB_DAV.pth
33

44
# download sam-ckpt
55
wget -P ./ckpt https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth

script/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ cd -
44

55
# Install other lib
66
pip install numpy opencv-python pycocotools matplotlib Pillow scikit-image
7+
pip install gradio zip gdown ffmpeg
78

89
# Install Pytorch Correlation
910
git clone https://github.com/ClementPinard/Pytorch-Correlation-extension.git
10-
cd Pytorch-Correlation-extension; python setup.py install
11+
cd Pytorch-Correlation-extension
12+
python setup.py install
1113
cd -

0 commit comments

Comments
 (0)