htzheng / CM-GAN-Inpainting

CM-GAN for Image Inpainting
Apache License 2.0
234 stars 19 forks source link

What's the relationship of json and png? #3

Open mingqizhang opened 2 years ago

mingqizhang commented 2 years ago

I check the pixel values in png, but it's not consistent with id or category_id in json file, even not consistent with coco dataset. So, could you release a readme.txt of the panoptic segmentation annotations, thanks!

htzheng commented 2 years ago

Hi @mingqizhang , thank you for your interest in our work. I have updated the readme and included an example script on how to generate object-aware masks on-the-fly using a given panoptic annotation. Basically, the png image saves the id of each segment, and JSON file saves category_id, isthing of id. Isthing represents whether the segment is a thing/stuff.

Our data format follows detectron2. More detailed metadata can be loaded using this script

from detectron2.data import MetadataCatalog 
panoptic_metadata = MetadataCatalog.get('coco_2017_val_panoptic_separated')

and detectron2 can be installed with

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'  (from https://detectron2.readthedocs.io/en/latest/tutorials/install.html)
mingqizhang commented 2 years ago

@htzheng Thanks for your reply, there's another question. I try download data_large_panoptic.tar from Dropbox many times, but can not success, Only part of the whole dataset(Maybe it's too large? others like val or test can download).

htzheng commented 2 years ago

@htzheng Thanks for your reply, there's another question. I try download data_large_panoptic.tar from Dropbox many times, but can not success, Only part of the whole dataset(Maybe it's too large? others like val or test can download).

The data_large_panoptic.tar is 60GB, you could try adding this file to your dropbox space and download it with the Dropbox APP. I may also copy the file to google drive or Baidu Cloud later (but it could be delayed).

yftongbupt commented 1 year ago

@htzheng Thanks for your reply, there's another question. I try download data_large_panoptic.tar from Dropbox many times, but can not success, Only part of the whole dataset(Maybe it's too large? others like val or test can download).

The data_large_panoptic.tar is 60GB, you could try adding this file to your dropbox space and download it with the Dropbox APP. I may also copy the file to google drive or Baidu Cloud later (but it could be delayed).

Do you have a download link from Google Drive or Baidu Cloud now? @htzheng

yftongbupt commented 1 year ago

@htzheng Thanks for your reply, there's another question. I try download data_large_panoptic.tar from Dropbox many times, but can not success, Only part of the whole dataset(Maybe it's too large? others like val or test can download).

Have you downloaded data_large_panoptic.tar successfully? @mingqizhang