AGNN
Zero-shot Video Object Segmentation via Attentive Graph Neural Networks (ICCV2019 Oral)
Install / Use
/learn @carrierlxk/AGNNREADME
AGNN
Code for ICCV 2019 paper: Zero-shot Video Object Segmentation via Attentive Graph Neural Networks

Quick Start
Training
-
Download all the training datasets, including MARA10K (split the RGB images and masks into two files) and DUT saliency datasets. Create a folder called images and put these datasets into the folder (data augmentation is suggested for these static images). Download the davis2016 dataset.
-
Download the deeplabv3 model from GoogleDrive. Put it into the folder pretrained/deep_labv3.
-
Change the video path, image path and deeplabv3 path in train_iteration_conf_agnn.py. Create two txt files which store the saliency dataset name and DAVIS16 training sequences name. Change the txt path in TripletImg_video1.py.
-
Run command: python train_iteration_conf_agnn.py --dataset davis --gpus 0,1
Testing
For Object level zero-shot VOS:
-
Install pytorch (version:1.0.1).
-
Download the pretrained model, put in the snapshots folder. Run 'test_iteration_conf_gnn.py' and change the davis dataset path, pretrainde model path and result path.
-
Run command: python test_iteration_conf_gnn.py --dataset davis --gpus 0
-
Post CRF processing code: https://github.com/lucasb-eyer/pydensecrf (scale=1 for unary,sdims = 1, compat=5 for pairwise Gaussian, sdims=30, schan=5, compat=9 ) The pretrained weight can be download from GoogleDrive.
For instance-level zero-shot VOS (multiple instances):
-
Download DAVIS-2017 dataset and run the object level zero-shot VOS for each video. In this way, we can obtain the object-level mask for each frame.
-
Download the code of PWCNet from here and compute the optical flow for each video.
-
Download the code of PReMVOS from here. Run the proposal generation and combination code with the provided network. In this way, we can obtain the instance level proposals for each frame.
-
Run the command proposal_selection_un.py to select the foreground instances from the first frame for each video and generate related json and jpeg file. Copy this file to PReMVOS and make a new file called my_data.
-
Run the code of refinement_net in PReMVOS and generate the mask for each instance.
-
Change the path of first frame as well as annotation in MergeTrack/merge.py. Run the mergetrack code to associate the instance mask across the subsequent frames.
The segmentation results on DAVIS-2016, Youtube-objects and DAVIS-2017 datasets can be download from GoogleDiver.
Citation
If you find the code and dataset useful in your research, please consider citing:
@InProceedings{Wang_2019_ICCV,
author = {Wang, Wenguan and Lu, Xiankai and Shen, Jianbing and Crandall, David J. and Shao, Ling},
title = {Zero-Shot Video Object Segmentation via Attentive Graph Neural Networks},
booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
year = {2019}
}
Other related projects/papers:
Saliency-Aware Geodesic Video Object Segmentation (CVPR15)
Learning Unsupervised Video Primary Object Segmentation through Visual Attention (CVPR19)
Any comments, please email: carrierlxk@gmail.com
Related Skills
qqbot-channel
349.2kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.3k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
349.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
3.0kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
