Spaces:
Running
Running
File size: 3,603 Bytes
e51d06d 646cef1 e51d06d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LookAnything WebGPU</title>
<meta name="description" content="Where is everyone looking? LookAnything gaze following on your own GPU with ONNX Runtime Web, for photos, videos and your webcam.">
<link rel="icon" href="data:,">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<p id="line"><b><a href="https://huggingface.co/JYT4chenxiyuxi/LookAnything" target="_blank" rel="noopener">LookAnything</a></b>
shows where the people in a photo, a video or your webcam are looking. It runs on your own GPU and nothing is uploaded.</p>
<section id="stagebox">
<canvas id="stage" width="640" height="420" aria-label="Photo or video with the predicted gaze"></canvas>
<div id="ask"><span>Drop a photo or video here, paste one,<br>or use the buttons below</span></div>
<div id="tools">
<button id="pick" type="button" title="Pick a photo or video" aria-label="Pick a photo or video">
<svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/></svg>
</button>
<button id="cam" type="button" title="Use the webcam" aria-label="Use the webcam">
<svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><path d="M4 8a2 2 0 0 1 2-2h1.5l1.2-1.6h6.6L16.5 6H18a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/><circle cx="12" cy="12.5" r="3.4" fill="none" stroke="currentColor" stroke-width="1.8"/></svg>
</button>
<button id="stop" type="button" hidden title="Stop" aria-label="Stop the video or webcam">
<svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><rect x="6" y="6" width="12" height="12" rx="1.5" fill="currentColor"/></svg>
</button>
<input id="file" type="file" accept="image/*,video/*" class="sr">
</div>
</section>
<p id="status" role="status" aria-live="polite">Ready. The model (2.3 GB) downloads once, when you first pick something.</p>
<div id="bar"><i></i></div>
<p id="hint" hidden>Drag a box around a head to choose one person. Click the picture to clear the box.</p>
<section id="examples"><div id="thumbs"></div></section>
<details id="more">
<summary>About, storage and credits</summary>
<p>LookAnything (A Foundation Model for Holistic Gaze Following, Apache-2.0) by Jiayu Tang, Yuchen Zhou et al. is a Qwen3-VL-2B model with learned gaze queries.
This page runs its one-pass heads: the gaze point (the arrow tip), the gaze box, the heatmap and the head mask (the arrow start), from a single forward pass, no text generation.
The ONNX conversion (8-bit weights, vision LoRA merged) is in <a id="repo" target="_blank" rel="noopener">the model repo</a>.</p>
<p>Photos and video use the full 451,584-pixel budget of the original demo settings for stills and about 200,000 pixels live, which is roughly twice as fast and moves the point by a few percent of the image.
Needs WebGPU (Chrome or Edge 121+, Android 12+, Safari 26) and about 3 GB of free GPU memory. Expect seconds per frame, not video speed, except on a fast desktop GPU.</p>
<p id="store"></p>
<button id="wipe" type="button">Delete downloaded model</button>
<p id="credits"></p>
</details>
</main>
<script type="module" src="app.js"></script>
</body>
</html>
|