Publish FactoryVision AI model package (public review)
Browse files
README.md
CHANGED
|
@@ -11,71 +11,68 @@ tags:
|
|
| 11 |
- mobilenetv3
|
| 12 |
- education
|
| 13 |
---
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
>
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 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> | Transfer learning and binary image classification | 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 & Model Author</td><td>Theivanth Rajamohan</td></tr>
|
| 67 |
+
<tr><td>Technical Reviewer, Code Contributor & 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
|
|