Downloads ยท 30 days
0
N-I-M-I/CNN
CNN is a image classification model from N-I-M-I. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as mit.
An end-to-end deep learning project for classifying CIFAR-10 images using a Recurrent Neural Network (LSTM) built with PyTorch. Includes a modern web interface for real-time image classification.
Downloads ยท 30 days
0
Access
Public
Updated Feb 7, 2026
Repo size
โ
Likes
0
Public
Click a slice to open those files.
.txt620 KB ยท 92%
From the Hugging Face model README
An end-to-end deep learning project for classifying CIFAR-10 images using a Recurrent Neural Network (LSTM) built with PyTorch. Includes a modern web interface for real-time image classification.
The model treats each 32x32 RGB image as a sequence of 32 rows, where each row has 96 features (32 pixels * 3 channels).
Input (Batch, 3, 32, 32)
โ
Reshape (Batch, 32, 96)
โ
Bidirectional LSTM (Hidden: 256, Layers: 2, Dropout: 0.2)
โ
Last Time Step Output
โ
Fully Connected (512) โ ReLU โ Dropout(0.3)
โ
Output (10 classes)
pip install -r requirements.txt
python train.py
This will:
./checkpoints/./plots/python evaluate.py
This will:
python app.py
Then open your browser and navigate to http://localhost:5000
CNN/
โโโ config.py # Configuration and hyperparameters
โโโ data_loader.py # Data loading and preprocessing
โโโ model.py # CNN model architecture
โโโ train.py # Training script
โโโ evaluate.py # Evaluation script
โโโ utils.py # Utility functions
โโโ app.py # Flask web application
โโโ requirements.txt # Python dependencies
โโโ templates/
โ โโโ index.html # Web interface HTML
โโโ static/
โ โโโ style.css # Web interface CSS
โ โโโ script.js # Web interface JavaScript
โโโ checkpoints/ # Model checkpoints (created during training)
โโโ plots/ # Training visualizations (created during training)
โโโ data/ # CIFAR-10 dataset (downloaded automatically)
The model classifies images into 10 categories:
Edit config.py to customize:
With the default configuration, the model typically achieves:
This project is open source and available for educational purposes.
Feel free to fork this project and submit pull requests for improvements!
For questions or feedback, please open an issue on the repository.
Built with โค๏ธ using PyTorch and Flask