Segmentation.md
August 29, 2023 ยท View on GitHub
Step1: Feature Extraction
Please extract the image features of train and val of Pascal-5i.
The pixel-level retriever:
val
python tools/feature_extractor_folderwise_segmentation.py vit_large_patch14_clip_224.laion2b features_vit-laion2b_pixel-level val
train
python tools/feature_extractor_folderwise_segmentation.py vit_large_patch14_clip_224.laion2b features_vit-laion2b_pixel-level trn
Step2: Calculate Similarity
We need to generate json file for trn set and val set separately.
val
python tools/calculate_similariity.py features_vit-laion2b_pixel-level val trn
trn
python tools/calculate_similariity.py features_vit-laion2b_pixel-level trn trn