Closed Yihang-Li closed 3 years ago
In the latest version, redundant parameters have been removed.
Format is the dataset
in MixupDataset
should be like this:
In Dataset
class, __getitem__
should return img
tensor (after to_tensor
, shape c,h,w) and label
tensor/array/list (after one-hot or soft label, shape (num_classes,)).
An example:
__getitem__
return (img, label)
img
shape (3,224,224)
label
is a list [0,1,0,0,0] or after label smoothing [0.02, 0.92, 0.02, 0.02, 0.02]
Finally, thanks for asking. This repo is working in progress. I will add more documents and examples later.
In the latest version, redundant parameters have been removed.
Format is the
dataset
inMixupDataset
should be like this:In
Dataset
class,__getitem__
should returnimg
tensor (afterto_tensor
, shape c,h,w) andlabel
tensor/array/list (after one-hot or soft label, shape (num_classes,)).An example:
__getitem__
return (img, label)img
shape (3,224,224)label
is a list [0,1,0,0,0] or after label smoothing [0.02, 0.92, 0.02, 0.02, 0.02]Finally, thanks for asking. This repo is working in progress. I will add more documents and examples later.
Thanks for your guidance ~
By the way, I was wondering that is it convenient for you to provide a full deep learning script that use this repo ? I really want to learn from it. Thank you again and have a good day~
This is a example using this repo: https://github.com/seefun/TorchUtils/blob/master/examples/kaggle_leaves_classification.ipynb It's a training jupyter notebook for this dataset: https://www.kaggle.com/c/classify-leaves Using this training pipeline, usually, we are able to get great baseline score in Kaggle. Hope this can help you. GLHF~
This is a example using this repo: https://github.com/seefun/TorchUtils/blob/master/examples/kaggle_leaves_classification.ipynb It's a training jupyter notebook for this dataset: https://www.kaggle.com/c/classify-leaves Using this training pipeline, usually, we are able to get great baseline score in Kaggle. Hope this can help you. GLHF~
Thanks soooo much~
In the Data Augmentation example, pls tell that what exactly format is the
dataset
, as the first parameter oftu.dataset.MixupDataset
Reminder:
image_size=IMAGE_SIZE
in tu.dataset.randAugment is redundant.