Spaces:
Running
Running
File size: 1,982 Bytes
aa66544 |
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Transformers.js | Real-time depth estimation</title>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<h1>
Real-time depth estimation w/
<a
href="https://huggingface.co/onnx-community/depth-anything-v2-small"
target="_blank"
>Depth Anything V2</a
>
</h1>
<h3>
Runs locally in your browser, powered by
<a href="https://github.com/huggingface/transformers.js" target="_blank"
>🤗 Transformers.js</a
> x <label id="device"></label>
</h3>
<div id="container">
<video id="video" autoplay muted playsinline></video>
<canvas id="output-canvas"></canvas>
</div>
<div id="controls">
<div
title="Read frames from your webcam and process them at a lower size (lower = faster)"
>
<label>Stream scale</label>
(<label id="scale-value">0.4</label>)
<br />
<input
id="scale"
type="range"
min="0.1"
max="1"
step="0.1"
value="0.4"
disabled
/>
</div>
<div id="size-container" title="The width of the image (lower = faster)">
<label>Image size</label>
(<label id="size-value">504</label>px)
<br />
<input
id="size"
type="range"
min="140"
max="840"
step="14"
value="504"
disabled
/>
</div>
</div>
<label id="status">Loading model...</label>
<div>
<a href="?device=webnn-gpu">WebNN GPU</a> · <a href="?device=webnn-npu">WebNN NPU</a>
</div>
<div id="versions">
@huggingface/transformers: 3.7.3 · onnxruntime-web: 1.22.0-dev.20250409-89f8206ba4
</div>
<script type="module" src="/main.js"></script>
</body>
</html>
|