lgonda1998 commited on
Commit
245e374
·
verified ·
1 Parent(s): 0bddd68

Add blur robustness experiment and comparison tracking

Browse files
Files changed (1) hide show
  1. index.html +3 -18
index.html CHANGED
@@ -47,28 +47,13 @@
47
  </div>
48
  </section>
49
 
50
- <section class="explain card"><p class="section-kicker">Blur experiment</p><h2 class="explain-title">Measure how image degradation changes model confidence.</h2><p class="explain-copy">Keep the input image and model fixed. Run at blur 0px for the baseline, then increase blur and run again. Each successful run remains in the comparison log, allowing the top label and score to be compared across blur levels.</p><div class="flow" aria-label="Blur experiment flow"><span>Same image</span><span class="arrow">→</span><span>Change blur</span><span class="arrow">→</span><span>Compare scores</span></div></section>
51
 
52
- <section class="history card" aria-labelledby="history-title"><div class="history-head"><div><p class="section-kicker">Comparison log</p><h2 id="history-title" class="explain-title">Keep one image fixed and compare model decisions.</h2><p class="history-copy">Each successful run is added below. Record the selected blur value when discussing the results.</p></div><button id="clear-history" class="secondary-button" type="button" disabled>Clear log</button></div><div class="table-wrap"><table><thead><tr><th>Run</th><th>Image</th><th>Model</th><th>Top result</th><th>Score</th><th>Time</th></tr></thead><tbody id="history-body"><tr class="empty-row"><td colspan="6">Run the same image at 0px and 50px blur to start a comparison.</td></tr></tbody></table></div></section>
53
 
54
  <footer>Hosted as a Hugging Face Static Space · Powered by Transformers.js</footer>
55
  </main>
56
 
57
- <script>
58
- const blurRange = document.getElementById('blur-range');
59
- const blurValue = document.getElementById('blur-value');
60
- const previewImage = document.getElementById('preview-image');
61
-
62
- function updateBlurPreview() {
63
- const blur = Number(blurRange.value);
64
- blurValue.value = `${blur}px`;
65
- blurValue.textContent = `${blur}px`;
66
- previewImage.style.filter = `blur(${blur}px)`;
67
- }
68
-
69
- blurRange.addEventListener('input', updateBlurPreview);
70
- updateBlurPreview();
71
- </script>
72
- <script type="module" src="./app.js?v=9"></script>
73
  </body>
74
  </html>
 
47
  </div>
48
  </section>
49
 
50
+ <section class="explain card"><p class="section-kicker">Blur experiment</p><h2 class="explain-title">Measure how image degradation changes model confidence.</h2><p class="explain-copy">Keep the input image and model fixed. Run at blur 0px for the baseline, then increase blur and run again. Each successful run remains in the comparison log, allowing the top label and score to be compared across blur levels.</p><p class="explain-copy"><strong>Why blur?</strong> Image classifiers and object detectors rely on edges, textures, shapes, and fine visual details. Blur progressively removes high-frequency detail while preserving the overall scene, making it a controlled way to test model robustness. Comparing 0px with stronger blur shows whether confidence decreases gradually, whether the top label changes, and which models remain reliable when image quality is reduced.</p><div class="flow" aria-label="Blur experiment flow"><span>Same image</span><span class="arrow">→</span><span>Change blur</span><span class="arrow">→</span><span>Compare scores</span></div></section>
51
 
52
+ <section class="history card" aria-labelledby="history-title"><div class="history-head"><div><p class="section-kicker">Comparison log</p><h2 id="history-title" class="explain-title">Keep one image fixed and compare model decisions.</h2><p class="history-copy">Each successful run is added below. Record the selected blur value when discussing the results.</p></div><button id="clear-history" class="secondary-button" type="button" disabled>Clear log</button></div><div class="table-wrap"><table><thead><tr><th>Run</th><th>Image</th><th>Model</th><th>Blur</th><th>Top result</th><th>Score</th><th>Time</th></tr></thead><tbody id="history-body"><tr class="empty-row"><td colspan="7">Run the same image at 0px and 50px blur to start a comparison.</td></tr></tbody></table></div></section>
53
 
54
  <footer>Hosted as a Hugging Face Static Space · Powered by Transformers.js</footer>
55
  </main>
56
 
57
+ <script type="module" src="./app.js?v=10"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  </body>
59
  </html>