Downloads · 30 days
0
Shanmuk4622/hybrid-quantum-classical-LPR
hybrid-quantum-classical-LPR is a machine learning model from Shanmuk4622. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
<div align="center" <img src="images/image1.png" alt="Architecture Pipeline" width="800"/ <br <emComplete architectural pipeline of HybridLPRNet8Q, illustrating the flow from night-time image input through Zero-DCE en…
Downloads · 30 days
0
Access
Public
Updated Jun 20, 2026
Repo size
4.7 GB
Likes
2
Public
Click a slice to open those files.
.pth45.2 MB · 59%
From the Hugging Face model README
Most license plate recognition (LPR) systems fail after dark. This project asks: Can a quantum-enhanced neural network read license plates in night conditions more accurately than a purely classical system?
We run two systems head-to-head:
HybridLPRNet_8Q: Zero-DCE + CNN + 8-Qubit Quantum Circuit + Bi-LSTM + CTCClassicalLPRNet: Zero-DCE + CNN (larger) + Bi-LSTM + CTCThe quantum model achieves competitive performance utilizing a dynamic 256-dimensional Hilbert space, requiring fewer overall parameters compared to the classical baseline.
<div align="center"> <img src="images/image4.png" alt="Training Convergence" width="800"/> <br> <em>Comparative training convergence plots for the Quantum (HybridLPRNet_8Q) and Classical (ClassicalLPRNet) models showing Validation Loss, CER, and Plate Accuracy over 100 epochs.</em> </div>| Metric | ⚡ Quantum Model (HybridLPRNet_8Q) | 🔷 Classical Baseline (ClassicalLPRNet) |
|---|---|---|
| Parameters | ~1.2M | ~1.8M |
| GPU VRAM Usage | ~1.7 GiB | ~1.7 GiB |
| Best Val CER | 1.586% | 1.330% |
| Plate Accuracy | 92.0% | 92.5% |
| Training Platform | Kaggle T4 x2 (cuda:0 constraint) | Kaggle T4 x2 |
The 8-qubit register exhibits emergent specialization during training. Different qubits learn to react to specific visual features, such as numeral density or character boundaries.
<div align="center"> <img src="images/image6.png" alt="Pauli-Z Heatmaps" width="800"/> <br> <em>Pre-circuit and post-circuit qubit activation maps across temporal slices for a representative license plate.</em> </div> <div align="center"> <img src="images/image7.png" alt="Bloch-Sphere Trajectories" width="800"/> <br> <em>Bloch-sphere state trajectories for the 8 qubits, showing specialized rotational behavior.</em> </div>All execution environments and training code are fully available in the notebooks/ directory.
import torch
# Load the Quantum Checkpoint
checkpoint = torch.load("quantum/latest.pth", map_location="cpu")
print(f"Loaded Epoch: {checkpoint.get('epoch', 'N/A')}")
print(f"Validation CER: {checkpoint.get('val_cer', 'N/A')}")
# Assuming HybridLPRNet_8Q is defined in your scope:
# model = HybridLPRNet_8Q()
# model.load_state_dict(checkpoint['model_state_dict'])
# model.eval()
Shanmukesh Bonala — VIT-AP University
Course: CSE4019 — Applications of AI (AoAI)
Semester: Winter 2025–26