xyupeng / ContrastiveCrop

[CVPR 2022 Oral] Crafting Better Contrastive Views for Siamese Representation Learning
MIT License
284 stars 27 forks source link

ContrastiveCrop的size和scale是根据数据集设定吗,还是代码中的size=32,scale=(0.2,1.0)适配所有数据集 #2

Closed syfffffff closed 2 years ago

xyupeng commented 2 years ago

The size should vary based on the dataset. size=32 is the typical size used for CIFAR-10/100. The scale is relatively less important. scale=(0.2, 1.0) should be a good default for different datasets. Of course, you can try a different lower/upper bound for parameter tuning.

syfffffff commented 2 years ago

If my picture size is 224 * 224, can I increase my size appropriately

xyupeng commented 2 years ago

Of course, you can set size=224. Note that the size passed to ContrastiveCrop is the same as the one passed to RandomResizedCrop.

syfffffff commented 2 years ago

thanks