Define your own dataloader, please inherit BaseDataLoader
in ./base/base_data_loader.py
(instead of the official version torch.utils.data.DataLoader
), this will save you much time and workload.
Having trouble with how to define ? Read ./data_loader/data_loaders.py
may give you some hint!
For classification, using cls_loss
in ./models/loss.py
and accuracy
in ./models/metric.py
is just fine.
There are a lot of models you can use dircetly, or you can define it youself.
It's recommended to use the classifier
in classifier.py
, it's really convenient to train, resume , and very flexible to change default settings (learning rate cheduler, optimizer, epoch...)