Open thomascong121 opened 2 years ago
Hi and thanks for the interest in our code. You are completely right. The argument --balance
is meant for controlling whether resampling will be applied.
Hi, Thanks for the reply, I try to use your code to obtain the results on APTOS19. The result I got is ~0.803
which is always a bit lower than the result reported in the paper. I think this might due to the difference in randomly splitting the dataset. Or do you have any other ideas why this happens?
Hi. I am missing the setup you want to reproduce but either case:
Hi, Thanks for the detailed explanations. In order to reproduce the results on APTOS19, I follow the same pipline as stated in the paper. For stage one (feature learning), I trained the model for 500 epochs, the learning rate is initialized to 10^−1 and decayed to 10^−4, the weight decay is set to 10^−4, the batch size is set to 192 on 4 3090 GPUs. I use RandomResizedCrop(224), RandomHorizontalFlip() and ColorJitter(brightness=0.4, contrast=0.4, saturation=0.4, hue=0.2) as the augmentation. For the second stage (classifier training), I use the same augmentation setting, but set the number of epochs equals to 100 and learning rate equals to 1.0. Can you specify if this matches with your setting on APTOS19? Much appreciates in advance.
Hi, Thanks for the great work, I am really interested in this idea of using contrastive learning in imbalanced studies. I am just a bit confused about this
--balance
term in the argument, are you just using this term to control whether to apply resampling or not?