shreyask commited on
Commit
ea0212a
·
verified ·
1 Parent(s): 22ed4eb

unregister stale service workers on load

Browse files
Files changed (2) hide show
  1. README.md +2 -10
  2. index.html +10 -0
README.md CHANGED
@@ -11,14 +11,6 @@ short_description: Open-vocabulary detection in-browser via WebGPU
11
 
12
  # Falcon Perception — In-Browser Demo
13
 
14
- Interactive demo of [tiiuae/Falcon-Perception](https://huggingface.co/tiiuae/Falcon-Perception), a 0.6B-parameter vision-language model for open-vocabulary detection and segmentation from natural-language queries.
15
 
16
- Everything runs in your browser. The model (~2 GB) is downloaded once, cached, and executed via ONNX Runtime Web. No server, no uploads.
17
-
18
- ## ONNX weights
19
- Model artifacts: [shreyask/falcon-perception-onnx-webgpu](https://huggingface.co/shreyask/falcon-perception-onnx-webgpu).
20
-
21
- The critical file is `unified_v2.onnx`, which adds 2D golden RoPE on image tokens. The original `unified.onnx` dropped it, flipping presence→absence and producing zero detections.
22
-
23
- ## Requirements
24
- Chrome / Edge 113+ with WebGPU.
 
11
 
12
  # Falcon Perception — In-Browser Demo
13
 
14
+ Interactive demo of [tiiuae/Falcon-Perception](https://huggingface.co/tiiuae/Falcon-Perception), a 0.6B-parameter vision-language model for open-vocabulary detection from natural-language queries.
15
 
16
+ ONNX weights: [shreyask/falcon-perception-onnx-webgpu](https://huggingface.co/shreyask/falcon-perception-onnx-webgpu). The key file is `unified_v2.onnx`, which restores 2D golden RoPE on image tokens (missing in v1).
 
 
 
 
 
 
 
 
index.html CHANGED
@@ -5,6 +5,16 @@
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <title>Falcon Perception — In-Browser Vision AI</title>
 
 
 
 
 
 
 
 
 
 
8
  <script type="module" crossorigin src="/assets/index-Cdb0hVoL.js"></script>
9
  <link rel="stylesheet" crossorigin href="/assets/index-Irf6GGXu.css">
10
  </head>
 
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <title>Falcon Perception — In-Browser Vision AI</title>
8
+ <!-- Unregister any stale service worker from prior deploys. An earlier
9
+ version used coi-serviceworker which hijacked all fetches with
10
+ COOP/COEP headers that blocked same-origin example images. -->
11
+ <script>
12
+ if ("serviceWorker" in navigator) {
13
+ navigator.serviceWorker.getRegistrations().then((regs) => {
14
+ for (const r of regs) r.unregister();
15
+ });
16
+ }
17
+ </script>
18
  <script type="module" crossorigin src="/assets/index-Cdb0hVoL.js"></script>
19
  <link rel="stylesheet" crossorigin href="/assets/index-Irf6GGXu.css">
20
  </head>