rajahshan commited on
Commit
8a8f32a
Β·
verified Β·
1 Parent(s): b47a382

Publish FactoryVision AI model package (public review)

Browse files
Files changed (1) hide show
  1. README.md +55 -30
README.md CHANGED
@@ -11,46 +11,71 @@ tags:
11
  - mobilenetv3
12
  - education
13
  ---
14
- # FactoryVision AI β€” MobileNetV3-Small Casting Inspector
 
15
 
16
- **FactoryVision AI β€” Credits and Attribution**
17
 
18
- **Original Developer & Model Author:** Theivanth Rajamohan
19
- **Technical Review, Code Contributions & Model Publication Support:** [Swapin Vidya](https://huggingface.co/Swapinvidya)
20
- **Project Contributor:** [Rajah Shanmugasundaram](https://huggingface.co/rajahshan)
21
- **Publishing Organisation:** TechSphere Consultancy Services Private Limited
22
- **Hugging Face:** https://huggingface.co/TechsphereAI
23
- **Official Website:** https://techsphereconsultancy.com/
24
 
25
- **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.
26
 
27
- **Original GitHub Repository:** https://github.com/Theivanth/Factory-Vision-AI
28
- **Merged contribution by [Swapin Vidya](https://huggingface.co/Swapinvidya):** https://github.com/Theivanth/Factory-Vision-AI/pull/1
 
 
 
 
 
29
 
30
- ## Purpose and limitations
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
- ## Architecture and files
34
- - torchvision MobileNetV3-Small, pretrained backbone and replaced classification head, fine-tuned on casting images
35
- - Weights: `model.pth` (archive `checkpoints/casting_mobilenet_v3_small.pth`)
 
 
 
 
 
 
 
 
 
 
 
 
36
  - Validation-selected best casting architecture in the supplied manifest: `mobilenet_v3_small`
37
- - Class order in `labels.json`; for architecture and preprocessing see `src/quality.py` in the source repository
 
 
38
 
39
- ## Training dataset
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
- ## Held-out test performance (from supplied Kaggle output)
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
- Metrics are from the saved training output, not independently reproduced. The test split did not determine architecture selection; the selection metric was validation macro F1.
51
 
52
- ## Inference and dependencies
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)