import{S as Wo,i as Bo,s as jo,e as a,k as f,w as u,t as r,M as Co,c as o,d as l,m as h,a as s,x as m,h as i,b as p,N as No,G as t,g as d,y as v,L as Po,q as w,o as b,B as y,v as Ro}from"../../chunks/vendor-hf-doc-builder.js";import{I as x}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as il}from"../../chunks/CodeBlock-hf-doc-builder.js";function Xo(Ma){let T,bt,M,Z,$e,H,pl,Ie,fl,yt,E,hl,Q,dl,cl,Y,ul,ml,Et,$,O,ge,F,vl,Je,wl,_t,be,bl,Tt,L,Mt,_,yl,Se,El,_l,z,Ue,Tl,Ml,$t,I,D,ke,q,$l,Ve,Il,It,g,G,Ze,K,gl,Oe,Jl,gt,c,Sl,De,Ul,kl,Ge,Vl,Zl,We,Ol,Dl,Jt,ee,St,ye,Gl,Ut,te,kt,Ee,Wl,Vt,le,Be,$a,Zt,J,W,je,ae,Bl,Ce,jl,Ot,B,Ne,oe,Pe,Cl,Nl,Re,Pl,Rl,S,se,Xe,Ae,Xl,Al,xe,He,xl,Hl,ne,Qe,Ye,Ql,Yl,Fe,Le,Fl,Ll,re,ze,qe,zl,ql,Ke,et,Kl,Dt,j,ea,ie,ta,la,Gt,U,C,tt,pe,aa,lt,oa,Wt,k,N,at,fe,sa,ot,na,Bt,he,jt,P,ra,de,ia,pa,Ct,V,R,st,ce,fa,nt,ha,Nt,X,rt,ue,it,da,ca,pt,ua,ma,me,ve,ft,ht,va,wa,dt,ct,ba,ya,we,ut,mt,Ea,_a,vt,wt,Ta,Pt;return H=new x({}),F=new x({}),L=new il({props:{code:"cGlwJTIwaW5zdGFsbCUyMC0tdXBncmFkZS1zdHJhdGVneSUyMGVhZ2VyJTIwb3B0aW11bSU1QiUyMm9wZW52aW5vJTIyJTVE",highlighted:'pip install <span class="hljs-attr">--upgrade-strategy</span> eager optimum<span class="hljs-selector-attr">[<span class="hljs-string">&quot;openvino&quot;</span>]</span>'}}),q=new x({}),K=new x({}),ee=new il({props:{code:"ZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVlN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBJTBBbW9kZWxfaWQlMjAlM0QlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUwQXBpcGVsaW5lJTIwJTNEJTIwT1ZTdGFibGVEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQobW9kZWxfaWQlMkMlMjBleHBvcnQlM0RUcnVlKSUwQXByb21wdCUyMCUzRCUyMCUyMnNhaWxpbmclMjBzaGlwJTIwaW4lMjBzdG9ybSUyMGJ5JTIwUmVtYnJhbmR0JTIyJTBBaW1hZ2UlMjAlM0QlMjBwaXBlbGluZShwcm9tcHQpLmltYWdlcyU1QjAlNUQlMEElMEElMjMlMjBEb24ndCUyMGZvcmdldCUyMHRvJTIwc2F2ZSUyMHRoZSUyMGV4cG9ydGVkJTIwbW9kZWwlMEFwaXBlbGluZS5zYXZlX3ByZXRyYWluZWQoJTIyb3BlbnZpbm8tc2QtdjEtNSUyMik=",highlighted:`<span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVStableDiffusionPipeline

model_id = <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>
pipeline = OVStableDiffusionPipeline.from_pretrained(model_id, export=<span class="hljs-literal">True</span>)
prompt = <span class="hljs-string">&quot;sailing ship in storm by Rembrandt&quot;</span>
image = pipeline(prompt).images[<span class="hljs-number">0</span>]

<span class="hljs-comment"># Don&#x27;t forget to save the exported model</span>
pipeline.save_pretrained(<span class="hljs-string">&quot;openvino-sd-v1-5&quot;</span>)`}}),te=new il({props:{code:"JTIzJTIwRGVmaW5lJTIwdGhlJTIwc2hhcGVzJTIwcmVsYXRlZCUyMHRvJTIwdGhlJTIwaW5wdXRzJTIwYW5kJTIwZGVzaXJlZCUyMG91dHB1dHMlMEFiYXRjaF9zaXplJTJDJTIwbnVtX2ltYWdlcyUyQyUyMGhlaWdodCUyQyUyMHdpZHRoJTIwJTNEJTIwMSUyQyUyMDElMkMlMjA1MTIlMkMlMjA1MTIlMEElMEElMjMlMjBTdGF0aWNhbGx5JTIwcmVzaGFwZSUyMHRoZSUyMG1vZGVsJTBBcGlwZWxpbmUucmVzaGFwZShiYXRjaF9zaXplJTJDJTIwaGVpZ2h0JTJDJTIwd2lkdGglMkMlMjBudW1faW1hZ2VzKSUwQSUyMyUyMENvbXBpbGUlMjB0aGUlMjBtb2RlbCUyMGJlZm9yZSUyMGluZmVyZW5jZSUwQXBpcGVsaW5lLmNvbXBpbGUoKSUwQSUwQWltYWdlJTIwJTNEJTIwcGlwZWxpbmUoJTBBJTIwJTIwJTIwJTIwcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwaGVpZ2h0JTNEaGVpZ2h0JTJDJTBBJTIwJTIwJTIwJTIwd2lkdGglM0R3aWR0aCUyQyUwQSUyMCUyMCUyMCUyMG51bV9pbWFnZXNfcGVyX3Byb21wdCUzRG51bV9pbWFnZXMlMkMlMEEpLmltYWdlcyU1QjAlNUQ=",highlighted:`<span class="hljs-comment"># Define the shapes related to the inputs and desired outputs</span>
batch_size, num_images, height, width = <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">512</span>, <span class="hljs-number">512</span>

<span class="hljs-comment"># Statically reshape the model</span>
pipeline.reshape(batch_size, height, width, num_images)
<span class="hljs-comment"># Compile the model before inference</span>
pipeline.<span class="hljs-built_in">compile</span>()

image = pipeline(
    prompt,
    height=height,
    width=width,
    num_images_per_prompt=num_images,
).images[<span class="hljs-number">0</span>]`}}),ae=new x({}),pe=new x({}),fe=new x({}),he=new il({props:{code:"ZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVlN0YWJsZURpZmZ1c2lvblhMUGlwZWxpbmUlMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLWRpZmZ1c2lvbi14bC1iYXNlLTEuMCUyMiUwQXBpcGVsaW5lJTIwJTNEJTIwT1ZTdGFibGVEaWZmdXNpb25YTFBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCUyQyUyMGV4cG9ydCUzRFRydWUpJTBBcHJvbXB0JTIwJTNEJTIwJTIyc2FpbGluZyUyMHNoaXAlMjBpbiUyMHN0b3JtJTIwYnklMjBSZW1icmFuZHQlMjIlMEFpbWFnZSUyMCUzRCUyMHBpcGVsaW5lKHByb21wdCkuaW1hZ2VzJTVCMCU1RA==",highlighted:`<span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVStableDiffusionXLPipeline

model_id = <span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>
pipeline = OVStableDiffusionXLPipeline.from_pretrained(model_id, export=<span class="hljs-literal">True</span>)
prompt = <span class="hljs-string">&quot;sailing ship in storm by Rembrandt&quot;</span>
image = pipeline(prompt).images[<span class="hljs-number">0</span>]`}}),ce=new x({}),{c(){T=a("meta"),bt=f(),M=a("h1"),Z=a("a"),$e=a("span"),u(H.$$.fragment),pl=f(),Ie=a("span"),fl=r("How to use OpenVINO for inference"),yt=f(),E=a("p"),hl=r("\u{1F917} "),Q=a("a"),dl=r("Optimum"),cl=r(" provides Stable Diffusion pipelines compatible with OpenVINO. You can now easily perform inference with OpenVINO Runtime on a variety of Intel processors ("),Y=a("a"),ul=r("see"),ml=r(" the full list of supported devices)."),Et=f(),$=a("h2"),O=a("a"),ge=a("span"),u(F.$$.fragment),vl=f(),Je=a("span"),wl=r("Installation"),_t=f(),be=a("p"),bl=r("Install \u{1F917} Optimum Intel with the following command:"),Tt=f(),u(L.$$.fragment),Mt=f(),_=a("p"),yl=r("The "),Se=a("code"),El=r("--upgrade-strategy eager"),_l=r(" option is needed to ensure "),z=a("a"),Ue=a("code"),Tl=r("optimum-intel"),Ml=r(" is upgraded to its latest version."),$t=f(),I=a("h2"),D=a("a"),ke=a("span"),u(q.$$.fragment),$l=f(),Ve=a("span"),Il=r("Stable Diffusion"),It=f(),g=a("h3"),G=a("a"),Ze=a("span"),u(K.$$.fragment),gl=f(),Oe=a("span"),Jl=r("Inference"),gt=f(),c=a("p"),Sl=r("To load an OpenVINO model and run inference with OpenVINO Runtime, you need to replace "),De=a("code"),Ul=r("StableDiffusionPipeline"),kl=r(" with "),Ge=a("code"),Vl=r("OVStableDiffusionPipeline"),Zl=r(". In case you want to load a PyTorch model and convert it to the OpenVINO format on-the-fly, you can set "),We=a("code"),Ol=r("export=True"),Dl=r("."),Jt=f(),u(ee.$$.fragment),St=f(),ye=a("p"),Gl=r("To further speed up inference, the model can be statically reshaped :"),Ut=f(),u(te.$$.fragment),kt=f(),Ee=a("p"),Wl=r("In case you want to change any parameters such as the outputs height or width, you\u2019ll need to statically reshape your model once again."),Vt=f(),le=a("div"),Be=a("img"),Zt=f(),J=a("h3"),W=a("a"),je=a("span"),u(ae.$$.fragment),Bl=f(),Ce=a("span"),jl=r("Supported tasks"),Ot=f(),B=a("table"),Ne=a("thead"),oe=a("tr"),Pe=a("th"),Cl=r("Task"),Nl=f(),Re=a("th"),Pl=r("Loading Class"),Rl=f(),S=a("tbody"),se=a("tr"),Xe=a("td"),Ae=a("code"),Xl=r("text-to-image"),Al=f(),xe=a("td"),He=a("code"),xl=r("OVStableDiffusionPipeline"),Hl=f(),ne=a("tr"),Qe=a("td"),Ye=a("code"),Ql=r("image-to-image"),Yl=f(),Fe=a("td"),Le=a("code"),Fl=r("OVStableDiffusionImg2ImgPipeline"),Ll=f(),re=a("tr"),ze=a("td"),qe=a("code"),zl=r("inpaint"),ql=f(),Ke=a("td"),et=a("code"),Kl=r("OVStableDiffusionInpaintPipeline"),Dt=f(),j=a("p"),ea=r("You can find more examples in the optimum "),ie=a("a"),ta=r("documentation"),la=r("."),Gt=f(),U=a("h2"),C=a("a"),tt=a("span"),u(pe.$$.fragment),aa=f(),lt=a("span"),oa=r("Stable Diffusion XL"),Wt=f(),k=a("h3"),N=a("a"),at=a("span"),u(fe.$$.fragment),sa=f(),ot=a("span"),na=r("Inference"),Bt=f(),u(he.$$.fragment),jt=f(),P=a("p"),ra=r(`To further speed up inference, the model can be statically reshaped as showed above.
You can find more examples in the optimum `),de=a("a"),ia=r("documentation"),pa=r("."),Ct=f(),V=a("h3"),R=a("a"),st=a("span"),u(ce.$$.fragment),fa=f(),nt=a("span"),ha=r("Supported tasks"),Nt=f(),X=a("table"),rt=a("thead"),ue=a("tr"),it=a("th"),da=r("Task"),ca=f(),pt=a("th"),ua=r("Loading Class"),ma=f(),me=a("tbody"),ve=a("tr"),ft=a("td"),ht=a("code"),va=r("text-to-image"),wa=f(),dt=a("td"),ct=a("code"),ba=r("OVStableDiffusionXLPipeline"),ya=f(),we=a("tr"),ut=a("td"),mt=a("code"),Ea=r("image-to-image"),_a=f(),vt=a("td"),wt=a("code"),Ta=r("OVStableDiffusionXLImg2ImgPipeline"),this.h()},l(e){const n=Co('[data-svelte="svelte-1phssyn"]',document.head);T=o(n,"META",{name:!0,content:!0}),n.forEach(l),bt=h(e),M=o(e,"H1",{class:!0});var Rt=s(M);Z=o(Rt,"A",{id:!0,class:!0,href:!0});var Ia=s(Z);$e=o(Ia,"SPAN",{});var ga=s($e);m(H.$$.fragment,ga),ga.forEach(l),Ia.forEach(l),pl=h(Rt),Ie=o(Rt,"SPAN",{});var Ja=s(Ie);fl=i(Ja,"How to use OpenVINO for inference"),Ja.forEach(l),Rt.forEach(l),yt=h(e),E=o(e,"P",{});var _e=s(E);hl=i(_e,"\u{1F917} "),Q=o(_e,"A",{href:!0,rel:!0});var Sa=s(Q);dl=i(Sa,"Optimum"),Sa.forEach(l),cl=i(_e," provides Stable Diffusion pipelines compatible with OpenVINO. You can now easily perform inference with OpenVINO Runtime on a variety of Intel processors ("),Y=o(_e,"A",{href:!0,rel:!0});var Ua=s(Y);ul=i(Ua,"see"),Ua.forEach(l),ml=i(_e," the full list of supported devices)."),_e.forEach(l),Et=h(e),$=o(e,"H2",{class:!0});var Xt=s($);O=o(Xt,"A",{id:!0,class:!0,href:!0});var ka=s(O);ge=o(ka,"SPAN",{});var Va=s(ge);m(F.$$.fragment,Va),Va.forEach(l),ka.forEach(l),vl=h(Xt),Je=o(Xt,"SPAN",{});var Za=s(Je);wl=i(Za,"Installation"),Za.forEach(l),Xt.forEach(l),_t=h(e),be=o(e,"P",{});var Oa=s(be);bl=i(Oa,"Install \u{1F917} Optimum Intel with the following command:"),Oa.forEach(l),Tt=h(e),m(L.$$.fragment,e),Mt=h(e),_=o(e,"P",{});var Te=s(_);yl=i(Te,"The "),Se=o(Te,"CODE",{});var Da=s(Se);El=i(Da,"--upgrade-strategy eager"),Da.forEach(l),_l=i(Te," option is needed to ensure "),z=o(Te,"A",{href:!0,rel:!0});var Ga=s(z);Ue=o(Ga,"CODE",{});var Wa=s(Ue);Tl=i(Wa,"optimum-intel"),Wa.forEach(l),Ga.forEach(l),Ml=i(Te," is upgraded to its latest version."),Te.forEach(l),$t=h(e),I=o(e,"H2",{class:!0});var At=s(I);D=o(At,"A",{id:!0,class:!0,href:!0});var Ba=s(D);ke=o(Ba,"SPAN",{});var ja=s(ke);m(q.$$.fragment,ja),ja.forEach(l),Ba.forEach(l),$l=h(At),Ve=o(At,"SPAN",{});var Ca=s(Ve);Il=i(Ca,"Stable Diffusion"),Ca.forEach(l),At.forEach(l),It=h(e),g=o(e,"H3",{class:!0});var xt=s(g);G=o(xt,"A",{id:!0,class:!0,href:!0});var Na=s(G);Ze=o(Na,"SPAN",{});var Pa=s(Ze);m(K.$$.fragment,Pa),Pa.forEach(l),Na.forEach(l),gl=h(xt),Oe=o(xt,"SPAN",{});var Ra=s(Oe);Jl=i(Ra,"Inference"),Ra.forEach(l),xt.forEach(l),gt=h(e),c=o(e,"P",{});var A=s(c);Sl=i(A,"To load an OpenVINO model and run inference with OpenVINO Runtime, you need to replace "),De=o(A,"CODE",{});var Xa=s(De);Ul=i(Xa,"StableDiffusionPipeline"),Xa.forEach(l),kl=i(A," with "),Ge=o(A,"CODE",{});var Aa=s(Ge);Vl=i(Aa,"OVStableDiffusionPipeline"),Aa.forEach(l),Zl=i(A,". In case you want to load a PyTorch model and convert it to the OpenVINO format on-the-fly, you can set "),We=o(A,"CODE",{});var xa=s(We);Ol=i(xa,"export=True"),xa.forEach(l),Dl=i(A,"."),A.forEach(l),Jt=h(e),m(ee.$$.fragment,e),St=h(e),ye=o(e,"P",{});var Ha=s(ye);Gl=i(Ha,"To further speed up inference, the model can be statically reshaped :"),Ha.forEach(l),Ut=h(e),m(te.$$.fragment,e),kt=h(e),Ee=o(e,"P",{});var Qa=s(Ee);Wl=i(Qa,"In case you want to change any parameters such as the outputs height or width, you\u2019ll need to statically reshape your model once again."),Qa.forEach(l),Vt=h(e),le=o(e,"DIV",{class:!0});var Ya=s(le);Be=o(Ya,"IMG",{src:!0}),Ya.forEach(l),Zt=h(e),J=o(e,"H3",{class:!0});var Ht=s(J);W=o(Ht,"A",{id:!0,class:!0,href:!0});var Fa=s(W);je=o(Fa,"SPAN",{});var La=s(je);m(ae.$$.fragment,La),La.forEach(l),Fa.forEach(l),Bl=h(Ht),Ce=o(Ht,"SPAN",{});var za=s(Ce);jl=i(za,"Supported tasks"),za.forEach(l),Ht.forEach(l),Ot=h(e),B=o(e,"TABLE",{});var Qt=s(B);Ne=o(Qt,"THEAD",{});var qa=s(Ne);oe=o(qa,"TR",{});var Yt=s(oe);Pe=o(Yt,"TH",{});var Ka=s(Pe);Cl=i(Ka,"Task"),Ka.forEach(l),Nl=h(Yt),Re=o(Yt,"TH",{});var eo=s(Re);Pl=i(eo,"Loading Class"),eo.forEach(l),Yt.forEach(l),qa.forEach(l),Rl=h(Qt),S=o(Qt,"TBODY",{});var Me=s(S);se=o(Me,"TR",{});var Ft=s(se);Xe=o(Ft,"TD",{});var to=s(Xe);Ae=o(to,"CODE",{});var lo=s(Ae);Xl=i(lo,"text-to-image"),lo.forEach(l),to.forEach(l),Al=h(Ft),xe=o(Ft,"TD",{});var ao=s(xe);He=o(ao,"CODE",{});var oo=s(He);xl=i(oo,"OVStableDiffusionPipeline"),oo.forEach(l),ao.forEach(l),Ft.forEach(l),Hl=h(Me),ne=o(Me,"TR",{});var Lt=s(ne);Qe=o(Lt,"TD",{});var so=s(Qe);Ye=o(so,"CODE",{});var no=s(Ye);Ql=i(no,"image-to-image"),no.forEach(l),so.forEach(l),Yl=h(Lt),Fe=o(Lt,"TD",{});var ro=s(Fe);Le=o(ro,"CODE",{});var io=s(Le);Fl=i(io,"OVStableDiffusionImg2ImgPipeline"),io.forEach(l),ro.forEach(l),Lt.forEach(l),Ll=h(Me),re=o(Me,"TR",{});var zt=s(re);ze=o(zt,"TD",{});var po=s(ze);qe=o(po,"CODE",{});var fo=s(qe);zl=i(fo,"inpaint"),fo.forEach(l),po.forEach(l),ql=h(zt),Ke=o(zt,"TD",{});var ho=s(Ke);et=o(ho,"CODE",{});var co=s(et);Kl=i(co,"OVStableDiffusionInpaintPipeline"),co.forEach(l),ho.forEach(l),zt.forEach(l),Me.forEach(l),Qt.forEach(l),Dt=h(e),j=o(e,"P",{});var qt=s(j);ea=i(qt,"You can find more examples in the optimum "),ie=o(qt,"A",{href:!0,rel:!0});var uo=s(ie);ta=i(uo,"documentation"),uo.forEach(l),la=i(qt,"."),qt.forEach(l),Gt=h(e),U=o(e,"H2",{class:!0});var Kt=s(U);C=o(Kt,"A",{id:!0,class:!0,href:!0});var mo=s(C);tt=o(mo,"SPAN",{});var vo=s(tt);m(pe.$$.fragment,vo),vo.forEach(l),mo.forEach(l),aa=h(Kt),lt=o(Kt,"SPAN",{});var wo=s(lt);oa=i(wo,"Stable Diffusion XL"),wo.forEach(l),Kt.forEach(l),Wt=h(e),k=o(e,"H3",{class:!0});var el=s(k);N=o(el,"A",{id:!0,class:!0,href:!0});var bo=s(N);at=o(bo,"SPAN",{});var yo=s(at);m(fe.$$.fragment,yo),yo.forEach(l),bo.forEach(l),sa=h(el),ot=o(el,"SPAN",{});var Eo=s(ot);na=i(Eo,"Inference"),Eo.forEach(l),el.forEach(l),Bt=h(e),m(he.$$.fragment,e),jt=h(e),P=o(e,"P",{});var tl=s(P);ra=i(tl,`To further speed up inference, the model can be statically reshaped as showed above.
You can find more examples in the optimum `),de=o(tl,"A",{href:!0,rel:!0});var _o=s(de);ia=i(_o,"documentation"),_o.forEach(l),pa=i(tl,"."),tl.forEach(l),Ct=h(e),V=o(e,"H3",{class:!0});var ll=s(V);R=o(ll,"A",{id:!0,class:!0,href:!0});var To=s(R);st=o(To,"SPAN",{});var Mo=s(st);m(ce.$$.fragment,Mo),Mo.forEach(l),To.forEach(l),fa=h(ll),nt=o(ll,"SPAN",{});var $o=s(nt);ha=i($o,"Supported tasks"),$o.forEach(l),ll.forEach(l),Nt=h(e),X=o(e,"TABLE",{});var al=s(X);rt=o(al,"THEAD",{});var Io=s(rt);ue=o(Io,"TR",{});var ol=s(ue);it=o(ol,"TH",{});var go=s(it);da=i(go,"Task"),go.forEach(l),ca=h(ol),pt=o(ol,"TH",{});var Jo=s(pt);ua=i(Jo,"Loading Class"),Jo.forEach(l),ol.forEach(l),Io.forEach(l),ma=h(al),me=o(al,"TBODY",{});var sl=s(me);ve=o(sl,"TR",{});var nl=s(ve);ft=o(nl,"TD",{});var So=s(ft);ht=o(So,"CODE",{});var Uo=s(ht);va=i(Uo,"text-to-image"),Uo.forEach(l),So.forEach(l),wa=h(nl),dt=o(nl,"TD",{});var ko=s(dt);ct=o(ko,"CODE",{});var Vo=s(ct);ba=i(Vo,"OVStableDiffusionXLPipeline"),Vo.forEach(l),ko.forEach(l),nl.forEach(l),ya=h(sl),we=o(sl,"TR",{});var rl=s(we);ut=o(rl,"TD",{});var Zo=s(ut);mt=o(Zo,"CODE",{});var Oo=s(mt);Ea=i(Oo,"image-to-image"),Oo.forEach(l),Zo.forEach(l),_a=h(rl),vt=o(rl,"TD",{});var Do=s(vt);wt=o(Do,"CODE",{});var Go=s(wt);Ta=i(Go,"OVStableDiffusionXLImg2ImgPipeline"),Go.forEach(l),Do.forEach(l),rl.forEach(l),sl.forEach(l),al.forEach(l),this.h()},h(){p(T,"name","hf:doc:metadata"),p(T,"content",JSON.stringify(Ao)),p(Z,"id","how-to-use-openvino-for-inference"),p(Z,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(Z,"href","#how-to-use-openvino-for-inference"),p(M,"class","relative group"),p(Q,"href","https://github.com/huggingface/optimum-intel"),p(Q,"rel","nofollow"),p(Y,"href","https://docs.openvino.ai/latest/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html"),p(Y,"rel","nofollow"),p(O,"id","installation"),p(O,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(O,"href","#installation"),p($,"class","relative group"),p(z,"href","https://github.com/huggingface/optimum-intel"),p(z,"rel","nofollow"),p(D,"id","stable-diffusion"),p(D,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(D,"href","#stable-diffusion"),p(I,"class","relative group"),p(G,"id","inference"),p(G,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(G,"href","#inference"),p(g,"class","relative group"),No(Be.src,$a="https://huggingface.co/datasets/optimum/documentation-images/resolve/main/intel/openvino/stable_diffusion_v1_5_sail_boat_rembrandt.png")||p(Be,"src",$a),p(le,"class","flex justify-center"),p(W,"id","supported-tasks"),p(W,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(W,"href","#supported-tasks"),p(J,"class","relative group"),p(ie,"href","https://huggingface.co/docs/optimum/intel/inference#stable-diffusion"),p(ie,"rel","nofollow"),p(C,"id","stable-diffusion-xl"),p(C,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(C,"href","#stable-diffusion-xl"),p(U,"class","relative group"),p(N,"id","inference"),p(N,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(N,"href","#inference"),p(k,"class","relative group"),p(de,"href","https://huggingface.co/docs/optimum/intel/inference#stable-diffusion-xl"),p(de,"rel","nofollow"),p(R,"id","supported-tasks"),p(R,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(R,"href","#supported-tasks"),p(V,"class","relative group")},m(e,n){t(document.head,T),d(e,bt,n),d(e,M,n),t(M,Z),t(Z,$e),v(H,$e,null),t(M,pl),t(M,Ie),t(Ie,fl),d(e,yt,n),d(e,E,n),t(E,hl),t(E,Q),t(Q,dl),t(E,cl),t(E,Y),t(Y,ul),t(E,ml),d(e,Et,n),d(e,$,n),t($,O),t(O,ge),v(F,ge,null),t($,vl),t($,Je),t(Je,wl),d(e,_t,n),d(e,be,n),t(be,bl),d(e,Tt,n),v(L,e,n),d(e,Mt,n),d(e,_,n),t(_,yl),t(_,Se),t(Se,El),t(_,_l),t(_,z),t(z,Ue),t(Ue,Tl),t(_,Ml),d(e,$t,n),d(e,I,n),t(I,D),t(D,ke),v(q,ke,null),t(I,$l),t(I,Ve),t(Ve,Il),d(e,It,n),d(e,g,n),t(g,G),t(G,Ze),v(K,Ze,null),t(g,gl),t(g,Oe),t(Oe,Jl),d(e,gt,n),d(e,c,n),t(c,Sl),t(c,De),t(De,Ul),t(c,kl),t(c,Ge),t(Ge,Vl),t(c,Zl),t(c,We),t(We,Ol),t(c,Dl),d(e,Jt,n),v(ee,e,n),d(e,St,n),d(e,ye,n),t(ye,Gl),d(e,Ut,n),v(te,e,n),d(e,kt,n),d(e,Ee,n),t(Ee,Wl),d(e,Vt,n),d(e,le,n),t(le,Be),d(e,Zt,n),d(e,J,n),t(J,W),t(W,je),v(ae,je,null),t(J,Bl),t(J,Ce),t(Ce,jl),d(e,Ot,n),d(e,B,n),t(B,Ne),t(Ne,oe),t(oe,Pe),t(Pe,Cl),t(oe,Nl),t(oe,Re),t(Re,Pl),t(B,Rl),t(B,S),t(S,se),t(se,Xe),t(Xe,Ae),t(Ae,Xl),t(se,Al),t(se,xe),t(xe,He),t(He,xl),t(S,Hl),t(S,ne),t(ne,Qe),t(Qe,Ye),t(Ye,Ql),t(ne,Yl),t(ne,Fe),t(Fe,Le),t(Le,Fl),t(S,Ll),t(S,re),t(re,ze),t(ze,qe),t(qe,zl),t(re,ql),t(re,Ke),t(Ke,et),t(et,Kl),d(e,Dt,n),d(e,j,n),t(j,ea),t(j,ie),t(ie,ta),t(j,la),d(e,Gt,n),d(e,U,n),t(U,C),t(C,tt),v(pe,tt,null),t(U,aa),t(U,lt),t(lt,oa),d(e,Wt,n),d(e,k,n),t(k,N),t(N,at),v(fe,at,null),t(k,sa),t(k,ot),t(ot,na),d(e,Bt,n),v(he,e,n),d(e,jt,n),d(e,P,n),t(P,ra),t(P,de),t(de,ia),t(P,pa),d(e,Ct,n),d(e,V,n),t(V,R),t(R,st),v(ce,st,null),t(V,fa),t(V,nt),t(nt,ha),d(e,Nt,n),d(e,X,n),t(X,rt),t(rt,ue),t(ue,it),t(it,da),t(ue,ca),t(ue,pt),t(pt,ua),t(X,ma),t(X,me),t(me,ve),t(ve,ft),t(ft,ht),t(ht,va),t(ve,wa),t(ve,dt),t(dt,ct),t(ct,ba),t(me,ya),t(me,we),t(we,ut),t(ut,mt),t(mt,Ea),t(we,_a),t(we,vt),t(vt,wt),t(wt,Ta),Pt=!0},p:Po,i(e){Pt||(w(H.$$.fragment,e),w(F.$$.fragment,e),w(L.$$.fragment,e),w(q.$$.fragment,e),w(K.$$.fragment,e),w(ee.$$.fragment,e),w(te.$$.fragment,e),w(ae.$$.fragment,e),w(pe.$$.fragment,e),w(fe.$$.fragment,e),w(he.$$.fragment,e),w(ce.$$.fragment,e),Pt=!0)},o(e){b(H.$$.fragment,e),b(F.$$.fragment,e),b(L.$$.fragment,e),b(q.$$.fragment,e),b(K.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),b(ae.$$.fragment,e),b(pe.$$.fragment,e),b(fe.$$.fragment,e),b(he.$$.fragment,e),b(ce.$$.fragment,e),Pt=!1},d(e){l(T),e&&l(bt),e&&l(M),y(H),e&&l(yt),e&&l(E),e&&l(Et),e&&l($),y(F),e&&l(_t),e&&l(be),e&&l(Tt),y(L,e),e&&l(Mt),e&&l(_),e&&l($t),e&&l(I),y(q),e&&l(It),e&&l(g),y(K),e&&l(gt),e&&l(c),e&&l(Jt),y(ee,e),e&&l(St),e&&l(ye),e&&l(Ut),y(te,e),e&&l(kt),e&&l(Ee),e&&l(Vt),e&&l(le),e&&l(Zt),e&&l(J),y(ae),e&&l(Ot),e&&l(B),e&&l(Dt),e&&l(j),e&&l(Gt),e&&l(U),y(pe),e&&l(Wt),e&&l(k),y(fe),e&&l(Bt),y(he,e),e&&l(jt),e&&l(P),e&&l(Ct),e&&l(V),y(ce),e&&l(Nt),e&&l(X)}}}const Ao={local:"how-to-use-openvino-for-inference",sections:[{local:"installation",title:"Installation"},{local:"stable-diffusion",sections:[{local:"inference",title:"Inference"},{local:"supported-tasks",title:"Supported tasks"}],title:"Stable Diffusion"},{local:"stable-diffusion-xl",sections:[{local:"inference",title:"Inference"},{local:"supported-tasks",title:"Supported tasks"}],title:"Stable Diffusion XL"}],title:"How to use OpenVINO for inference"};function xo(Ma){return Ro(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Fo extends Wo{constructor(T){super();Bo(this,T,xo,Xo,jo,{})}}export{Fo as default,Ao as metadata};
