import{S as wl,i as _l,s as vl,e as i,k as o,w as N,t as m,M as Gl,c as r,d as l,m as c,a as p,x as F,h as n,b as u,N as $e,G as t,g as a,y as C,q as D,o as V,B as Y,v as Tl}from"../../chunks/vendor-hf-doc-builder.js";import{T as Il}from"../../chunks/Tip-hf-doc-builder.js";import{I as jl}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as re}from"../../chunks/CodeBlock-hf-doc-builder.js";function El(pe){let f,w,d,b,M;return{c(){f=i("p"),w=m("\u{1F4A1} "),d=i("code"),b=m("strength"),M=m("\uB294 \uC785\uB825 \uC774\uBBF8\uC9C0\uC5D0 \uCD94\uAC00\uB418\uB294 \uB178\uC774\uC988\uC758 \uC591\uC744 \uC81C\uC5B4\uD558\uB294 0.0\uC5D0\uC11C 1.0 \uC0AC\uC774\uC758 \uAC12\uC785\uB2C8\uB2E4. 1.0\uC5D0 \uAC00\uAE4C\uC6B4 \uAC12\uC740 \uB2E4\uC591\uD55C \uBCC0\uD615\uC744 \uD5C8\uC6A9\uD558\uC9C0\uB9CC \uC785\uB825 \uC774\uBBF8\uC9C0\uC640 \uC758\uBBF8\uC801\uC73C\uB85C \uC77C\uCE58\uD558\uC9C0 \uC54A\uB294 \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4.")},l(h){f=r(h,"P",{});var J=p(f);w=n(J,"\u{1F4A1} "),d=r(J,"CODE",{});var _=p(d);b=n(_,"strength"),_.forEach(l),M=n(J,"\uB294 \uC785\uB825 \uC774\uBBF8\uC9C0\uC5D0 \uCD94\uAC00\uB418\uB294 \uB178\uC774\uC988\uC758 \uC591\uC744 \uC81C\uC5B4\uD558\uB294 0.0\uC5D0\uC11C 1.0 \uC0AC\uC774\uC758 \uAC12\uC785\uB2C8\uB2E4. 1.0\uC5D0 \uAC00\uAE4C\uC6B4 \uAC12\uC740 \uB2E4\uC591\uD55C \uBCC0\uD615\uC744 \uD5C8\uC6A9\uD558\uC9C0\uB9CC \uC785\uB825 \uC774\uBBF8\uC9C0\uC640 \uC758\uBBF8\uC801\uC73C\uB85C \uC77C\uCE58\uD558\uC9C0 \uC54A\uB294 \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4."),J.forEach(l)},m(h,J){a(h,f,J),t(f,w),t(f,d),t(d,b),t(f,M)},d(h){h&&l(f)}}}function $l(pe){let f,w,d,b,M,h,J,_,We,me,Q,Ue,ne,I,x,Be,ke,oe,z,Se,ce,j,fe,Z,E,L,Re,Xe,A,Ne,Fe,ue,$,de,P,Ce,he,W,be,U,O,el,Je,v,ye,G,De,K,Ve,Ye,ge,B,Me,k,ee,ll,Ze,H,Qe,we,S,_e,R,le,sl,ve,y,ze,se,Pe,He,te,qe,xe,Ge,T,Le,ae,Ae,Oe,Te,g,tl,Ie;return h=new jl({}),j=new re({props:{code:"IXBpcCUyMGluc3RhbGwlMjBkaWZmdXNlcnMlMjB0cmFuc2Zvcm1lcnMlMjBmdGZ5JTIwYWNjZWxlcmF0ZQ==",highlighted:"!pip install diffusers transformers ftfy accelerate"}}),$=new re({props:{code:"aW1wb3J0JTIwdG9yY2glMEFpbXBvcnQlMjByZXF1ZXN0cyUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWZyb20lMjBpbyUyMGltcG9ydCUyMEJ5dGVzSU8lMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlRGlmZnVzaW9uSW1nMkltZ1BpcGVsaW5lJTBBJTBBZGV2aWNlJTIwJTNEJTIwJTIyY3VkYSUyMiUwQXBpcGUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25JbWcySW1nUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMm5pdHJvc29ja2UlMkZHaGlibGktRGlmZnVzaW9uJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KS50byglMEElMjAlMjAlMjAlMjBkZXZpY2UlMEEp",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-keyword">from</span> io <span class="hljs-keyword">import</span> BytesIO
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionImg2ImgPipeline

device = <span class="hljs-string">&quot;cuda&quot;</span>
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(<span class="hljs-string">&quot;nitrosocke/Ghibli-Diffusion&quot;</span>, torch_dtype=torch.float16).to(
    device
)`}}),W=new re({props:{code:"dXJsJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZyYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tJTJGQ29tcFZpcyUyRnN0YWJsZS1kaWZmdXNpb24lMkZtYWluJTJGYXNzZXRzJTJGc3RhYmxlLXNhbXBsZXMlMkZpbWcyaW1nJTJGc2tldGNoLW1vdW50YWlucy1pbnB1dC5qcGclMjIlMEElMEFyZXNwb25zZSUyMCUzRCUyMHJlcXVlc3RzLmdldCh1cmwpJTBBaW5pdF9pbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4oQnl0ZXNJTyhyZXNwb25zZS5jb250ZW50KSkuY29udmVydCglMjJSR0IlMjIpJTBBaW5pdF9pbWFnZS50aHVtYm5haWwoKDc2OCUyQyUyMDc2OCkpJTBBaW5pdF9pbWFnZQ==",highlighted:`url = <span class="hljs-string">&quot;https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg&quot;</span>

response = requests.get(url)
init_image = Image.<span class="hljs-built_in">open</span>(BytesIO(response.content)).convert(<span class="hljs-string">&quot;RGB&quot;</span>)
init_image.thumbnail((<span class="hljs-number">768</span>, <span class="hljs-number">768</span>))
init_image`}}),v=new Il({props:{$$slots:{default:[El]},$$scope:{ctx:pe}}}),B=new re({props:{code:"cHJvbXB0JTIwJTNEJTIwJTIyZ2hpYmxpJTIwc3R5bGUlMkMlMjBhJTIwZmFudGFzeSUyMGxhbmRzY2FwZSUyMHdpdGglMjBjYXN0bGVzJTIyJTBBZ2VuZXJhdG9yJTIwJTNEJTIwdG9yY2guR2VuZXJhdG9yKGRldmljZSUzRGRldmljZSkubWFudWFsX3NlZWQoMTAyNCklMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0JTNEcHJvbXB0JTJDJTIwaW1hZ2UlM0Rpbml0X2ltYWdlJTJDJTIwc3RyZW5ndGglM0QwLjc1JTJDJTIwZ3VpZGFuY2Vfc2NhbGUlM0Q3LjUlMkMlMjBnZW5lcmF0b3IlM0RnZW5lcmF0b3IpLmltYWdlcyU1QjAlNUQlMEFpbWFnZQ==",highlighted:`prompt = <span class="hljs-string">&quot;ghibli style, a fantasy landscape with castles&quot;</span>
generator = torch.Generator(device=device).manual_seed(<span class="hljs-number">1024</span>)
image = pipe(prompt=prompt, image=init_image, strength=<span class="hljs-number">0.75</span>, guidance_scale=<span class="hljs-number">7.5</span>, generator=generator).images[<span class="hljs-number">0</span>]
image`}}),S=new re({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMExNU0Rpc2NyZXRlU2NoZWR1bGVyJTBBJTBBbG1zJTIwJTNEJTIwTE1TRGlzY3JldGVTY2hlZHVsZXIuZnJvbV9jb25maWcocGlwZS5zY2hlZHVsZXIuY29uZmlnKSUwQXBpcGUuc2NoZWR1bGVyJTIwJTNEJTIwbG1zJTBBZ2VuZXJhdG9yJTIwJTNEJTIwdG9yY2guR2VuZXJhdG9yKGRldmljZSUzRGRldmljZSkubWFudWFsX3NlZWQoMTAyNCklMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0JTNEcHJvbXB0JTJDJTIwaW1hZ2UlM0Rpbml0X2ltYWdlJTJDJTIwc3RyZW5ndGglM0QwLjc1JTJDJTIwZ3VpZGFuY2Vfc2NhbGUlM0Q3LjUlMkMlMjBnZW5lcmF0b3IlM0RnZW5lcmF0b3IpLmltYWdlcyU1QjAlNUQlMEFpbWFnZQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LMSDiscreteScheduler

lms = LMSDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.scheduler = lms
generator = torch.Generator(device=device).manual_seed(<span class="hljs-number">1024</span>)
image = pipe(prompt=prompt, image=init_image, strength=<span class="hljs-number">0.75</span>, guidance_scale=<span class="hljs-number">7.5</span>, generator=generator).images[<span class="hljs-number">0</span>]
image`}}),{c(){f=i("meta"),w=o(),d=i("h1"),b=i("a"),M=i("span"),N(h.$$.fragment),J=o(),_=i("span"),We=m("\uD14D\uC2A4\uD2B8 \uAE30\uBC18 image-to-image \uC0DD\uC131"),me=o(),Q=i("p"),Ue=m("[[Colab\uC5D0\uC11C \uC5F4\uAE30]]"),ne=o(),I=i("p"),x=i("code"),Be=m("StableDiffusionImg2ImgPipeline"),ke=m("\uC744 \uC0AC\uC6A9\uD558\uBA74 \uD14D\uC2A4\uD2B8 \uD504\uB86C\uD504\uD2B8\uC640 \uC2DC\uC791 \uC774\uBBF8\uC9C0\uB97C \uC804\uB2EC\uD558\uC5EC \uC0C8 \uC774\uBBF8\uC9C0 \uC0DD\uC131\uC758 \uC870\uAC74\uC744 \uC9C0\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),oe=o(),z=i("p"),Se=m("\uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uD544\uC694\uD55C \uB77C\uC774\uBE0C\uB7EC\uB9AC\uAC00 \uBAA8\uB450 \uC124\uCE58\uB418\uC5B4 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694:"),ce=o(),N(j.$$.fragment),fe=o(),Z=i("p"),E=i("a"),L=i("code"),Re=m("nitrosocke/Ghibli-Diffusion"),Xe=m("\uACFC \uAC19\uC740 \uC0AC\uC804\uD559\uC2B5\uB41C stable diffusion \uBAA8\uB378\uB85C "),A=i("code"),Ne=m("StableDiffusionImg2ImgPipeline"),Fe=m("\uC744 \uC0DD\uC131\uD558\uC5EC \uC2DC\uC791\uD558\uC138\uC694."),ue=o(),N($.$$.fragment),de=o(),P=i("p"),Ce=m("\uCD08\uAE30 \uC774\uBBF8\uC9C0\uB97C \uB2E4\uC6B4\uB85C\uB4DC\uD558\uACE0 \uC0AC\uC804 \uCC98\uB9AC\uD558\uC5EC \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uC804\uB2EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),he=o(),N(W.$$.fragment),be=o(),U=i("div"),O=i("img"),Je=o(),N(v.$$.fragment),ye=o(),G=i("p"),De=m("\uD504\uB86C\uD504\uD2B8\uB97C \uC815\uC758\uD558\uACE0(\uC9C0\uBE0C\uB9AC \uC2A4\uD0C0\uC77C(Ghibli-style)\uC5D0 \uB9DE\uAC8C \uC870\uC815\uB41C \uC774 \uCCB4\uD06C\uD3EC\uC778\uD2B8\uC758 \uACBD\uC6B0 \uD504\uB86C\uD504\uD2B8 \uC55E\uC5D0 "),K=i("code"),Ve=m("ghibli style"),Ye=m(" \uD1A0\uD070\uC744 \uBD99\uC5EC\uC57C \uD569\uB2C8\uB2E4) \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC2E4\uD589\uD569\uB2C8\uB2E4:"),ge=o(),N(B.$$.fragment),Me=o(),k=i("div"),ee=i("img"),Ze=o(),H=i("p"),Qe=m("\uB2E4\uB978 \uC2A4\uCF00\uC904\uB7EC\uB85C \uC2E4\uD5D8\uD558\uC5EC \uCD9C\uB825\uC5D0 \uC5B4\uB5A4 \uC601\uD5A5\uC744 \uBBF8\uCE58\uB294\uC9C0 \uD655\uC778\uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4:"),we=o(),N(S.$$.fragment),_e=o(),R=i("div"),le=i("img"),ve=o(),y=i("p"),ze=m("\uC544\uB798 \uACF5\uBC31\uC744 \uD655\uC778\uD558\uACE0 "),se=i("code"),Pe=m("strength"),He=m(" \uAC12\uC744 \uB2E4\uB974\uAC8C \uC124\uC815\uD558\uC5EC \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD574 \uBCF4\uC138\uC694. "),te=i("code"),qe=m("strength"),xe=m("\uB97C \uB0AE\uAC8C \uC124\uC815\uD558\uBA74 \uC6D0\uBCF8 \uC774\uBBF8\uC9C0\uC640 \uB354 \uC720\uC0AC\uD55C \uC774\uBBF8\uC9C0\uAC00 \uC0DD\uC131\uB418\uB294 \uAC83\uC744 \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Ge=o(),T=i("p"),Le=m("\uC790\uC720\uB86D\uAC8C \uC2A4\uCF00\uC904\uB7EC\uB97C "),ae=i("code"),Ae=m("LMSDiscreteScheduler"),Oe=m("\uB85C \uC804\uD658\uD558\uC5EC \uCD9C\uB825\uC5D0 \uC5B4\uB5A4 \uC601\uD5A5\uC744 \uBBF8\uCE58\uB294\uC9C0 \uD655\uC778\uD574 \uBCF4\uC138\uC694."),Te=o(),g=i("iframe"),this.h()},l(e){const s=Gl('[data-svelte="svelte-1phssyn"]',document.head);f=r(s,"META",{name:!0,content:!0}),s.forEach(l),w=c(e),d=r(e,"H1",{class:!0});var X=p(d);b=r(X,"A",{id:!0,class:!0,href:!0});var al=p(b);M=r(al,"SPAN",{});var il=p(M);F(h.$$.fragment,il),il.forEach(l),al.forEach(l),J=c(X),_=r(X,"SPAN",{});var rl=p(_);We=n(rl,"\uD14D\uC2A4\uD2B8 \uAE30\uBC18 image-to-image \uC0DD\uC131"),rl.forEach(l),X.forEach(l),me=c(e),Q=r(e,"P",{});var pl=p(Q);Ue=n(pl,"[[Colab\uC5D0\uC11C \uC5F4\uAE30]]"),pl.forEach(l),ne=c(e),I=r(e,"P",{});var Ke=p(I);x=r(Ke,"CODE",{});var ml=p(x);Be=n(ml,"StableDiffusionImg2ImgPipeline"),ml.forEach(l),ke=n(Ke,"\uC744 \uC0AC\uC6A9\uD558\uBA74 \uD14D\uC2A4\uD2B8 \uD504\uB86C\uD504\uD2B8\uC640 \uC2DC\uC791 \uC774\uBBF8\uC9C0\uB97C \uC804\uB2EC\uD558\uC5EC \uC0C8 \uC774\uBBF8\uC9C0 \uC0DD\uC131\uC758 \uC870\uAC74\uC744 \uC9C0\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Ke.forEach(l),oe=c(e),z=r(e,"P",{});var nl=p(z);Se=n(nl,"\uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uD544\uC694\uD55C \uB77C\uC774\uBE0C\uB7EC\uB9AC\uAC00 \uBAA8\uB450 \uC124\uCE58\uB418\uC5B4 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694:"),nl.forEach(l),ce=c(e),F(j.$$.fragment,e),fe=c(e),Z=r(e,"P",{});var ie=p(Z);E=r(ie,"A",{href:!0,rel:!0});var ol=p(E);L=r(ol,"CODE",{});var cl=p(L);Re=n(cl,"nitrosocke/Ghibli-Diffusion"),cl.forEach(l),ol.forEach(l),Xe=n(ie,"\uACFC \uAC19\uC740 \uC0AC\uC804\uD559\uC2B5\uB41C stable diffusion \uBAA8\uB378\uB85C "),A=r(ie,"CODE",{});var fl=p(A);Ne=n(fl,"StableDiffusionImg2ImgPipeline"),fl.forEach(l),Fe=n(ie,"\uC744 \uC0DD\uC131\uD558\uC5EC \uC2DC\uC791\uD558\uC138\uC694."),ie.forEach(l),ue=c(e),F($.$$.fragment,e),de=c(e),P=r(e,"P",{});var ul=p(P);Ce=n(ul,"\uCD08\uAE30 \uC774\uBBF8\uC9C0\uB97C \uB2E4\uC6B4\uB85C\uB4DC\uD558\uACE0 \uC0AC\uC804 \uCC98\uB9AC\uD558\uC5EC \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uC804\uB2EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),ul.forEach(l),he=c(e),F(W.$$.fragment,e),be=c(e),U=r(e,"DIV",{class:!0});var dl=p(U);O=r(dl,"IMG",{src:!0}),dl.forEach(l),Je=c(e),F(v.$$.fragment,e),ye=c(e),G=r(e,"P",{});var je=p(G);De=n(je,"\uD504\uB86C\uD504\uD2B8\uB97C \uC815\uC758\uD558\uACE0(\uC9C0\uBE0C\uB9AC \uC2A4\uD0C0\uC77C(Ghibli-style)\uC5D0 \uB9DE\uAC8C \uC870\uC815\uB41C \uC774 \uCCB4\uD06C\uD3EC\uC778\uD2B8\uC758 \uACBD\uC6B0 \uD504\uB86C\uD504\uD2B8 \uC55E\uC5D0 "),K=r(je,"CODE",{});var hl=p(K);Ve=n(hl,"ghibli style"),hl.forEach(l),Ye=n(je," \uD1A0\uD070\uC744 \uBD99\uC5EC\uC57C \uD569\uB2C8\uB2E4) \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC2E4\uD589\uD569\uB2C8\uB2E4:"),je.forEach(l),ge=c(e),F(B.$$.fragment,e),Me=c(e),k=r(e,"DIV",{class:!0});var bl=p(k);ee=r(bl,"IMG",{src:!0}),bl.forEach(l),Ze=c(e),H=r(e,"P",{});var Jl=p(H);Qe=n(Jl,"\uB2E4\uB978 \uC2A4\uCF00\uC904\uB7EC\uB85C \uC2E4\uD5D8\uD558\uC5EC \uCD9C\uB825\uC5D0 \uC5B4\uB5A4 \uC601\uD5A5\uC744 \uBBF8\uCE58\uB294\uC9C0 \uD655\uC778\uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4:"),Jl.forEach(l),we=c(e),F(S.$$.fragment,e),_e=c(e),R=r(e,"DIV",{class:!0});var yl=p(R);le=r(yl,"IMG",{src:!0}),yl.forEach(l),ve=c(e),y=r(e,"P",{});var q=p(y);ze=n(q,"\uC544\uB798 \uACF5\uBC31\uC744 \uD655\uC778\uD558\uACE0 "),se=r(q,"CODE",{});var gl=p(se);Pe=n(gl,"strength"),gl.forEach(l),He=n(q," \uAC12\uC744 \uB2E4\uB974\uAC8C \uC124\uC815\uD558\uC5EC \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD574 \uBCF4\uC138\uC694. "),te=r(q,"CODE",{});var Ml=p(te);qe=n(Ml,"strength"),Ml.forEach(l),xe=n(q,"\uB97C \uB0AE\uAC8C \uC124\uC815\uD558\uBA74 \uC6D0\uBCF8 \uC774\uBBF8\uC9C0\uC640 \uB354 \uC720\uC0AC\uD55C \uC774\uBBF8\uC9C0\uAC00 \uC0DD\uC131\uB418\uB294 \uAC83\uC744 \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),q.forEach(l),Ge=c(e),T=r(e,"P",{});var Ee=p(T);Le=n(Ee,"\uC790\uC720\uB86D\uAC8C \uC2A4\uCF00\uC904\uB7EC\uB97C "),ae=r(Ee,"CODE",{});var Zl=p(ae);Ae=n(Zl,"LMSDiscreteScheduler"),Zl.forEach(l),Oe=n(Ee,"\uB85C \uC804\uD658\uD558\uC5EC \uCD9C\uB825\uC5D0 \uC5B4\uB5A4 \uC601\uD5A5\uC744 \uBBF8\uCE58\uB294\uC9C0 \uD655\uC778\uD574 \uBCF4\uC138\uC694."),Ee.forEach(l),Te=c(e),g=r(e,"IFRAME",{src:!0,frameborder:!0,width:!0,height:!0}),p(g).forEach(l),this.h()},h(){u(f,"name","hf:doc:metadata"),u(f,"content",JSON.stringify(Wl)),u(b,"id","imagetoimage"),u(b,"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"),u(b,"href","#imagetoimage"),u(d,"class","relative group"),u(E,"href","https://huggingface.co/nitrosocke/Ghibli-Diffusion"),u(E,"rel","nofollow"),$e(O.src,el="https://huggingface.co/datasets/YiYiXu/test-doc-assets/resolve/main/image_2_image_using_diffusers_cell_8_output_0.jpeg")||u(O,"src",el),u(U,"class","flex justify-center"),$e(ee.src,ll="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/ghibli-castles.png")||u(ee,"src",ll),u(k,"class","flex justify-center"),$e(le.src,sl="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/lms-ghibli.png")||u(le,"src",sl),u(R,"class","flex justify-center"),$e(g.src,tl="https://stevhliu-ghibli-img2img.hf.space")||u(g,"src",tl),u(g,"frameborder","0"),u(g,"width","850"),u(g,"height","500")},m(e,s){t(document.head,f),a(e,w,s),a(e,d,s),t(d,b),t(b,M),C(h,M,null),t(d,J),t(d,_),t(_,We),a(e,me,s),a(e,Q,s),t(Q,Ue),a(e,ne,s),a(e,I,s),t(I,x),t(x,Be),t(I,ke),a(e,oe,s),a(e,z,s),t(z,Se),a(e,ce,s),C(j,e,s),a(e,fe,s),a(e,Z,s),t(Z,E),t(E,L),t(L,Re),t(Z,Xe),t(Z,A),t(A,Ne),t(Z,Fe),a(e,ue,s),C($,e,s),a(e,de,s),a(e,P,s),t(P,Ce),a(e,he,s),C(W,e,s),a(e,be,s),a(e,U,s),t(U,O),a(e,Je,s),C(v,e,s),a(e,ye,s),a(e,G,s),t(G,De),t(G,K),t(K,Ve),t(G,Ye),a(e,ge,s),C(B,e,s),a(e,Me,s),a(e,k,s),t(k,ee),a(e,Ze,s),a(e,H,s),t(H,Qe),a(e,we,s),C(S,e,s),a(e,_e,s),a(e,R,s),t(R,le),a(e,ve,s),a(e,y,s),t(y,ze),t(y,se),t(se,Pe),t(y,He),t(y,te),t(te,qe),t(y,xe),a(e,Ge,s),a(e,T,s),t(T,Le),t(T,ae),t(ae,Ae),t(T,Oe),a(e,Te,s),a(e,g,s),Ie=!0},p(e,[s]){const X={};s&2&&(X.$$scope={dirty:s,ctx:e}),v.$set(X)},i(e){Ie||(D(h.$$.fragment,e),D(j.$$.fragment,e),D($.$$.fragment,e),D(W.$$.fragment,e),D(v.$$.fragment,e),D(B.$$.fragment,e),D(S.$$.fragment,e),Ie=!0)},o(e){V(h.$$.fragment,e),V(j.$$.fragment,e),V($.$$.fragment,e),V(W.$$.fragment,e),V(v.$$.fragment,e),V(B.$$.fragment,e),V(S.$$.fragment,e),Ie=!1},d(e){l(f),e&&l(w),e&&l(d),Y(h),e&&l(me),e&&l(Q),e&&l(ne),e&&l(I),e&&l(oe),e&&l(z),e&&l(ce),Y(j,e),e&&l(fe),e&&l(Z),e&&l(ue),Y($,e),e&&l(de),e&&l(P),e&&l(he),Y(W,e),e&&l(be),e&&l(U),e&&l(Je),Y(v,e),e&&l(ye),e&&l(G),e&&l(ge),Y(B,e),e&&l(Me),e&&l(k),e&&l(Ze),e&&l(H),e&&l(we),Y(S,e),e&&l(_e),e&&l(R),e&&l(ve),e&&l(y),e&&l(Ge),e&&l(T),e&&l(Te),e&&l(g)}}}const Wl={local:"imagetoimage",title:"\uD14D\uC2A4\uD2B8 \uAE30\uBC18 image-to-image \uC0DD\uC131"};function Ul(pe){return Tl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Xl extends wl{constructor(f){super();_l(this,f,Ul,$l,vl,{})}}export{Xl as default,Wl as metadata};
