lukemelas / deep-spectral-segmentation

[CVPR 2022] Deep Spectral Methods: A Surprisingly Strong Baseline for Unsupervised Semantic Segmentation and Localization

Repository from Github https://github.comlukemelas/deep-spectral-segmentationRepository from Github https://github.comlukemelas/deep-spectral-segmentation

Size of segmap

chandagrover opened this issue · comments

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.

solved.

Hi!
@chandagrover how did you solve this?

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