Skip to content

IbrokhimN/HangulAI_Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖋️ Korean Hangul Recognition with PyTorch

A modern CNN-based solution for recognizing Korean Hangul characters with state-of-the-art training techniques.

Neural Network Architecture
Training and validation accuracy/loss curves for the Hangul character recognition model

✨ Key Features

Feature Description
Advanced CNN Architecture ResNet-inspired with BatchNorm and Dropout
Optimized Training AdamW optimizer + ReduceLROnPlateau scheduler
Smart Augmentation Rotation, flipping, color jittering
Early Stopping Prevents overfitting automatically
Model Checkpointing Always saves best performing model

🛠️ Technical Specifications

Model Architecture

CNN(
  (features): Sequential(
    Conv2dBatchNorm2dReLUMaxPool2dDropout
    [... repeated blocks ...]
  )
  (classifier): LinearLogSoftmax
)

Training Parameters

image_size: 64x64
batch_size: 64
epochs: 50
optimizer: AdamW (lr=0.001)
loss: CrossEntropyLoss
scheduler: ReduceLROnPlateau 
early_stopping: patience=5

📂 Project Structure

.
├── 📁 dataset/           # Training data (organized by class)
│   ├── 가/               # Example class folder
│   │   ├── img1.jpg
│   │   └── img2.jpg
│   └── 나/
├── 📄 CNN.py             # Main training script
├── 📄 testing.py         # For testing the model
├── 📄 model.pth          # Saved model weights
└── 📄 requirements.txt   # Dependencies

🚀 Quick Start

  1. Setup Environment
pip install -r requirements.txt
  1. Organize Dataset
dataset/
  ├── class_1/
  │   ├── image1.jpg
  │   └── image2.jpg
  └── class_2/
  1. Start Training
python train.py --gpu  # Add --gpu for GPU acceleration

🎯 Performance Metrics

Training Progress (example visualization)

Expected performance:

  • Training Accuracy: ~98%
  • Validation Accuracy: ~95%
  • Inference Speed: 15ms/image (on GPU)

📜 License

MIT License - Free for academic and commercial use


"Perfect for Korean OCR applications, educational tools, and language learning apps" - AI Research Team

About

AI model for recognizing Korean Hangul characters using a CNN in PyTorch. Incorporates data augmentation, batch normalization, dropout, and AdamW optimizer. Supports scalable training, early stopping, and fast inference for OCR and language-learning applications.

Topics

Resources

License

Stars

11 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages