This is a simple image classification project using the 102 Category Flower Dataset. The dataset contains 102 flower categories commonly occuring in the United Kingdom. Each class contains between 40 and 258 images. The images have large scale, pose and light variations. In addition, there are categories that have large variations within the category and several very similar categories. The dataset is visualized using isomap with shape and colour features.
The images are restructured into a folder with the following structure:
├── training
│ ├── class_1
│ │ ├── image_1
│ │ ├── image_2
│ │ └── ...
│ ├── class_2
│ │ ├── image_1
│ │ ├── image_2
│ │ └── ...
│ └── ...
├── validation
│ ├── class_1
│ │ ├── image_1
│ │ ├── image_2
│ │ └── ...
│ ├── class_2
│ │ ├── image_1
│ │ ├── image_2
│ │ └── ...
│ └── ...
└── testing
├── class_1
│ ├── image_1
│ ├── image_2
│ └── ...
├── class_2
│ ├── image_1
│ ├── image_2
│ └── ...
└── ...
The images are augmented using the following transformations:
- RandomHorizontalFlip
- RandomAffine
- RandomCrop
- Resize
The pre-trained model is convformer_s18. The model is fine tuned for 100 epochs with a batch size of 32. The the Adam optimizer is used with a learning rate of 0.0001.
The model achieves an accuracy of 93% on the test set.