Publish FactoryVision AI model package (public review)
Browse files
README.md
CHANGED
|
@@ -11,46 +11,71 @@ tags:
|
|
| 11 |
- mobilenetv3
|
| 12 |
- education
|
| 13 |
---
|
| 14 |
-
# FactoryVision AI
|
|
|
|
| 15 |
|
| 16 |
-
**
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
**Publishing Organisation:** TechSphere Consultancy Services Private Limited
|
| 22 |
-
**Hugging Face:** https://huggingface.co/TechsphereAI
|
| 23 |
-
**Official Website:** https://techsphereconsultancy.com/
|
| 24 |
|
| 25 |
-
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
Educational transfer-learning binary casting inspection (`def_front`, `ok_front`). **Human review is required.** Not a validated or certified automated quality acceptance system.
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
- Validation-selected best casting architecture in the supplied manifest: `mobilenet_v3_small`
|
| 37 |
-
- Class order
|
|
|
|
|
|
|
| 38 |
|
| 39 |
-
|
| 40 |
-
Real-Life Industrial Dataset of Casting Product by Ravirajsinh Dabhi (https://www.kaggle.com/datasets/ravirajsinh45/real-life-industrial-dataset-of-casting-product). The source README identifies CC BY-NC-ND 4.0 dataset restrictions, including non-commercial and no-derivatives clauses. Rights to redistribute trained model weights remain to be confirmed; do not redistribute source images.
|
| 41 |
|
| 42 |
-
##
|
| 43 |
-
- Accuracy: **0.9944**
|
| 44 |
-
- Macro precision: **0.9932**
|
| 45 |
-
- Macro recall: **0.9948**
|
| 46 |
-
- Macro F1: **0.9940**
|
| 47 |
-
- Test confusion matrix (rows true, columns predicted; class order `def_front`, `ok_front`): `[[450, 3], [1, 261]]`
|
| 48 |
-
- Mean inference latency reported by Kaggle: **0.395 ms** (environment-specific, not a deployed CPU benchmark)
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
-
##
|
| 53 |
-
Use the model-loader and preprocessors from `src/quality.py` of https://github.com/Theivanth/Factory-Vision-AI . The checkpoint is a PyTorch artifact, **not** a drop-in Hugging Face Transformers model. Avoid loading untrusted serialized checkpoints.
|
| 54 |
|
| 55 |
-
## Licensing and distribution
|
| 56 |
The source code's MIT licence is distinct from trained-weight rights. **Keep private until the casting dataset conditions and weight publication rights are clarified.** No public checkpoint licence is asserted.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
- mobilenetv3
|
| 12 |
- education
|
| 13 |
---
|
| 14 |
+
# π FactoryVision AI
|
| 15 |
+
## Casting Inspection Β· MobileNetV3-Small
|
| 16 |
|
| 17 |
+
> **Educational prototype** Β· Transfer learning Β· Binary image classification Β· **Human review required**
|
| 18 |
|
| 19 |
+
| Model | Task | Framework | Weights |
|
| 20 |
+
|---|---|---|---|
|
| 21 |
+
| FactoryVision AI MobileNetV3-Small | Casting defect classification | PyTorch / torchvision | `model.pth` |
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
## π Held-out test results
|
| 24 |
|
| 25 |
+
| Metric | Reported result |
|
| 26 |
+
|---|---:|
|
| 27 |
+
| Accuracy | **0.9944** |
|
| 28 |
+
| Macro precision | **0.9932** |
|
| 29 |
+
| Macro recall | **0.9948** |
|
| 30 |
+
| Macro F1 | **0.9940** |
|
| 31 |
+
| Mean inference latency | **0.395 ms** |
|
| 32 |
|
| 33 |
+
**Confusion matrix** β rows are true labels, columns are predictions; class order: `def_front`, `ok_front`.
|
|
|
|
| 34 |
|
| 35 |
+
```text
|
| 36 |
+
[[450, 3],
|
| 37 |
+
[ 1, 261]]
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Metrics are from the saved training output, not independently reproduced. Latency is environment-specific and is not a deployed CPU benchmark. The test split did not determine architecture selection; the selection metric was validation macro F1.
|
| 41 |
+
|
| 42 |
+
## π― Purpose and limitations
|
| 43 |
+
|
| 44 |
+
Educational transfer-learning binary casting inspection (`def_front`, `ok_front`). **Human review is required.** This is not a validated or certified automated quality acceptance system.
|
| 45 |
+
|
| 46 |
+
## π§ Model details
|
| 47 |
+
|
| 48 |
+
- torchvision MobileNetV3-Small with a pretrained backbone and replaced classification head, fine-tuned on casting images
|
| 49 |
+
- Packaged weights: `model.pth` (archive path `checkpoints/casting_mobilenet_v3_small.pth`)
|
| 50 |
- Validation-selected best casting architecture in the supplied manifest: `mobilenet_v3_small`
|
| 51 |
+
- Class order: `labels.json`; for architecture and preprocessing see `src/quality.py` in the source repository
|
| 52 |
+
|
| 53 |
+
## ποΈ Training data
|
| 54 |
|
| 55 |
+
Real-Life Industrial Dataset of Casting Product by Ravirajsinh Dabhi ([Kaggle dataset](https://www.kaggle.com/datasets/ravirajsinh45/real-life-industrial-dataset-of-casting-product)). The source README identifies CC BY-NC-ND 4.0 dataset restrictions, including non-commercial and no-derivatives clauses. Rights to redistribute trained model weights remain to be confirmed; do not redistribute source images.
|
|
|
|
| 56 |
|
| 57 |
+
## π§ Inference and dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
Use the model-loader and preprocessors from `src/quality.py` in the [original GitHub project](https://github.com/Theivanth/Factory-Vision-AI). The checkpoint is a PyTorch artifact, **not** a drop-in Hugging Face Transformers model. Avoid loading untrusted serialized checkpoints.
|
| 60 |
|
| 61 |
+
## βοΈ Licensing and distribution
|
|
|
|
| 62 |
|
|
|
|
| 63 |
The source code's MIT licence is distinct from trained-weight rights. **Keep private until the casting dataset conditions and weight publication rights are clarified.** No public checkpoint licence is asserted.
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
## π€ Credits and attribution
|
| 68 |
+
|
| 69 |
+
| Role | Contributor |
|
| 70 |
+
|---|---|
|
| 71 |
+
| Original Developer & Model Author | Theivanth Rajamohan |
|
| 72 |
+
| Technical Reviewer, Code Contributor & Publication Support | [Swapin Vidya](https://huggingface.co/Swapinvidya) |
|
| 73 |
+
| Project Contributor | [Rajah Shanmugasundaram](https://huggingface.co/rajahshan) |
|
| 74 |
+
| Publishing Organisation | TechSphere Consultancy Services Private Limited |
|
| 75 |
+
|
| 76 |
+
**Project provenance:** FactoryVision AI was originally developed by Theivanth Rajamohan. [Swapin Vidya](https://huggingface.co/Swapinvidya) contributed technical review, detection-metrics improvements, testing, model publication preparation and documentation. The models are being prepared for publication under TechSphere Consultancy Services Private Limited's Hugging Face namespace, with the original developer's permission.
|
| 77 |
+
|
| 78 |
+
- π€ [TechSphereAI on Hugging Face](https://huggingface.co/TechsphereAI)
|
| 79 |
+
- π [Official website](https://techsphereconsultancy.com/)
|
| 80 |
+
- π» [Original GitHub project](https://github.com/Theivanth/Factory-Vision-AI)
|
| 81 |
+
- π [Swapin Vidya's merged contribution](https://github.com/Theivanth/Factory-Vision-AI/pull/1)
|