Files
Track-Anything/README.md

48 lines
1.7 KiB
Markdown
Raw Normal View History

2023-04-12 13:21:43 +08:00
# Track-Anything
2023-04-18 23:27:02 +08:00
***Track-Anything*** is a flexible and interactive tool for video object tracking and segmentation. It is developed upon [Segment Anything](https://github.com/facebookresearch/segment-anything) and [XMem](https://github.com/hkchengrex/XMem), can specify anything to track and segment via user clicks only. During tracking, users can flexibly change the objects they wanna track or correct the region of interest if there are any ambiguities. These characteristics enable ***Track-Anything*** to be suitable for:
- Video object tracking and segmentation with shot changes.
- Data annnotation for video object tracking and segmentation.
- Object-centric downstream video tasks, such as video inpainting and editing.
2023-04-14 00:10:07 +08:00
2023-04-12 13:21:43 +08:00
## Demo
2023-04-12 13:31:20 +08:00
2023-04-19 00:30:15 +08:00
https://user-images.githubusercontent.com/28050374/232842703-8395af24-b13e-4b8e-aafb-e94b61e6c449.MP4
2023-04-18 23:27:02 +08:00
### Video Object Tracking and Segmentation with Shot Changes
one gif/video
### Video Inpainting (with [E2FGVI](https://github.com/MCG-NKU/E2FGVI))
2023-04-18 23:32:22 +08:00
![image](./assets/inpainting.gif)
2023-04-18 23:27:02 +08:00
### Video Editing
one gif/video
2023-04-12 13:31:20 +08:00
2023-04-14 22:21:03 +08:00
## Get Started
2023-04-16 21:02:48 +08:00
#### Linux
```bash
# Clone the repository:
git clone https://github.com/gaomingqi/Track-Anything.git
cd Track-Anything
2023-04-13 20:15:02 +00:00
2023-04-18 00:39:39 +08:00
# Install dependencies:
2023-04-16 21:02:48 +08:00
pip install -r requirements.txt
2023-04-18 23:27:02 +08:00
# Install dependencies for inpainting:
2023-04-18 00:39:39 +08:00
pip install -U openmim
mim install mmcv
2023-04-18 23:27:02 +08:00
# Install dependencies for editing
pip install madgrad
2023-04-17 10:56:37 +08:00
# Run the Track-Anything gradio demo.
2023-04-16 21:22:38 +08:00
python app.py --device cuda:0 --sam_model_type vit_h --port 12212
2023-04-16 21:02:48 +08:00
```
2023-04-12 13:31:20 +08:00
2023-04-12 13:21:43 +08:00
## Acknowledgement
2023-04-12 13:31:20 +08:00
2023-04-12 14:03:31 +08:00
The project is based on [Segment Anything](https://github.com/facebookresearch/segment-anything) and [XMem](https://github.com/hkchengrex/XMem). Thanks for the authors for their efforts.