Datasets:

ArXiv:
changliu19 commited on
Commit
81eede5
ยท
verified ยท
1 Parent(s): 0eb1826

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .DS_Store +0 -0
  2. .gitattributes +2 -0
  3. README.md +90 -3
  4. grefs(unc).json +3 -0
  5. instances.json +3 -0
.DS_Store ADDED
Binary file (6.15 kB). View file
 
.gitattributes CHANGED
@@ -57,3 +57,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ grefs(unc).json filter=lfs diff=lfs merge=lfs -text
61
+ instances.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,90 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # gRefCOCO - Dataset for [CVPR2023 Highlight] GRES: Generalized Referring Expression Segmentation
2
+ [![PyTorch](https://img.shields.io/badge/PyTorch-1.11.0-%23EE4C2C.svg?style=&logo=PyTorch&logoColor=white)](https://pytorch.org/)
3
+ [![Python](https://img.shields.io/badge/Python-3.7%20|%203.8%20|%203.9-blue.svg?style=&logo=python&logoColor=ffdd54)](https://www.python.org/downloads/)
4
+ [![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/gres-generalized-referring-expression-1/generalized-referring-expression-segmentation)](https://paperswithcode.com/sota/generalized-referring-expression-segmentation?p=gres-generalized-referring-expression-1)
5
+
6
+ **[๐Ÿ [Project page]](https://henghuiding.github.io/GRES/)**   **[๐Ÿ“„[GRES Arxiv]](https://arxiv.org/abs/2306.00968)**   **[๐Ÿ“„[GREC Arxiv]](https://arxiv.org/abs/2308.16182)**
7
+
8
+ This repository contains information and tools for the [gRefCOCO](https://henghuiding.github.io/GRES/) dataset, proposed by the **CVPR2023 Highlight** paper:
9
+ > [GRES: Generalized Referring Expression Segmentation](https://arxiv.org/abs/2306.00968)
10
+ > Chang Liu, Henghui Ding, Xudong Jiang
11
+ > CVPR 2023 Highlight, Acceptance Rate 2.5%
12
+
13
+ <div align="center">
14
+ <img src="https://github.com/henghuiding/ReLA/blob/main/imgs/fig1.png?raw=true" width="100%" height="100%"/>
15
+ </div><br/>
16
+
17
+
18
+ ## Usage
19
+
20
+ - Like RefCOCO, gRefCOCO also should be used together with images from the `train2014` of [MS COCO](https://cocodataset.org/#download).
21
+ - An example of dataloader [grefer.py](https://github.com/henghuiding/gRefCOCO/blob/main/grefer.py) is provided.
22
+ - We will update this repository with full API package and documentation soon. Please follow the usage in the [baseline code](https://github.com/henghuiding/ReLA) for now.
23
+
24
+ ## Task 1 - GREC: Generalized Referring Expression Comprehension
25
+ - The GREC evaluation metric code is [here](https://github.com/henghuiding/gRefCOCO/blob/main/mdetr/datasets/refexp.py).
26
+
27
+
28
+ - We provide code based on [MDETR](https://github.com/ashkamath/mdetr), its training and inference are as follows:
29
+
30
+
31
+ ### Training (Finetuning)
32
+ 1. Process grefcoco to coco format.
33
+ ```
34
+ python scripts/fine-tuning/grefexp_coco_format.py --data_path xxx --out_path mdetr_annotations/ --coco_path xxx
35
+ ```
36
+ 2. Training and download `pretrained_resnet101_checkpoint.pth` from [MDETR](https://github.com/ashkamath/mdetr)
37
+ ```
38
+ python -m torch.distributed.launch --nproc_per_node=2 --use_env main.py --dataset_config configs/grefcoco.json --batch_size 4 --load pretrained_resnet101_checkpoint.pth --ema --text_encoder_lr 1e-5 --lr 5e-5 --output-dir grefcoco
39
+ ```
40
+ ### Inference
41
+
42
+ 1. Obtain `checkpoint.pth` after training or download trained model [ here โ˜๏ธ Google Drive](https://drive.google.com/file/d/14OrM3n_Oap7xCT6nxj9QEnkJOUMpBGjB/view?usp=drive_link)
43
+ 2. For test results, pass --test and --test_type test or testA or testB according to the dataset.
44
+ ```
45
+ python -m torch.distributed.launch --nproc_per_node=2 --use_env main.py --dataset_config configs/grefcoco.json --batch_size 4 --resume grefcoco/checkpoint.pth --ema --eval
46
+ ```
47
+ ## Task 2 - GRES: Generalized Referring Expression Segmentation
48
+ Please refer to [ReLA](https://github.com/henghuiding/ReLA) for more details.
49
+
50
+
51
+ ## Acknowledgement
52
+
53
+ Our project is built upon [refer](https://github.com/lichengunc/refer) and [cocoapi](https://github.com/cocodataset/cocoapi). Many thanks to the authors for their great works!
54
+
55
+
56
+ ## BibTeX
57
+ Please consider to cite GRES/GREC if it helps your research.
58
+
59
+ ```bibtex
60
+ @inproceedings{GRES,
61
+ title={{GRES}: Generalized Referring Expression Segmentation},
62
+ author={Liu, Chang and Ding, Henghui and Jiang, Xudong},
63
+ booktitle={CVPR},
64
+ year={2023}
65
+ }
66
+ @article{GREC,
67
+ title={{GREC}: Generalized Referring Expression Comprehension},
68
+ author={He, Shuting and Ding, Henghui and Liu, Chang and Jiang, Xudong},
69
+ journal={arXiv preprint arXiv:2308.16182},
70
+ year={2023}
71
+ }
72
+ ```
73
+ We also recommend other highly related works:
74
+ ```bibtex
75
+ @article{VLT,
76
+ title={{VLT}: Vision-language transformer and query generation for referring segmentation},
77
+ author={Ding, Henghui and Liu, Chang and Wang, Suchen and Jiang, Xudong},
78
+ journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
79
+ year={2023},
80
+ volume={45},
81
+ number={6},
82
+ publisher={IEEE}
83
+ }
84
+ @inproceedings{MeViS,
85
+ title={{MeViS}: A Large-scale Benchmark for Video Segmentation with Motion Expressions},
86
+ author={Ding, Henghui and Liu, Chang and He, Shuting and Jiang, Xudong and Loy, Chen Change},
87
+ booktitle={ICCV},
88
+ year={2023}
89
+ }
90
+ ```
grefs(unc).json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc37c5ff95373c78a6a3f98b4c7bc67fde387ea8514752a1392db64223eb3366
3
+ size 58950386
instances.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f86adb7f4c39db19c7f02a3cc604d17f8016e4c4e8312652d0acc4eae3a2cbd
3
+ size 120213916