An annotation tool for marine data labeling.
- clone the repository
- create a conda environment using the
environment.yaml
file
conda env create -f environment.yaml
- Please download the original model weights of SAM (ViT-H) and the XMeM weights and put them to
saves
folder. - Install segment anything by
pip install git+https://github.com/facebookresearch/segment-anything.git
- Generate the embeddings in advance; run
python helpers/extract_embeddings.py --dataset-path ./video_seqs/shark
- Generate the onnx models in advance; run
python helpers/generate_onnx.py --dataset-path ./video_seqs/shark
we use multi-thread to generate the onnx models. If your computer is less powerful, you can set--nthread
to a smaller valuer (default is 8).
labeling_demo.mp4
Activate the conda environment and run
python segment_anything_annotator.py --dataset-path <your_data_path>
- Multi-object tracking and segmentation (check the
mots
branch) - Keyframe caption and refinement (check the
caption
branch)
Our labeling tool is heavily based on
Thanks for their contributions to the whole community.
If you find this labeling tool helpful, please consider citing:
@article{zhengcoralvos,
title={CoralVOS: Dataset and Benchmark for Coral Video Segmentation},
author={Zheng, Ziqiang and Xie, Yaofeng and Liang, Haixin and Yu, Zhibin and Yeung, Sai-Kit},
journal={arXiv preprint arXiv:2310.01946},
year={2023}
}