Update README.md
Browse files
README.md
CHANGED
|
@@ -8,9 +8,17 @@
|
|
| 8 |
body { font-family: Arial, sans-serif; margin: 40px; line-height: 1.6; color: #333; }
|
| 9 |
h1 { color: #2c3e50; }
|
| 10 |
h2 { color: #34495e; }
|
| 11 |
-
code {
|
| 12 |
-
pre {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
ul { margin: 0; padding-left: 20px; }
|
|
|
|
|
|
|
| 14 |
</style>
|
| 15 |
</head>
|
| 16 |
<body>
|
|
@@ -29,15 +37,15 @@
|
|
| 29 |
</ul>
|
| 30 |
|
| 31 |
<h2>π Use Case</h2>
|
| 32 |
-
<p>
|
| 33 |
|
| 34 |
<h2>π§ Model Overview</h2>
|
| 35 |
<ul>
|
| 36 |
<li><strong>Architecture:</strong> CNN (Conv2D, MaxPooling, Dense)</li>
|
| 37 |
<li><strong>Input:</strong> 224x224 RGB</li>
|
| 38 |
-
<li><strong>Output:</strong>
|
| 39 |
-
<li><strong>Accuracy:</strong> ~92%
|
| 40 |
-
<li><strong>
|
| 41 |
</ul>
|
| 42 |
|
| 43 |
<h2>π¦ How to Use</h2>
|
|
@@ -52,13 +60,12 @@ img_array = np.expand_dims(np.array(img) / 255.0, axis=0)
|
|
| 52 |
|
| 53 |
pred = model.predict(img_array)
|
| 54 |
classes = ['cardboard', 'glass', 'metal', 'paper', 'plastic', 'trash', 'biodegradable']
|
| 55 |
-
print("Prediction:", classes[np.argmax(pred)])
|
| 56 |
-
</code></pre>
|
| 57 |
|
| 58 |
<h2>π Files</h2>
|
| 59 |
<ul>
|
| 60 |
-
<li><code>GarbageMLModel_CS549.h5</code> β Trained
|
| 61 |
-
<li><code>label_map.json</code> β
|
| 62 |
</ul>
|
| 63 |
|
| 64 |
<h2>π€ Author</h2>
|
|
@@ -68,3 +75,4 @@ print("Prediction:", classes[np.argmax(pred)])
|
|
| 68 |
|
| 69 |
</body>
|
| 70 |
</html>
|
|
|
|
|
|
| 8 |
body { font-family: Arial, sans-serif; margin: 40px; line-height: 1.6; color: #333; }
|
| 9 |
h1 { color: #2c3e50; }
|
| 10 |
h2 { color: #34495e; }
|
| 11 |
+
code { font-family: Consolas, monospace; }
|
| 12 |
+
pre {
|
| 13 |
+
background: #1e1e1e;
|
| 14 |
+
color: #f8f8f2;
|
| 15 |
+
padding: 16px;
|
| 16 |
+
border-radius: 8px;
|
| 17 |
+
overflow-x: auto;
|
| 18 |
+
}
|
| 19 |
ul { margin: 0; padding-left: 20px; }
|
| 20 |
+
a { color: #2980b9; text-decoration: none; }
|
| 21 |
+
a:hover { text-decoration: underline; }
|
| 22 |
</style>
|
| 23 |
</head>
|
| 24 |
<body>
|
|
|
|
| 37 |
</ul>
|
| 38 |
|
| 39 |
<h2>π Use Case</h2>
|
| 40 |
+
<p>Helps automate waste sorting for better recycling. Great for demos, PoC apps, or smart bin integration.</p>
|
| 41 |
|
| 42 |
<h2>π§ Model Overview</h2>
|
| 43 |
<ul>
|
| 44 |
<li><strong>Architecture:</strong> CNN (Conv2D, MaxPooling, Dense)</li>
|
| 45 |
<li><strong>Input:</strong> 224x224 RGB</li>
|
| 46 |
+
<li><strong>Output:</strong> 7-class probability vector</li>
|
| 47 |
+
<li><strong>Accuracy:</strong> ~92% (validation)</li>
|
| 48 |
+
<li><strong>Explainability:</strong> Supports Grad-CAM</li>
|
| 49 |
</ul>
|
| 50 |
|
| 51 |
<h2>π¦ How to Use</h2>
|
|
|
|
| 60 |
|
| 61 |
pred = model.predict(img_array)
|
| 62 |
classes = ['cardboard', 'glass', 'metal', 'paper', 'plastic', 'trash', 'biodegradable']
|
| 63 |
+
print("Prediction:", classes[np.argmax(pred)])</code></pre>
|
|
|
|
| 64 |
|
| 65 |
<h2>π Files</h2>
|
| 66 |
<ul>
|
| 67 |
+
<li><code>GarbageMLModel_CS549.h5</code> β Trained model</li>
|
| 68 |
+
<li><code>label_map.json</code> β Label mapping</li>
|
| 69 |
</ul>
|
| 70 |
|
| 71 |
<h2>π€ Author</h2>
|
|
|
|
| 75 |
|
| 76 |
</body>
|
| 77 |
</html>
|
| 78 |
+
|