This project focuses on classifying natural scenes and landscapes using a ResNext101 pre-trained model from the timm library. The goal is to achieve high accuracy in identifying different scene categories based on visual features.
You can also deploy this model using Streamlit. The demo can be accessed using the following link: Intel Image Classification Demo
- Task: Multi-class scene classification
- Dataset: Images belonging to 6 scene categories (buildings, forest, glacier, mountain, sea, street)
- Model: ResNext101 (pre-trained model from timm library)
- Framework: PyTorch
- Python: 3.10+
- Evaluation Metrics: Accuracy, Loss
Below are some random samples from the dataset with corresponding labels:
Here are the learning curves showing Accuracy and Loss over epochs:
-
Clone the repository:
git clone https://github.com/akhra92/Intel-Image-Classification.git cd Intel-Image-Classification -
Download the dataset from Kaggle and extract it into the
dataset/Intel/directory. -
Install dependencies:
pip install -r requirements.txt -
Train and test the model:
python main.py -
Deploy locally using Streamlit:
streamlit run demo.pyThe app expects the trained model at
saved_model/best_model_final.pth. After training, rename or copysaved_model/best_model.pthtobest_model_final.pthin the same folder.

