rajahshan commited on
Commit
304e848
·
verified ·
1 Parent(s): 8a8f32a

Publish FactoryVision AI model package (public review)

Browse files
Files changed (2) hide show
  1. README.md +65 -68
  2. hero.svg +37 -0
README.md CHANGED
@@ -11,71 +11,68 @@ tags:
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)
 
11
  - mobilenetv3
12
  - education
13
  ---
14
+ <div align="center">
15
+ <img src="hero.svg" alt="FactoryVision AI MobileNetV3-Small casting inspection" width="100%">
16
+ <p><strong>Educational prototype</strong> &nbsp;|&nbsp; Transfer learning and binary image classification &nbsp;|&nbsp; Human review required</p>
17
+ </div>
18
+
19
+ <h2>Model overview</h2>
20
+ <table>
21
+ <thead><tr><th>Model</th><th>Task</th><th>Framework</th><th>Weights</th></tr></thead>
22
+ <tbody><tr><td>FactoryVision AI MobileNetV3-Small</td><td>Casting defect classification</td><td>PyTorch / torchvision</td><td><code>model.pth</code></td></tr></tbody>
23
+ </table>
24
+
25
+ <h2>Held-out test results</h2>
26
+ <table>
27
+ <thead><tr><th>Metric</th><th>Reported result</th></tr></thead>
28
+ <tbody>
29
+ <tr><td>Accuracy</td><td><strong>0.9944</strong></td></tr>
30
+ <tr><td>Macro precision</td><td><strong>0.9932</strong></td></tr>
31
+ <tr><td>Macro recall</td><td><strong>0.9948</strong></td></tr>
32
+ <tr><td>Macro F1</td><td><strong>0.9940</strong></td></tr>
33
+ <tr><td>Mean inference latency</td><td><strong>0.395 ms</strong></td></tr>
34
+ </tbody>
35
+ </table>
36
+ <p><strong>Confusion matrix</strong> — rows are true labels, columns are predictions; class order: <code>def_front</code>, <code>ok_front</code>.</p>
37
+ <pre><code>[[450, 3],
38
+ [ 1, 261]]</code></pre>
39
+ <p>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.</p>
40
+
41
+ <h2>Purpose and limitations</h2>
42
+ <p>Educational transfer-learning binary casting inspection (<code>def_front</code>, <code>ok_front</code>). <strong>Human review is required.</strong> This is not a validated or certified automated quality acceptance system.</p>
43
+
44
+ <h2>Model details</h2>
45
+ <ul>
46
+ <li>torchvision MobileNetV3-Small with a pretrained backbone and replaced classification head, fine-tuned on casting images</li>
47
+ <li>Packaged weights: <code>model.pth</code> (archive path <code>checkpoints/casting_mobilenet_v3_small.pth</code>)</li>
48
+ <li>Validation-selected best casting architecture in the supplied manifest: <code>mobilenet_v3_small</code></li>
49
+ <li>Class order: <code>labels.json</code>; for architecture and preprocessing see <code>src/quality.py</code> in the source repository</li>
50
+ </ul>
51
+
52
+ <h2>Training data</h2>
53
+ <p>Real-Life Industrial Dataset of Casting Product by Ravirajsinh Dabhi (<a href="https://www.kaggle.com/datasets/ravirajsinh45/real-life-industrial-dataset-of-casting-product">Kaggle dataset</a>). 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.</p>
54
+
55
+ <h2>Inference and dependencies</h2>
56
+ <p>Use the model-loader and preprocessors from <code>src/quality.py</code> in the <a href="https://github.com/Theivanth/Factory-Vision-AI">original GitHub project</a>. The checkpoint is a PyTorch artifact, <strong>not</strong> a drop-in Hugging Face Transformers model. Avoid loading untrusted serialized checkpoints.</p>
57
+
58
+ <h2>Licensing and distribution</h2>
59
+ <p>The source code's MIT licence is distinct from trained-weight rights. <strong>Keep private until the casting dataset conditions and weight publication rights are clarified.</strong> No public checkpoint licence is asserted.</p>
60
+
61
+ <hr>
62
+ <h2>Credits and attribution</h2>
63
+ <table>
64
+ <thead><tr><th>Role</th><th>Contributor</th></tr></thead>
65
+ <tbody>
66
+ <tr><td>Original Developer &amp; Model Author</td><td>Theivanth Rajamohan</td></tr>
67
+ <tr><td>Technical Reviewer, Code Contributor &amp; Publication Support</td><td><a href="https://huggingface.co/Swapinvidya">Swapin Vidya</a></td></tr>
68
+ <tr><td>Project Contributor</td><td><a href="https://huggingface.co/rajahshan">Rajah Shanmugasundaram</a></td></tr>
69
+ <tr><td>Publishing Organisation</td><td>TechSphere Consultancy Services Private Limited</td></tr>
70
+ </tbody>
71
+ </table>
72
+ <p><strong>Project provenance:</strong> FactoryVision AI was originally developed by Theivanth Rajamohan. <a href="https://huggingface.co/Swapinvidya">Swapin Vidya</a> 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.</p>
73
+ <ul>
74
+ <li><a href="https://huggingface.co/TechsphereAI">TechSphereAI on Hugging Face</a></li>
75
+ <li><a href="https://techsphereconsultancy.com/">Official website</a></li>
76
+ <li><a href="https://github.com/Theivanth/Factory-Vision-AI">Original GitHub project</a></li>
77
+ <li><a href="https://github.com/Theivanth/Factory-Vision-AI/pull/1">Swapin Vidya's merged contribution</a></li>
78
+ </ul>
 
 
 
hero.svg ADDED