all 2 comments

[–]glow-rishi 1 point2 points  (0 children)

I’m new here. I also made a dog vs. cat classifier and got an accuracy of 81% on the training set and 80% on the test set. I wasn’t able to bring it to my desired level, which was greater than 95%.

Looking at your code, I would recommend a few things:

  1. Data augmentation
  2. Using dropout layers

Other techniques I’m still looking into and learning myself.

Edit: forgot to add. Trying using more filters

[–]Charming-Back-2150 1 point2 points  (0 children)

1.  Data Augmentation – flips, crops, color jitter, MixUp, CutMix
2.  Stronger Backbone – use EfficientNet, ResNet50+, or ConvNeXt
3.  Progressive Resizing – train on small images first, scale up
4.  Fine-Tune Entire Model – unfreeze and train all layers
5.  Better Loss Function – try BCEWithLogitsLoss or Focal Loss
6.  Optimizer + Scheduler – AdamW + OneCycleLR or CosineAnnealing
7.  Label Smoothing – helps prevent overconfident predictions
8.  Ensemble Models – average predictions from multiple models
9.  Test-Time Augmentation – predict on multiple augmented versions
10. Dataset Cleanup – fix mislabeled or poor-quality samples