Delete index.html
Browse files- index.html +0 -407
index.html
DELETED
|
@@ -1,407 +0,0 @@
|
|
| 1 |
-
<html>
|
| 2 |
-
<head>
|
| 3 |
-
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
|
| 4 |
-
<title>Candle Segment Anything Model (SAM) Rust/WASM</title>
|
| 5 |
-
</head>
|
| 6 |
-
<body></body>
|
| 7 |
-
</html>
|
| 8 |
-
|
| 9 |
-
<!DOCTYPE html>
|
| 10 |
-
<html>
|
| 11 |
-
<head>
|
| 12 |
-
<meta charset="UTF-8" />
|
| 13 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 14 |
-
<style>
|
| 15 |
-
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@200;300;400&family=Source+Sans+3:wght@100;200;300;400;500;600;700;800;900&display=swap");
|
| 16 |
-
html,
|
| 17 |
-
body {
|
| 18 |
-
font-family: "Source Sans 3", sans-serif;
|
| 19 |
-
}
|
| 20 |
-
</style>
|
| 21 |
-
<script src="https://cdn.tailwindcss.com"></script>
|
| 22 |
-
<script type="module">
|
| 23 |
-
// base url for audio examples
|
| 24 |
-
const MODEL_BASEURL =
|
| 25 |
-
"https://huggingface.co/lmz/candle-sam/resolve/main/";
|
| 26 |
-
|
| 27 |
-
// models base url
|
| 28 |
-
const MODELS = {
|
| 29 |
-
sam_mobile_tiny: {
|
| 30 |
-
url: "mobile_sam-tiny-vitt.safetensors",
|
| 31 |
-
},
|
| 32 |
-
sam_base: {
|
| 33 |
-
url: "sam_vit_b_01ec64.safetensors",
|
| 34 |
-
},
|
| 35 |
-
};
|
| 36 |
-
const samWorker = new Worker("./samWorker.js", { type: "module" });
|
| 37 |
-
|
| 38 |
-
async function segmentPoints(
|
| 39 |
-
modelURL, // URL to the weights file
|
| 40 |
-
modelID, // model ID
|
| 41 |
-
imageURL, // URL to the audio file
|
| 42 |
-
points // {x, y} points to prompt image
|
| 43 |
-
) {
|
| 44 |
-
return new Promise((resolve, reject) => {
|
| 45 |
-
function messageHandler(event) {
|
| 46 |
-
console.log(event.data);
|
| 47 |
-
if ("status" in event.data) {
|
| 48 |
-
updateStatus(event.data);
|
| 49 |
-
}
|
| 50 |
-
if ("error" in event.data) {
|
| 51 |
-
samWorker.removeEventListener("message", messageHandler);
|
| 52 |
-
reject(new Error(event.data.error));
|
| 53 |
-
}
|
| 54 |
-
if (event.data.status === "complete-embedding") {
|
| 55 |
-
samWorker.removeEventListener("message", messageHandler);
|
| 56 |
-
resolve();
|
| 57 |
-
}
|
| 58 |
-
if (event.data.status === "complete") {
|
| 59 |
-
samWorker.removeEventListener("message", messageHandler);
|
| 60 |
-
resolve(event.data.output);
|
| 61 |
-
}
|
| 62 |
-
}
|
| 63 |
-
samWorker.addEventListener("message", messageHandler);
|
| 64 |
-
samWorker.postMessage({
|
| 65 |
-
modelURL,
|
| 66 |
-
modelID,
|
| 67 |
-
imageURL,
|
| 68 |
-
points,
|
| 69 |
-
});
|
| 70 |
-
});
|
| 71 |
-
}
|
| 72 |
-
function updateStatus(statusMessage) {
|
| 73 |
-
statusOutput.innerText = event.data.message;
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
const clearBtn = document.querySelector("#clear-btn");
|
| 77 |
-
const canvas = document.querySelector("#canvas");
|
| 78 |
-
const mask = document.querySelector("#mask");
|
| 79 |
-
const ctxCanvas = canvas.getContext("2d");
|
| 80 |
-
const ctxMask = mask.getContext("2d");
|
| 81 |
-
const fileUpload = document.querySelector("#file-upload");
|
| 82 |
-
const dropArea = document.querySelector("#drop-area");
|
| 83 |
-
const dropButtons = document.querySelector("#drop-buttons");
|
| 84 |
-
const imagesExamples = document.querySelector("#image-select");
|
| 85 |
-
const modelSelection = document.querySelector("#model");
|
| 86 |
-
const statusOutput = document.querySelector("#output-status");
|
| 87 |
-
|
| 88 |
-
//add event listener to file input
|
| 89 |
-
fileUpload.addEventListener("change", (e) => {
|
| 90 |
-
const target = e.target;
|
| 91 |
-
if (target.files.length > 0) {
|
| 92 |
-
const href = URL.createObjectURL(target.files[0]);
|
| 93 |
-
cleanImageCanvas();
|
| 94 |
-
drawImageCanvas(href);
|
| 95 |
-
setImageEmbeddings(href);
|
| 96 |
-
}
|
| 97 |
-
});
|
| 98 |
-
// add event listener to drop-area
|
| 99 |
-
dropArea.addEventListener("dragenter", (e) => {
|
| 100 |
-
e.preventDefault();
|
| 101 |
-
dropArea.classList.add("border-blue-700");
|
| 102 |
-
});
|
| 103 |
-
dropArea.addEventListener("dragleave", (e) => {
|
| 104 |
-
e.preventDefault();
|
| 105 |
-
dropArea.classList.remove("border-blue-700");
|
| 106 |
-
});
|
| 107 |
-
dropArea.addEventListener("dragover", (e) => {
|
| 108 |
-
e.preventDefault();
|
| 109 |
-
});
|
| 110 |
-
dropArea.addEventListener("drop", (e) => {
|
| 111 |
-
e.preventDefault();
|
| 112 |
-
dropArea.classList.remove("border-blue-700");
|
| 113 |
-
const url = e.dataTransfer.getData("text/uri-list");
|
| 114 |
-
const files = e.dataTransfer.files;
|
| 115 |
-
|
| 116 |
-
if (files.length > 0) {
|
| 117 |
-
const href = URL.createObjectURL(files[0]);
|
| 118 |
-
cleanImageCanvas();
|
| 119 |
-
drawImageCanvas(href);
|
| 120 |
-
setImageEmbeddings(href);
|
| 121 |
-
} else if (url) {
|
| 122 |
-
cleanImageCanvas();
|
| 123 |
-
drawImageCanvas(url);
|
| 124 |
-
setImageEmbeddings(url);
|
| 125 |
-
}
|
| 126 |
-
});
|
| 127 |
-
|
| 128 |
-
let hasImage = false;
|
| 129 |
-
let isSegmenting = false;
|
| 130 |
-
let isEmbedding = false;
|
| 131 |
-
let currentImageURL = "";
|
| 132 |
-
//add event listener to image examples
|
| 133 |
-
imagesExamples.addEventListener("click", (e) => {
|
| 134 |
-
if (isEmbedding || isSegmenting) {
|
| 135 |
-
return;
|
| 136 |
-
}
|
| 137 |
-
const target = e.target;
|
| 138 |
-
if (target.nodeName === "IMG") {
|
| 139 |
-
const href = target.src;
|
| 140 |
-
cleanImageCanvas();
|
| 141 |
-
drawImageCanvas(href);
|
| 142 |
-
setImageEmbeddings(href);
|
| 143 |
-
}
|
| 144 |
-
});
|
| 145 |
-
//add event listener to clear button
|
| 146 |
-
clearBtn.addEventListener("click", () => {
|
| 147 |
-
cleanImageCanvas();
|
| 148 |
-
});
|
| 149 |
-
//add click event to canvas
|
| 150 |
-
canvas.addEventListener("click", async (event) => {
|
| 151 |
-
if (!hasImage || isEmbedding || isSegmenting) {
|
| 152 |
-
return;
|
| 153 |
-
}
|
| 154 |
-
const targetBox = event.target.getBoundingClientRect();
|
| 155 |
-
const x = (event.clientX - targetBox.left) / targetBox.width;
|
| 156 |
-
const y = (event.clientY - targetBox.top) / targetBox.height;
|
| 157 |
-
isSegmenting = true;
|
| 158 |
-
const { maskURL } = await getSegmentationMask({ x, y });
|
| 159 |
-
isSegmenting = false;
|
| 160 |
-
drawMask(maskURL);
|
| 161 |
-
});
|
| 162 |
-
|
| 163 |
-
async function getSegmentationMask(points) {
|
| 164 |
-
const modelID = modelSelection.value;
|
| 165 |
-
const modelURL = MODEL_BASEURL + MODELS[modelID].url;
|
| 166 |
-
const imageURL = currentImageURL;
|
| 167 |
-
const { maskURL } = await segmentPoints(
|
| 168 |
-
modelURL,
|
| 169 |
-
modelID,
|
| 170 |
-
imageURL,
|
| 171 |
-
points
|
| 172 |
-
);
|
| 173 |
-
return { maskURL };
|
| 174 |
-
}
|
| 175 |
-
async function setImageEmbeddings(imageURL) {
|
| 176 |
-
if (isEmbedding) {
|
| 177 |
-
return;
|
| 178 |
-
}
|
| 179 |
-
canvas.classList.remove("cursor-pointer");
|
| 180 |
-
canvas.classList.add("cursor-wait");
|
| 181 |
-
clearBtn.disabled = true;
|
| 182 |
-
const modelID = modelSelection.value;
|
| 183 |
-
const modelURL = MODEL_BASEURL + MODELS[modelID].url;
|
| 184 |
-
isEmbedding = true;
|
| 185 |
-
await segmentPoints(modelURL, modelID, imageURL);
|
| 186 |
-
canvas.classList.remove("cursor-wait");
|
| 187 |
-
canvas.classList.add("cursor-pointer");
|
| 188 |
-
clearBtn.disabled = false;
|
| 189 |
-
isEmbedding = false;
|
| 190 |
-
currentImageURL = imageURL;
|
| 191 |
-
}
|
| 192 |
-
|
| 193 |
-
function cleanImageCanvas() {
|
| 194 |
-
ctxCanvas.clearRect(0, 0, canvas.width, canvas.height);
|
| 195 |
-
ctxMask.clearRect(0, 0, canvas.width, canvas.height);
|
| 196 |
-
hasImage = false;
|
| 197 |
-
isEmbedding = false;
|
| 198 |
-
isSegmenting = false;
|
| 199 |
-
currentImageURL = "";
|
| 200 |
-
clearBtn.classList.add("invisible");
|
| 201 |
-
canvas.parentElement.style.height = "auto";
|
| 202 |
-
dropButtons.classList.remove("invisible");
|
| 203 |
-
}
|
| 204 |
-
function drawMask(maskURL) {
|
| 205 |
-
if (!maskURL) {
|
| 206 |
-
throw new Error("No mask URL provided");
|
| 207 |
-
}
|
| 208 |
-
|
| 209 |
-
const img = new Image();
|
| 210 |
-
img.crossOrigin = "anonymous";
|
| 211 |
-
|
| 212 |
-
img.onload = () => {
|
| 213 |
-
mask.width = canvas.width;
|
| 214 |
-
mask.height = canvas.height;
|
| 215 |
-
ctxMask.drawImage(canvas, 0, 0);
|
| 216 |
-
ctxMask.globalCompositeOperation = "source-atop";
|
| 217 |
-
ctxMask.fillStyle = "rgba(255, 0, 0, 0.6)";
|
| 218 |
-
ctxMask.fillRect(0, 0, canvas.width, canvas.height);
|
| 219 |
-
ctxMask.globalCompositeOperation = "destination-in";
|
| 220 |
-
ctxMask.drawImage(img, 0, 0);
|
| 221 |
-
};
|
| 222 |
-
img.src = maskURL;
|
| 223 |
-
}
|
| 224 |
-
function drawImageCanvas(imgURL) {
|
| 225 |
-
if (!imgURL) {
|
| 226 |
-
throw new Error("No image URL provided");
|
| 227 |
-
}
|
| 228 |
-
|
| 229 |
-
ctxCanvas.clearRect(0, 0, canvas.width, canvas.height);
|
| 230 |
-
ctxCanvas.clearRect(0, 0, canvas.width, canvas.height);
|
| 231 |
-
|
| 232 |
-
const img = new Image();
|
| 233 |
-
img.crossOrigin = "anonymous";
|
| 234 |
-
|
| 235 |
-
img.onload = () => {
|
| 236 |
-
canvas.width = img.width;
|
| 237 |
-
canvas.height = img.height;
|
| 238 |
-
ctxCanvas.drawImage(img, 0, 0);
|
| 239 |
-
hasImage = true;
|
| 240 |
-
canvas.parentElement.style.height = canvas.offsetHeight + "px";
|
| 241 |
-
clearBtn.classList.remove("invisible");
|
| 242 |
-
dropButtons.classList.add("invisible");
|
| 243 |
-
};
|
| 244 |
-
img.src = imgURL;
|
| 245 |
-
}
|
| 246 |
-
|
| 247 |
-
const observer = new ResizeObserver((entries) => {
|
| 248 |
-
for (let entry of entries) {
|
| 249 |
-
if (entry.target === canvas) {
|
| 250 |
-
canvas.parentElement.style.height = canvas.offsetHeight + "px";
|
| 251 |
-
}
|
| 252 |
-
}
|
| 253 |
-
});
|
| 254 |
-
observer.observe(canvas);
|
| 255 |
-
</script>
|
| 256 |
-
</head>
|
| 257 |
-
<body class="container max-w-4xl mx-auto p-4">
|
| 258 |
-
<main class="grid grid-cols-1 gap-8 relative">
|
| 259 |
-
<span class="absolute text-5xl -ml-[1em]">🕯️</span>
|
| 260 |
-
<div>
|
| 261 |
-
<h1 class="text-5xl font-bold">Candle Segment Anything</h1>
|
| 262 |
-
<h2 class="text-2xl font-bold">Rust/WASM Demo</h2>
|
| 263 |
-
<p class="max-w-lg">
|
| 264 |
-
Zero-shot image segmentation with
|
| 265 |
-
<a
|
| 266 |
-
href="https://segment-anything.com"
|
| 267 |
-
class="underline hover:text-blue-500 hover:no-underline"
|
| 268 |
-
target="_blank"
|
| 269 |
-
>Segment Anything Model (SAM)</a
|
| 270 |
-
>
|
| 271 |
-
and
|
| 272 |
-
<a
|
| 273 |
-
href="https://github.com/ChaoningZhang/MobileSAM"
|
| 274 |
-
class="underline hover:text-blue-500 hover:no-underline"
|
| 275 |
-
target="_blank"
|
| 276 |
-
>MobileSAM </a
|
| 277 |
-
>. It runs in the browser with a WASM runtime built with
|
| 278 |
-
<a
|
| 279 |
-
href="https://github.com/huggingface/candle/"
|
| 280 |
-
target="_blank"
|
| 281 |
-
class="underline hover:text-blue-500 hover:no-underline"
|
| 282 |
-
>Candle
|
| 283 |
-
</a>
|
| 284 |
-
</p>
|
| 285 |
-
</div>
|
| 286 |
-
<div>
|
| 287 |
-
<label for="model" class="font-medium">Models Options: </label>
|
| 288 |
-
<select
|
| 289 |
-
id="model"
|
| 290 |
-
class="border-2 border-gray-500 rounded-md font-light"
|
| 291 |
-
>
|
| 292 |
-
<option value="sam_mobile_tiny" selected>
|
| 293 |
-
Mobile SAM Tiny (40.6 MB)
|
| 294 |
-
</option>
|
| 295 |
-
<option value="sam_base">SAM Base (375 MB)</option>
|
| 296 |
-
</select>
|
| 297 |
-
</div>
|
| 298 |
-
<div>
|
| 299 |
-
<p class="text-xs italic max-w-lg">
|
| 300 |
-
<b>Note:</b>
|
| 301 |
-
The model's first run may take a few seconds as it loads and caches
|
| 302 |
-
the model in the browser, and then creates the image embeddings. Any
|
| 303 |
-
subsequent clicks on points will be significantly faster.
|
| 304 |
-
</p>
|
| 305 |
-
</div>
|
| 306 |
-
<div class="relative max-w-lg">
|
| 307 |
-
<div class="flex justify-between items-center">
|
| 308 |
-
<div class="px-2 rounded-md inline text-xs">
|
| 309 |
-
<span id="output-status" class="m-auto font-light"></span>
|
| 310 |
-
</div>
|
| 311 |
-
<button
|
| 312 |
-
id="clear-btn"
|
| 313 |
-
class="text-xs bg-white rounded-md disabled:opacity-50 flex gap-1 items-center invisible"
|
| 314 |
-
>
|
| 315 |
-
<svg
|
| 316 |
-
class=""
|
| 317 |
-
xmlns="http://www.w3.org/2000/svg"
|
| 318 |
-
viewBox="0 0 13 12"
|
| 319 |
-
height="1em"
|
| 320 |
-
>
|
| 321 |
-
<path
|
| 322 |
-
d="M1.6.7 12 11.1M12 .7 1.6 11.1"
|
| 323 |
-
stroke="#2E3036"
|
| 324 |
-
stroke-width="2"
|
| 325 |
-
/>
|
| 326 |
-
</svg>
|
| 327 |
-
Clear image
|
| 328 |
-
</button>
|
| 329 |
-
</div>
|
| 330 |
-
<div
|
| 331 |
-
id="drop-area"
|
| 332 |
-
class="flex flex-col items-center justify-center border-2 border-gray-300 border-dashed rounded-xl relative p-20 w-full overflow-hidden"
|
| 333 |
-
>
|
| 334 |
-
<div
|
| 335 |
-
id="drop-buttons"
|
| 336 |
-
class="flex flex-col items-center justify-center space-y-1 text-center relative z-10"
|
| 337 |
-
>
|
| 338 |
-
<svg
|
| 339 |
-
width="25"
|
| 340 |
-
height="25"
|
| 341 |
-
viewBox="0 0 25 25"
|
| 342 |
-
fill="none"
|
| 343 |
-
xmlns="http://www.w3.org/2000/svg"
|
| 344 |
-
>
|
| 345 |
-
<path
|
| 346 |
-
d="M3.5 24.3a3 3 0 0 1-1.9-.8c-.5-.5-.8-1.2-.8-1.9V2.9c0-.7.3-1.3.8-1.9.6-.5 1.2-.7 2-.7h18.6c.7 0 1.3.2 1.9.7.5.6.7 1.2.7 2v18.6c0 .7-.2 1.4-.7 1.9a3 3 0 0 1-2 .8H3.6Zm0-2.7h18.7V2.9H3.5v18.7Zm2.7-2.7h13.3c.3 0 .5 0 .6-.3v-.7l-3.7-5a.6.6 0 0 0-.6-.2c-.2 0-.4 0-.5.3l-3.5 4.6-2.4-3.3a.6.6 0 0 0-.6-.3c-.2 0-.4.1-.5.3l-2.7 3.6c-.1.2-.2.4 0 .7.1.2.3.3.6.3Z"
|
| 347 |
-
fill="#000"
|
| 348 |
-
/>
|
| 349 |
-
</svg>
|
| 350 |
-
<div class="flex text-sm text-gray-600">
|
| 351 |
-
<label
|
| 352 |
-
for="file-upload"
|
| 353 |
-
class="relative cursor-pointer bg-white rounded-md font-medium text-blue-950 hover:text-blue-700"
|
| 354 |
-
>
|
| 355 |
-
<span>Drag and drop your image here</span>
|
| 356 |
-
<span class="block text-xs">or</span>
|
| 357 |
-
<span class="block text-xs">Click to upload</span>
|
| 358 |
-
</label>
|
| 359 |
-
</div>
|
| 360 |
-
<input
|
| 361 |
-
id="file-upload"
|
| 362 |
-
name="file-upload"
|
| 363 |
-
type="file"
|
| 364 |
-
class="sr-only"
|
| 365 |
-
/>
|
| 366 |
-
</div>
|
| 367 |
-
<canvas id="canvas" class="absolute w-full"></canvas>
|
| 368 |
-
<canvas
|
| 369 |
-
id="mask"
|
| 370 |
-
class="pointer-events-none absolute w-full"
|
| 371 |
-
></canvas>
|
| 372 |
-
</div>
|
| 373 |
-
<div class="text-right py-2">
|
| 374 |
-
<button
|
| 375 |
-
id="share-btn"
|
| 376 |
-
class="bg-white rounded-md hover:outline outline-orange-200 disabled:opacity-50 invisible"
|
| 377 |
-
>
|
| 378 |
-
<img
|
| 379 |
-
src="https://huggingface.co/datasets/huggingface/badges/raw/main/share-to-community-sm.svg"
|
| 380 |
-
/>
|
| 381 |
-
</button>
|
| 382 |
-
</div>
|
| 383 |
-
</div>
|
| 384 |
-
<div>
|
| 385 |
-
<div
|
| 386 |
-
class="flex gap-3 items-center overflow-x-scroll"
|
| 387 |
-
id="image-select"
|
| 388 |
-
>
|
| 389 |
-
<h3 class="font-medium">Examples:</h3>
|
| 390 |
-
|
| 391 |
-
<img
|
| 392 |
-
src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/candle/examples/sf.jpg"
|
| 393 |
-
class="cursor-pointer w-24 h-24 object-cover"
|
| 394 |
-
/>
|
| 395 |
-
<img
|
| 396 |
-
src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/candle/examples/bike.jpeg"
|
| 397 |
-
class="cursor-pointer w-24 h-24 object-cover"
|
| 398 |
-
/>
|
| 399 |
-
<img
|
| 400 |
-
src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/candle/examples/000000000077.jpg"
|
| 401 |
-
class="cursor-pointer w-24 h-24 object-cover"
|
| 402 |
-
/>
|
| 403 |
-
</div>
|
| 404 |
-
</div>
|
| 405 |
-
</main>
|
| 406 |
-
</body>
|
| 407 |
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