COS30082 bird classifier: model files (CUB-200, 2010 version)
This repository contains the six model files of the app https://huggingface.co/spaces/Kidemi04/cos30082-bird-classifier. COS30082 Applied Machine Learning, Swinburne University of Technology, Assignment 1. Student number: 102782287.
| File | Model | Image size | Accuracy | Average accuracy per species |
|---|---|---|---|---|
E1.pt | 1. Small network, trained from the start | 224 x 224 pixels | 41.20% | 40.05% |
E2.pt | 2. ResNet-50 (ImageNet-1k). Only the last layer is trained. | 224 x 224 pixels | 65.03% | 64.29% |
E3.pt | 3. ResNet-50 (ImageNet-1k). All layers are trained. | 224 x 224 pixels | 78.57% | 77.86% |
E4.pt | 4. Same as model 3 | 448 x 448 pixels | 82.31% | 81.66% |
E5b.pt | 5. ConvNeXt-Tiny (timm convnext_tiny.fb_in1k). All layers are trained. | 448 x 448 pixels | 88.79% | 88.47% |
E5.pt | 6. ConvNeXt-Tiny (timm convnext_tiny.fb_in22k). All layers are trained. This is the final model. | 448 x 448 pixels | 91.86% | 91.68% |
We measured all values on the 1,204 test photos, without test-time augmentation.
File contents
Each file is a Python dictionary. It contains these keys: state_dict, arch, img_size, mean, std,
class_names, epoch and val_metrics.
The arch key contains the arguments for build_model in birdcls/models.py of the app.
The files contain only tensors and usual Python types.
Thus, you can open them with torch.load(path, weights_only=True).
Data
The models use the CUB-200 data set, 2010 version (Welinder et al., 2010). We used 4,118 photos for training, 711 photos for validation and 1,204 photos for the test.
Limits
Use these files only for coursework. Some CUB photos can also be in the ImageNet data. Thus, the test accuracy can be slightly too high.