import{S as ge,i as Ae,s as xe,e as a,k as m,w as z,t as i,M as Re,c as s,d as t,m as c,a as n,x as L,h as r,b as p,G as l,g as f,y as K,L as He,q as ee,o as te,B as le,v as qe}from"../../chunks/vendor-hf-doc-builder.js";import{I as Ce}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as De}from"../../chunks/CodeBlock-hf-doc-builder.js";function Fe(Ue){let d,C,v,_,P,w,oe,W,ae,D,h,se,$,ne,ie,M,re,pe,g,U,fe,A,V,ue,x,E,R,b,y,j,N,me,G,ce,H,u,he,Z,de,ve,T,be,_e,k,ye,Oe,q,S,F,I,J,we,$e,Q;return w=new Ce({}),E=new De({props:{code:"cGlwJTIwaW5zdGFsbCUyMG9wdGltdW0lNUIlMjJvcGVudmlubyUyMiU1RA==",highlighted:'pip <span class="hljs-keyword">install</span> optimum[<span class="hljs-string">&quot;openvino&quot;</span>]'}}),N=new Ce({}),S=new De({props:{code:"ZnJvbSUyMG9wdGltdW0uaW50ZWwub3BlbnZpbm8lMjBpbXBvcnQlMjBPVlN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBJTBBbW9kZWxfaWQlMjAlM0QlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUwQXBpcGUlMjAlM0QlMjBPVlN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCUyQyUyMGV4cG9ydCUzRFRydWUpJTBBcHJvbXB0JTIwJTNEJTIwJTIyYSUyMHBob3RvJTIwb2YlMjBhbiUyMGFzdHJvbmF1dCUyMHJpZGluZyUyMGElMjBob3JzZSUyMG9uJTIwbWFycyUyMiUwQWltYWdlcyUyMCUzRCUyMHBpcGUocHJvbXB0KS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-keyword">from</span> optimum.intel.openvino <span class="hljs-keyword">import</span> OVStableDiffusionPipeline

model_id = <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>
pipe = OVStableDiffusionPipeline.from_pretrained(model_id, export=<span class="hljs-literal">True</span>)
prompt = <span class="hljs-string">&quot;a photo of an astronaut riding a horse on mars&quot;</span>
images = pipe(prompt).images[<span class="hljs-number">0</span>]`}}),{c(){d=a("meta"),C=m(),v=a("h1"),_=a("a"),P=a("span"),z(w.$$.fragment),oe=m(),W=a("span"),ae=i("\uCD94\uB860\uC744 \uC704\uD55C OpenVINO \uC0AC\uC6A9 \uBC29\uBC95"),D=m(),h=a("p"),se=i("\u{1F917} "),$=a("a"),ne=i("Optimum"),ie=i(`\uC740 OpenVINO\uC640 \uD638\uD658\uB418\uB294 Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC81C\uACF5\uD569\uB2C8\uB2E4.
\uC774\uC81C \uB2E4\uC591\uD55C Intel \uD504\uB85C\uC138\uC11C\uC5D0\uC11C OpenVINO Runtime\uC73C\uB85C \uC27D\uAC8C \uCD94\uB860\uC744 \uC218\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. (`),M=a("a"),re=i("\uC5EC\uAE30"),pe=i("\uC11C \uC9C0\uC6D0\uB418\uB294 \uC804 \uAE30\uAE30 \uBAA9\uB85D\uC744 \uD655\uC778\uD558\uC138\uC694)."),g=m(),U=a("h2"),fe=i("\uC124\uCE58"),A=m(),V=a("p"),ue=i("\uB2E4\uC74C \uBA85\uB839\uC5B4\uB85C \u{1F917} Optimum\uC744 \uC124\uCE58\uD569\uB2C8\uB2E4:"),x=m(),z(E.$$.fragment),R=m(),b=a("h2"),y=a("a"),j=a("span"),z(N.$$.fragment),me=m(),G=a("span"),ce=i("Stable Diffusion \uCD94\uB860"),H=m(),u=a("p"),he=i("OpenVINO \uBAA8\uB378\uC744 \uBD88\uB7EC\uC624\uACE0 OpenVINO \uB7F0\uD0C0\uC784\uC73C\uB85C \uCD94\uB860\uC744 \uC2E4\uD589\uD558\uB824\uBA74 "),Z=a("code"),de=i("StableDiffusionPipeline"),ve=i("\uC744 "),T=a("code"),be=i("OVStableDiffusionPipeline"),_e=i("\uC73C\uB85C \uAD50\uCCB4\uD574\uC57C \uD569\uB2C8\uB2E4. PyTorch \uBAA8\uB378\uC744 \uBD88\uB7EC\uC624\uACE0 \uC989\uC2DC OpenVINO \uD615\uC2DD\uC73C\uB85C \uBCC0\uD658\uD558\uB824\uB294 \uACBD\uC6B0 "),k=a("code"),ye=i("export=True"),Oe=i("\uB85C \uC124\uC815\uD569\uB2C8\uB2E4."),q=m(),z(S.$$.fragment),F=m(),I=a("p"),J=a("a"),we=i("Optimum \uBB38\uC11C"),$e=i("\uC5D0\uC11C (\uC815\uC801 reshaping\uACFC \uBAA8\uB378 \uCEF4\uD30C\uC77C \uB4F1\uC758) \uB354 \uB9CE\uC740 \uC608\uC2DC\uB4E4\uC744 \uCC3E\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),this.h()},l(e){const o=Re('[data-svelte="svelte-1phssyn"]',document.head);d=s(o,"META",{name:!0,content:!0}),o.forEach(t),C=c(e),v=s(e,"H1",{class:!0});var X=n(v);_=s(X,"A",{id:!0,class:!0,href:!0});var Ee=n(_);P=s(Ee,"SPAN",{});var Ne=n(P);L(w.$$.fragment,Ne),Ne.forEach(t),Ee.forEach(t),oe=c(X),W=s(X,"SPAN",{});var Se=n(W);ae=r(Se,"\uCD94\uB860\uC744 \uC704\uD55C OpenVINO \uC0AC\uC6A9 \uBC29\uBC95"),Se.forEach(t),X.forEach(t),D=c(e),h=s(e,"P",{});var B=n(h);se=r(B,"\u{1F917} "),$=s(B,"A",{href:!0,rel:!0});var Ie=n($);ne=r(Ie,"Optimum"),Ie.forEach(t),ie=r(B,`\uC740 OpenVINO\uC640 \uD638\uD658\uB418\uB294 Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC81C\uACF5\uD569\uB2C8\uB2E4.
\uC774\uC81C \uB2E4\uC591\uD55C Intel \uD504\uB85C\uC138\uC11C\uC5D0\uC11C OpenVINO Runtime\uC73C\uB85C \uC27D\uAC8C \uCD94\uB860\uC744 \uC218\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. (`),M=s(B,"A",{href:!0,rel:!0});var Je=n(M);re=r(Je,"\uC5EC\uAE30"),Je.forEach(t),pe=r(B,"\uC11C \uC9C0\uC6D0\uB418\uB294 \uC804 \uAE30\uAE30 \uBAA9\uB85D\uC744 \uD655\uC778\uD558\uC138\uC694)."),B.forEach(t),g=c(e),U=s(e,"H2",{id:!0});var Ve=n(U);fe=r(Ve,"\uC124\uCE58"),Ve.forEach(t),A=c(e),V=s(e,"P",{});var Be=n(V);ue=r(Be,"\uB2E4\uC74C \uBA85\uB839\uC5B4\uB85C \u{1F917} Optimum\uC744 \uC124\uCE58\uD569\uB2C8\uB2E4:"),Be.forEach(t),x=c(e),L(E.$$.fragment,e),R=c(e),b=s(e,"H2",{class:!0});var Y=n(b);y=s(Y,"A",{id:!0,class:!0,href:!0});var Pe=n(y);j=s(Pe,"SPAN",{});var We=n(j);L(N.$$.fragment,We),We.forEach(t),Pe.forEach(t),me=c(Y),G=s(Y,"SPAN",{});var je=n(G);ce=r(je,"Stable Diffusion \uCD94\uB860"),je.forEach(t),Y.forEach(t),H=c(e),u=s(e,"P",{});var O=n(u);he=r(O,"OpenVINO \uBAA8\uB378\uC744 \uBD88\uB7EC\uC624\uACE0 OpenVINO \uB7F0\uD0C0\uC784\uC73C\uB85C \uCD94\uB860\uC744 \uC2E4\uD589\uD558\uB824\uBA74 "),Z=s(O,"CODE",{});var Ge=n(Z);de=r(Ge,"StableDiffusionPipeline"),Ge.forEach(t),ve=r(O,"\uC744 "),T=s(O,"CODE",{});var Ze=n(T);be=r(Ze,"OVStableDiffusionPipeline"),Ze.forEach(t),_e=r(O,"\uC73C\uB85C \uAD50\uCCB4\uD574\uC57C \uD569\uB2C8\uB2E4. PyTorch \uBAA8\uB378\uC744 \uBD88\uB7EC\uC624\uACE0 \uC989\uC2DC OpenVINO \uD615\uC2DD\uC73C\uB85C \uBCC0\uD658\uD558\uB824\uB294 \uACBD\uC6B0 "),k=s(O,"CODE",{});var Te=n(k);ye=r(Te,"export=True"),Te.forEach(t),Oe=r(O,"\uB85C \uC124\uC815\uD569\uB2C8\uB2E4."),O.forEach(t),q=c(e),L(S.$$.fragment,e),F=c(e),I=s(e,"P",{});var Me=n(I);J=s(Me,"A",{href:!0,rel:!0});var ke=n(J);we=r(ke,"Optimum \uBB38\uC11C"),ke.forEach(t),$e=r(Me,"\uC5D0\uC11C (\uC815\uC801 reshaping\uACFC \uBAA8\uB378 \uCEF4\uD30C\uC77C \uB4F1\uC758) \uB354 \uB9CE\uC740 \uC608\uC2DC\uB4E4\uC744 \uCC3E\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Me.forEach(t),this.h()},h(){p(d,"name","hf:doc:metadata"),p(d,"content",JSON.stringify(Qe)),p(_,"id","openvino"),p(_,"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(_,"href","#openvino"),p(v,"class","relative group"),p($,"href","https://github.com/huggingface/optimum-intel"),p($,"rel","nofollow"),p(M,"href","https://docs.openvino.ai/latest/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html"),p(M,"rel","nofollow"),p(U,"id",""),p(y,"id","stable-diffusion"),p(y,"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(y,"href","#stable-diffusion"),p(b,"class","relative group"),p(J,"href","https://huggingface.co/docs/optimum/intel/inference#export-and-inference-of-stable-diffusion-models"),p(J,"rel","nofollow")},m(e,o){l(document.head,d),f(e,C,o),f(e,v,o),l(v,_),l(_,P),K(w,P,null),l(v,oe),l(v,W),l(W,ae),f(e,D,o),f(e,h,o),l(h,se),l(h,$),l($,ne),l(h,ie),l(h,M),l(M,re),l(h,pe),f(e,g,o),f(e,U,o),l(U,fe),f(e,A,o),f(e,V,o),l(V,ue),f(e,x,o),K(E,e,o),f(e,R,o),f(e,b,o),l(b,y),l(y,j),K(N,j,null),l(b,me),l(b,G),l(G,ce),f(e,H,o),f(e,u,o),l(u,he),l(u,Z),l(Z,de),l(u,ve),l(u,T),l(T,be),l(u,_e),l(u,k),l(k,ye),l(u,Oe),f(e,q,o),K(S,e,o),f(e,F,o),f(e,I,o),l(I,J),l(J,we),l(I,$e),Q=!0},p:He,i(e){Q||(ee(w.$$.fragment,e),ee(E.$$.fragment,e),ee(N.$$.fragment,e),ee(S.$$.fragment,e),Q=!0)},o(e){te(w.$$.fragment,e),te(E.$$.fragment,e),te(N.$$.fragment,e),te(S.$$.fragment,e),Q=!1},d(e){t(d),e&&t(C),e&&t(v),le(w),e&&t(D),e&&t(h),e&&t(g),e&&t(U),e&&t(A),e&&t(V),e&&t(x),le(E,e),e&&t(R),e&&t(b),le(N),e&&t(H),e&&t(u),e&&t(q),le(S,e),e&&t(F),e&&t(I)}}}const Qe={local:"openvino",sections:[{local:"",title:"\uC124\uCE58"},{local:"stable-diffusion",title:"Stable Diffusion \uCD94\uB860"}],title:"\uCD94\uB860\uC744 \uC704\uD55C OpenVINO \uC0AC\uC6A9 \uBC29\uBC95"};function Xe(Ue){return qe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ke extends ge{constructor(d){super();Ae(this,d,Xe,Fe,xe,{})}}export{Ke as default,Qe as metadata};
