Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reproduce cifar10 #3

Open
YunYunY opened this issue Jun 26, 2022 · 19 comments
Open

reproduce cifar10 #3

YunYunY opened this issue Jun 26, 2022 · 19 comments

Comments

@YunYunY
Copy link

YunYunY commented Jun 26, 2022

Hi, thank you for the code.
Could you please provide your cifar10 code for reproducing? I have followed your supplemental material and run the code for 1000 epochs for pretraining (Moco based). But the result is still lower than the number in the paper. I'm wondering if using SimCLR as you claimed in the paper will reach higher accuracy? Have you compared Moco and Simclr structures on CIFAR? It would be great if you could share that part of the code.
Thank you very much for your time.

@Angelina1996
Copy link

Hi @YunYunan and @LTH14 , please guide or share the link to supplementary material. It would be great if you could share the code for reproducing the results on Cifar and INat datasets on my email: robertangelina92@gmail.com
Cheers

@LTH14
Copy link
Owner

LTH14 commented Jul 26, 2023 via email

@LTH14
Copy link
Owner

LTH14 commented Jul 26, 2023 via email

@Angelina1996
Copy link

Thanks so much, Tianhong, for the reply. Could you exactly guide me about the line where I have to replace moco with supcon framework? I already know about supcon, however, supcon uses a different loss function than yours (TSC). I am a bit confused about this. Any help regarding this will be highly appreciated.
Cheers

@LTH14
Copy link
Owner

LTH14 commented Jul 27, 2023 via email

@Angelina1996
Copy link

Thanks so much, Tianhong, for your kind help. It makes sense to me now. Could you share the TSC loss, I want to reproduce the results on CIFAR.

@LTH14
Copy link
Owner

LTH14 commented Jul 28, 2023 via email

@Angelina1996
Copy link

Tianhong

Thanks, Tianhong, for your help. It is still unclear as the attachments or the links you have provided are for Supcon loss but not for targetted soupcon loss (TSC), moreover I am wondering how the targetted centres are calculated in Cifar dataset.

@LTH14
Copy link
Owner

LTH14 commented Jul 31, 2023 via email

@Angelina1996
Copy link

Thanks, Tianhong

I have applied the setting for the Cifar dataset as you suggested. However, the performance accuracies are far less than the results claimed in the paper. Would you mind sharing the code for reproducing the Cifar Dataset?

@Angelina1996
Copy link

Hi, thank you for the code. Could you please provide your cifar10 code for reproducing? I have followed your supplemental material and run the code for 1000 epochs for pretraining (Moco based). But the result is still lower than the number in the paper. I'm wondering if using SimCLR as you claimed in the paper will reach higher accuracy? Have you compared Moco and Simclr structures on CIFAR? It would be great if you could share that part of the code. Thank you very much for your time.

Hi Yun, I am wondering if you managed to reproduce the Cifar dataset results. I have tried but the results are far less than the claimed results in the paper.
Cheers

@LTH14
Copy link
Owner

LTH14 commented Aug 10, 2023

Hi, it seems there are some discrepancies between email and the Github reply -- I thought the attachment in the email apply will also appear here. I just uploaded the uncleaned main python file and loss file for TSC in the repo here. I'm sorry that I haven't really got time to clean it up. Hope it helps.

@Angelina1996
Copy link

Hi, it seems there are some discrepancies between email and the Github reply -- I thought the attachment in the email apply will also appear here. I just uploaded the uncleaned main python file and loss file for TSC in the repo here. I'm sorry that I haven't really got time to clean it up. Hope it helps.

@Angelina1996
Copy link

Hi, it seems there are some discrepancies between email and the Github reply -- I thought the attachment in the email apply will also appear here. I just uploaded the uncleaned main python file and loss file for TSC in the repo here. I'm sorry that I haven't really got time to clean it up. Hope it helps.

Thanks, Tianhong,
Thanks so much for your help, yes, I already integrated TSC loss into the SupCon model and trained the model using SimCLR, and used LDAM and reweighting in the second stage (classification) but the results were far less than the claimed ones. Would you mind sharing the whole uncleaned version of the code for Cifar dataset?

@Angelina1996
Copy link

Hi, it seems there are some discrepancies between email and the Github reply -- I thought the attachment in the email apply will also appear here. I just uploaded the uncleaned main python file and loss file for TSC in the repo here. I'm sorry that I haven't really got time to clean it up. Hope it helps.
Tianhong, could you please provide the code?

@LTH14
Copy link
Owner

LTH14 commented Aug 11, 2023

Please check the cifar_dirty sub directory. It should contain every necessary file.

@Angelina1996
Copy link

Please check the cifar_dirty sub directory. It should contain every necessary file.

Dear Tianhong,
Thanks for providing the code; however, I believe there are still some files missing i.e.
FileNotFoundError: [Errno 2] No such file or directory: 'optimal_10_10.npy'

Could you please, provide the missing files
Cheers

@LTH14
Copy link
Owner

LTH14 commented Aug 14, 2023

Just uploaded. This file would be also easy to generate, as there is a analytical optimal solution for target positions when the number of classes <= output dimension.

@xuxhuan
Copy link

xuxhuan commented Sep 19, 2023

Please check the cifar_dirty sub directory. It should contain every necessary file.

Dear Tianhong, Thanks for providing the code; however, I believe there are still some files missing i.e. FileNotFoundError: [Errno 2] No such file or directory: 'optimal_10_10.npy'

Could you please, provide the missing files Cheers

Hi, did you finally reproduce the cifar10 code? If so, could you please provide me with a copy of your code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants