SupContrast icon indicating copy to clipboard operation
SupContrast copied to clipboard

Training on custom dataset

Open himansh1314 opened this issue 3 years ago • 3 comments

I was able to train the encoder model with projection head on a custom dataset, but when training the classification head with softmax activation, there is no option, it only supports training on two datasets. Can you check that, or am I missing something? I think you only need to add the option in argument parser, otherwise the dataloader is already built in other files.

himansh1314 avatar Mar 22 '21 07:03 himansh1314

Originally it only supports CIFAR-10, and CIFAR-100. Some pull request added custom dataset. You could also easily added the custom dataset option to main_linear.py, and a pull request is welcome.

HobbitLong avatar Mar 22 '21 08:03 HobbitLong

@HobbitLong In my Repo https://github.com/RaphaelWag/SupContrast I added the possibility to use custom data sets with all methods. Do you want to pull it?

RaphaelWag avatar May 20 '21 14:05 RaphaelWag

I was able to train the encoder model with projection head on a custom dataset, but when training the classification head with softmax activation, there is no option, it only supports training on two datasets. Can you check that, or am I missing something? I think you only need to add the option in argument parser, otherwise the dataloader is already built in other files.

hi, can you please guide me on how did you train this model on a customized dataset?

noreenanwar avatar Dec 22 '22 00:12 noreenanwar