How saqibshouqi/gemstone-classification-evolution works
This repository is a reproducible gemstone-image classification research project comparing three method generations against a shared 68-class benchmark. The principal workflow is to construct the canonical split, train a method to produce shared-format predictions, validate those predictions, and evaluate them into metrics and reports; a duplicate audit supports de-duplicated scoring. The graph includes the documented G1/G2/G3 branches and the shared protocol and scoreboard. Some method and reporting internals were not sampled, so their documented capabilities are shown without speculative implementation links.
Main entry points: splits.py Canonical split · training.py G2 training · preds Prediction files · report.py Scoreboard and reports
Components 19
Benchmark protocol
- Canonical split
src/gemstone_trends/data/splits.py
Classification methods
- G1 methods
src/g1/api.py - G2 training
src/g2/training.py - G2 features
src/g2/features.py - G2 segmentation
src/g2/segmentation.py - G2 classifiers
src/g2/models.py - G3 training
src/g3/train.py - G3 models
src/g3/models.py - CBAM attention
src/g3/cbam.py - ResNet baseline
src/g3/resnet_baseline.py
Evaluation and audit
- Prediction files
results/preds - Prediction validation
src/gemstone_trends/evaluation/io.py - Duplicate audit
src/gemstone_trends/data/duplicates.py - Metric calculations
src/gemstone_trends/evaluation/metrics.py - Scoreboard and reports
src/gemstone_trends/evaluation/report.py
Shared infrastructure
- Experiment config
src/gemstone_trends/config.py - Project paths
src/gemstone_trends/paths.py
Other components
- Researcher
- Image dataset
Connections 24
- Researcher → Canonical split: builds split
README.md - Image dataset → Canonical split: supplies files
README.md - Researcher → G2 training: trains models
README.md - Canonical split → G2 training: defines benchmark
README.md - G2 training → G2 features: loads features
src/g2/training.py - G2 training → G2 classifiers: builds pipeline
src/g2/training.py - G2 features → G2 segmentation: uses masks
src/g2/features.py - G2 training → Prediction files: writes predictions
README.md - Researcher → G3 training: trains models
README.md - Canonical split → G3 training: defines benchmark
README.md - G3 training → G3 models: builds network
src/g3/train.py - G3 models → CBAM attention: uses attention
src/g3/models.py - G3 training → Prediction files: writes predictions
README.md - G1 methods → Prediction files: provides results
README.md - Researcher → Prediction validation: checks predictions
README.md - Prediction files → Prediction validation: validates format
README.md - Researcher → Duplicate audit: audits duplicates
README.md - Canonical split → Duplicate audit: provides split
src/gemstone_trends/data/duplicates.py - Researcher → Scoreboard and reports: evaluates results
README.md - Prediction files → Scoreboard and reports: scores predictions
src/gemstone_trends/evaluation/report.py - Scoreboard and reports → Prediction validation: reads contract
src/gemstone_trends/evaluation/report.py - Scoreboard and reports → Metric calculations: computes metrics
src/gemstone_trends/evaluation/report.py - Duplicate audit → Scoreboard and reports: supports de-dup scoring
README.md - Experiment config → Project paths: resolves config
src/gemstone_trends/config.py