lukemelas / deep-spectral-segmentation

[CVPR 2022] Deep Spectral Methods: A Surprisingly Strong Baseline for Unsupervised Semantic Segmentation and Localization
229 stars 41 forks source link

Size of segmap #13

Closed chandagrover closed 1 year ago

chandagrover commented 1 year ago

I am getting small size of segmaps say 189 bytes, 215 bytes, 139 bytes. Also, getting variable size segmaps of images present in VOC2012..

How can I increase the size of those segmaps.

chandagrover commented 1 year ago

solved.

sidgairo18 commented 1 year ago

Hi! @chandagrover how did you solve this?

chandagrover commented 1 year ago

Hi,

Once you obtained patches of size say: 189 bytes, 215 bytes, or 139 bytes, you can increase the resolution of patches with below code: python extract.py extract_crf_segmentations \ --images_list "./data/object-segmentation/${DATASET}/lists/images.txt" \ --images_root "./data/object-segmentation/${DATASET}/images" \ --segmentations_dir "./data/object-segmentation/${DATASET}/single_region_segmentation/patches/laplacian_dino_vits16" \ --output_dir "./data/object-segmentation/${DATASET}/single_region_segmentation/crf/laplacian_dino_vits16" \ --downsample_factor 16 \ --num_classes 2