Spaces:
Running
Running
File size: 3,829 Bytes
dc200ca 38221c9 bb452ca 38221c9 d0c692f 38221c9 bb452ca 38221c9 bb452ca 38221c9 dad4d17 38221c9 dc200ca | 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 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DFlow2 WebGPU</title>
<meta name="description" content="dflow_2b with the 4-step eDMD + LADD LoRA, text to image on your own GPU with ONNX Runtime Web.">
<link rel="icon" href="data:,">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<p id="line"><b><a href="https://huggingface.co/data-archetype/dflow_2b" target="_blank" rel="noopener">DFlow2 2B</a> · <a href="https://huggingface.co/lvladikov/DFlow2-Distill-4steps-eDMD-LADD-LoRA" target="_blank" rel="noopener">4 steps</a></b>, text to image on your own GPU, nothing leaves this tab
<span class="sep">|</span> <span id="backend">checking WebGPU…</span>
<span class="sep">|</span> <span id="speed">speed shown after the first image</span></p>
<section id="input">
<label for="prompt" class="sr">Prompt</label>
<textarea id="prompt" rows="7" spellcheck="false">A snow leopard walking along a rocky ridge in falling snow, telephoto wildlife photograph, natural light</textarea>
<p class="hint">Describe subject, setting, light and medium; "quoted text" is spelled letter by letter. Trained at about 1 MP, so 512² is only a preview.
Seeds match dflow: <a href="#" id="example">load the LoRA card example</a> (seed 4242, 1824×1024) and compare with
<a href="https://huggingface.co/lvladikov/DFlow2-Distill-4steps-eDMD-LADD-LoRA/blob/main/assets/images/snowleopard.jpg" target="_blank" rel="noopener">the card image</a>.</p>
</section>
<section id="settings">
<label for="size">Size</label><select id="size"></select>
<label for="quality">Weights</label><select id="quality"></select>
<label for="seed">Seed</label>
<span class="seedrow"><input id="seed" type="number" min="0" max="4294967295" value="0">
<label class="check"><input id="random" type="checkbox" checked> random</label></span>
</section>
<section id="run">
<button id="go" disabled>Checking WebGPU…</button>
<div id="status" role="status" aria-live="polite">
<div id="bar"><i></i></div>
<span id="msg"> </span>
</div>
</section>
<section id="output">
<canvas id="canvas" width="512" height="512" aria-label="Generated image"></canvas>
<a id="save" class="disabled" download="dflow2.png" href="#">Download image (.png)</a>
</section>
<details id="more">
<summary>Storage, limits and credits</summary>
<p id="store">Nothing downloaded yet.</p>
<button id="wipe" type="button">Delete downloaded model</button>
<p>The model downloads once (about 2.7 GB with 8-bit weights, 1.7 GB with 4-bit) into this browser's storage, then works offline.
It needs WebGPU (Chrome or Edge 121+, Android 12+, Safari 26) and roughly 3 GB of free GPU memory for 8-bit, 2 GB for 4-bit.
On a phone, close other tabs first. If the tab reloads by itself, the GPU ran out of memory: pick a smaller size.</p>
<p id="limits"></p>
<p>Model: <a href="https://huggingface.co/data-archetype/dflow_2b" target="_blank" rel="noopener">dflow_2b</a> by Data Archetype,
4-step <a href="https://huggingface.co/lvladikov/DFlow2-Distill-4steps-eDMD-LADD-LoRA" target="_blank" rel="noopener">eDMD + LADD LoRA</a> by lvladikov,
decoder <a href="https://huggingface.co/data-archetype/dinac3_96" target="_blank" rel="noopener">dinac3_96</a>,
text encoder from Google's T5Gemma 2. ONNX conversion: <a id="repo" target="_blank" rel="noopener">model repo</a>.
This project uses dflow_2b by Data Archetype. Non-commercial use only (MG-BY-NC-2.0); Gemma is provided under and subject to the Gemma Terms of Use found at gemma.ai/resources/terms.</p>
</details>
</main>
<script type="module" src="app.js"></script>
</body>
</html>
|