vincenthuynh commited on
Commit
ad7c45c
Β·
verified Β·
1 Parent(s): a02e064

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -10
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 { background: #f4f4f4; padding: 2px 4px; border-radius: 4px; }
12
- pre { background: #f9f9f9; padding: 10px; border-left: 3px solid #ccc; }
 
 
 
 
 
 
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>Automates waste sorting to improve recycling and support eco-friendly efforts. Ideal for educational demos, PoC apps, or smart bins.</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> Probabilities for 7 classes</li>
39
- <li><strong>Accuracy:</strong> ~92% on validation set</li>
40
- <li><strong>Extras:</strong> Grad-CAM for explainability</li>
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 Keras model</li>
61
- <li><code>label_map.json</code> – Class labels</li>
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
+