summaryrefslogtreecommitdiff
path: root/train.py
AgeCommit message (Collapse)AuthorFilesLines
2026-04-20improve training for class-imbalanced DR classificationVineet Kumar1-13/+16
- WeightedRandomSampler for balanced class sampling during training - FocalLoss (gamma=2) for hard-example mining, no alpha (sampler handles balance) - Stronger augmentation: RandomResizedCrop, ColorJitter, GaussianBlur, 30deg rotation - Discriminative LR: backbone at 0.1x, head at 1x - 3-epoch linear warmup + cosine decay scheduler - Early stopping on macro F1 instead of weighted F1 - Updated defaults: batch_size=64, epochs=50, patience=10 - Comparison chart now shows both macro and weighted F1 - DataParallel checkpoint handling (strip module. prefix) - Enable cudnn.benchmark for training speed
2026-04-18initial commitVineet Kumar1-0/+136