xyupeng / ContrastiveCrop

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

请问ContrastiveCrop的ratio的参数是多少? #5

Closed leo-hao closed 2 years ago

leo-hao commented 2 years ago

在ContrastiveCrop(alpha=alpha, size=224, scale=(0.2, 1.0))里面没有设置ratio,请问这个参数怎么设置

xyupeng commented 2 years ago

We use the default ratio=(3/4, 4/3) of RandomResizedCrop. You can simply pass ratio=(a, b) to ContrastiveCrop().