AmirEzze/diamond-color-grading
0
๐ Complete Diamond Grading System
An AI-powered system that analyzes diamond images and predicts Shape, Color Grade, and Clarity using deep learning.
๐ฏ Model Performance
๐ What We Classify
๐ท Shape (8 Types)
- Round, Oval, Cushion, Princess
- Emerald, Pear, Heart, Marquise
๐จ Color (4 Grades)
- D-F: Colorless (premium)
- G-J: Near Colorless (excellent value)
- K-M: Faint (good value)
- N-R: Very Light (budget)
โจ Clarity (3 Levels)
- High: FL, IF, VVS1, VVS2 (eye-clean)
- Medium: VS1, VS2, SI1 (excellent value)
- Low: SI2, I1, I2, I3 (visible inclusions)
๐ Usage
Upload a clear, well-lit image of a diamond (preferably top-down view) and get instant predictions for all three attributes!
๐ง Technical Details
- Architecture: EfficientNetB2 (pretrained on ImageNet)
- Framework: TensorFlow/Keras 3.6.0
- Input: 224ร224 RGB images
- Training Data: 48,726 diamond images
- Inference Time: ~300ms for all 3 predictions
๐ Model Files
shape_model.keras(35 MB) - Shape classifiercolor_model.keras(30 MB) - Color classifierclarity_model.keras(35 MB) - Clarity classifier- JSON files with class metadata
โ ๏ธ Limitations
- Best for standard cuts with good lighting
- Not a replacement for professional GIA/AGS grading
- Works best with top-down diamond views
- Color grading most accurate on white backgrounds
๐ License
MIT License - Free for commercial and personal use
Made with โค๏ธ for the gemology community
