Buckets:
| import{s as Q,n as F,o as J}from"../chunks/scheduler.53228c21.js";import{S as V,i as Y,e as r,s,c as A,h as Z,a as f,d as i,b as n,f as K,g as H,j as L,k as j,l as ee,m as a,n as z,t as E,o as q,p as O}from"../chunks/index.100fac89.js";import{C as te}from"../chunks/CopyLLMTxtMenu.969c168d.js";import{H as N,E as ie}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.92f39b94.js";function ae(I){let l,x,$,T,u,w,m,v,p,R='Stable Diffusion XL (SDXL) Turbo was proposed in <a href="https://stability.ai/research/adversarial-diffusion-distillation" rel="nofollow">Adversarial Diffusion Distillation</a> by Axel Sauer, Dominik Lorenz, Andreas Blattmann, and Robin Rombach.',y,h,U="The abstract from the paper is:",D,c,B="<em>We introduce Adversarial Diffusion Distillation (ADD), a novel training approach that efficiently samples large-scale foundational image diffusion models in just 1–4 steps while maintaining high image quality. We use score distillation to leverage large-scale off-the-shelf image diffusion models as a teacher signal in combination with an adversarial loss to ensure high image fidelity even in the low-step regime of one or two sampling steps. Our analyses show that our model clearly outperforms existing few-step methods (GANs,Latent Consistency Models) in a single step and reaches the performance of state-of-the-art diffusion models (SDXL) in only four steps. ADD is the first method to unlock single-step, real-time image synthesis with foundation models.</em>",S,d,M,g,G='<li>SDXL Turbo uses the exact same architecture as <a href="./stable_diffusion_xl">SDXL</a>, which means it also has the same API. Please refer to the <a href="./stable_diffusion_xl">SDXL</a> API reference for more details.</li> <li>SDXL Turbo should disable guidance scale by setting <code>guidance_scale=0.0</code>.</li> <li>SDXL Turbo should use <code>timestep_spacing='trailing'</code> for the scheduler and use between 1 and 4 steps.</li> <li>SDXL Turbo has been trained to generate images of size 512x512.</li> <li>SDXL Turbo is open-access, but not open-source meaning that one might have to buy a model license in order to use it for commercial applications. Make sure to read the <a href="https://huggingface.co/stabilityai/sdxl-turbo" rel="nofollow">official model card</a> to learn more.</li>',X,o,W='<p>To learn how to use SDXL Turbo for various tasks, how to optimize performance, and other usage examples, take a look at the <a href="../../../using-diffusers/sdxl_turbo">SDXL Turbo</a> guide.</p> <p>Check out the <a href="https://huggingface.co/stabilityai" rel="nofollow">Stability AI</a> Hub organization for the official base and refiner model checkpoints!</p>',C,b,P,_,k;return u=new te({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),m=new N({props:{title:"SDXL Turbo",local:"sdxl-turbo",headingTag:"h1"}}),d=new N({props:{title:"Tips",local:"tips",headingTag:"h2"}}),b=new ie({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/stable_diffusion/sdxl_turbo.md"}}),{c(){l=r("meta"),x=s(),$=r("p"),T=s(),A(u.$$.fragment),w=s(),A(m.$$.fragment),v=s(),p=r("p"),p.innerHTML=R,y=s(),h=r("p"),h.textContent=U,D=s(),c=r("p"),c.innerHTML=B,S=s(),A(d.$$.fragment),M=s(),g=r("ul"),g.innerHTML=G,X=s(),o=r("blockquote"),o.innerHTML=W,C=s(),A(b.$$.fragment),P=s(),_=r("p"),this.h()},l(e){const t=Z("svelte-u9bgzb",document.head);l=f(t,"META",{name:!0,content:!0}),t.forEach(i),x=n(e),$=f(e,"P",{}),K($).forEach(i),T=n(e),H(u.$$.fragment,e),w=n(e),H(m.$$.fragment,e),v=n(e),p=f(e,"P",{"data-svelte-h":!0}),L(p)!=="svelte-1lov3q2"&&(p.innerHTML=R),y=n(e),h=f(e,"P",{"data-svelte-h":!0}),L(h)!=="svelte-1cwsb16"&&(h.textContent=U),D=n(e),c=f(e,"P",{"data-svelte-h":!0}),L(c)!=="svelte-g4uhaw"&&(c.innerHTML=B),S=n(e),H(d.$$.fragment,e),M=n(e),g=f(e,"UL",{"data-svelte-h":!0}),L(g)!=="svelte-1s9reyj"&&(g.innerHTML=G),X=n(e),o=f(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),L(o)!=="svelte-1m67zg7"&&(o.innerHTML=W),C=n(e),H(b.$$.fragment,e),P=n(e),_=f(e,"P",{}),K(_).forEach(i),this.h()},h(){j(l,"name","hf:doc:metadata"),j(l,"content",se),j(o,"class","tip")},m(e,t){ee(document.head,l),a(e,x,t),a(e,$,t),a(e,T,t),z(u,e,t),a(e,w,t),z(m,e,t),a(e,v,t),a(e,p,t),a(e,y,t),a(e,h,t),a(e,D,t),a(e,c,t),a(e,S,t),z(d,e,t),a(e,M,t),a(e,g,t),a(e,X,t),a(e,o,t),a(e,C,t),z(b,e,t),a(e,P,t),a(e,_,t),k=!0},p:F,i(e){k||(E(u.$$.fragment,e),E(m.$$.fragment,e),E(d.$$.fragment,e),E(b.$$.fragment,e),k=!0)},o(e){q(u.$$.fragment,e),q(m.$$.fragment,e),q(d.$$.fragment,e),q(b.$$.fragment,e),k=!1},d(e){e&&(i(x),i($),i(T),i(w),i(v),i(p),i(y),i(h),i(D),i(c),i(S),i(M),i(g),i(X),i(o),i(C),i(P),i(_)),i(l),O(u,e),O(m,e),O(d,e),O(b,e)}}}const se='{"title":"SDXL Turbo","local":"sdxl-turbo","sections":[{"title":"Tips","local":"tips","sections":[],"depth":2}],"depth":1}';function ne(I){return J(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ue extends V{constructor(l){super(),Y(this,l,ne,ae,Q,{})}}export{ue as component}; | |
Xet Storage Details
- Size:
- 5.05 kB
- Xet hash:
- 4de081497a2506593f5f324992a12f66aded3b1d69bb348a4499448b61760742
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.