Update README.md
Browse files
README.md
CHANGED
|
@@ -59,14 +59,66 @@ This model is designed for **Edge AI deployment**, optimized via **ONNX** and **
|
|
| 59 |
|
| 60 |
---
|
| 61 |
|
| 62 |
-
##
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
---
|
| 72 |
|
|
|
|
| 59 |
|
| 60 |
---
|
| 61 |
|
| 62 |
+
## Key Configuration Parameters
|
| 63 |
+
|
| 64 |
+
- **Image Size**: 304×304 pixels
|
| 65 |
+
- **Batch Size**: 32
|
| 66 |
+
- **Learning Rate**: 1e-3
|
| 67 |
+
- **Epochs**: 10
|
| 68 |
+
- **Loss Function**: MSE Loss
|
| 69 |
+
- **Optimizer**: Adam
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
## Model Outputs
|
| 73 |
+
|
| 74 |
+
The training script generates:
|
| 75 |
+
|
| 76 |
+
- `casting_autoencoder.pth` - PyTorch model weights
|
| 77 |
+
- `casting_autoencoder.onnx` - ONNX export for deployment
|
| 78 |
+
- Calibrated anomaly threshold based on defective samples
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
## Anomaly Detection Process
|
| 82 |
+
|
| 83 |
+
1. **Training Phase**: Model learns to reconstruct normal casting images
|
| 84 |
+
2. **Threshold Calibration**: Uses defective samples to determine optimal threshold
|
| 85 |
+
3. **Inference**: Images with reconstruction error > threshold are flagged as defective
|
| 86 |
+
|
| 87 |
+
## Performance
|
| 88 |
+
|
| 89 |
+
- **Final Training Loss**: 0.0005
|
| 90 |
+
- **Suggested Threshold**: 0.0004
|
| 91 |
+
- **Model Type**: Unsupervised anomaly detection
|
| 92 |
+
- **Architecture**: Convolutional Autoencoder
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
## Applications
|
| 96 |
+
|
| 97 |
+
This model is designed for:
|
| 98 |
+
|
| 99 |
+
- Quality control in metal casting manufacturing
|
| 100 |
+
- Real-time defect detection on production lines
|
| 101 |
+
- Automated visual inspection systems
|
| 102 |
+
- Edge deployment in industrial environments
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
## Model Features
|
| 106 |
+
|
| 107 |
+
- **Unsupervised Learning**: Trained only on normal samples
|
| 108 |
+
- **Real-time Capable**: Optimized for edge deployment
|
| 109 |
+
- **ONNX Compatible**: Ready for production deployment
|
| 110 |
+
- **Automatic Thresholding**: Self-calibrating anomaly detection
|
| 111 |
+
- **Industrial Grade**: Tested on real manufacturing data
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
## Technical Details
|
| 115 |
+
|
| 116 |
+
The model uses a symmetric encoder-decoder architecture with:
|
| 117 |
+
|
| 118 |
+
- Stride-2 convolutions for downsampling
|
| 119 |
+
- Transposed convolutions for upsampling
|
| 120 |
+
- ReLU activation in hidden layers
|
| 121 |
+
- Sigmoid output activation for pixel reconstruction.
|
| 122 |
|
| 123 |
---
|
| 124 |
|