import{S as Ms,i as ws,s as Zs,e as a,k as n,w as $,t as p,M as _s,c as o,d as s,m as c,a as r,x as I,h as m,b as u,N as Ee,G as t,g as i,y as j,q as E,o as k,B as W,v as vs}from"../../chunks/vendor-hf-doc-builder.js";import{T as Ts}from"../../chunks/Tip-hf-doc-builder.js";import{I as Gs}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as oe}from"../../chunks/CodeBlock-hf-doc-builder.js";import{D as $s}from"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function Is(re){let f,Z,b,g,M;return{c(){f=a("p"),Z=p("\u{1F4A1} "),b=a("code"),g=p("strength"),M=p("\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(d){f=o(d,"P",{});var h=r(f);Z=m(h,"\u{1F4A1} "),b=o(h,"CODE",{});var _=r(b);g=m(_,"strength"),_.forEach(s),M=m(h,"\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."),h.forEach(s)},m(d,h){i(d,f,h),t(f,Z),t(f,b),t(b,g),t(f,M)},d(d){d&&s(f)}}}function js(re){let f,Z,b,g,M,d,h,_,ke,pe,U,me,B,q,We,Ue,ne,z,Be,ce,S,fe,w,N,L,Se,Ne,A,Re,Xe,ue,R,be,P,Fe,de,X,ge,F,O,Ke,he,v,ye,T,De,K,Ve,Ye,Je,D,Me,V,ee,es,we,x,Ce,Ze,Y,_e,C,se,ss,ve,y,Qe,le,ze,Pe,te,xe,He,Te,G,qe,ie,Le,Ae,Ge,J,ls,$e;return d=new Gs({}),U=new $s({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Mixed",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/ko/img2img.ipynb"},{label:"PyTorch",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/ko/pytorch/img2img.ipynb"},{label:"TensorFlow",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/ko/tensorflow/img2img.ipynb"},{label:"Mixed",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/ko/img2img.ipynb"},{label:"PyTorch",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/ko/pytorch/img2img.ipynb"},{label:"TensorFlow",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/ko/tensorflow/img2img.ipynb"}]}}),S=new oe({props:{code:"IXBpcCUyMGluc3RhbGwlMjBkaWZmdXNlcnMlMjB0cmFuc2Zvcm1lcnMlMjBmdGZ5JTIwYWNjZWxlcmF0ZQ==",highlighted:"!pip install diffusers transformers ftfy accelerate"}}),R=new oe({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
)`}}),X=new oe({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 Ts({props:{$$slots:{default:[Is]},$$scope:{ctx:re}}}),D=new oe({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`}}),Y=new oe({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=a("meta"),Z=n(),b=a("h1"),g=a("a"),M=a("span"),$(d.$$.fragment),h=n(),_=a("span"),ke=p("\uD14D\uC2A4\uD2B8 \uAE30\uBC18 image-to-image \uC0DD\uC131"),pe=n(),$(U.$$.fragment),me=n(),B=a("p"),q=a("code"),We=p("StableDiffusionImg2ImgPipeline"),Ue=p("\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."),ne=n(),z=a("p"),Be=p("\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=n(),$(S.$$.fragment),fe=n(),w=a("p"),N=a("a"),L=a("code"),Se=p("nitrosocke/Ghibli-Diffusion"),Ne=p("\uACFC \uAC19\uC740 \uC0AC\uC804\uD559\uC2B5\uB41C stable diffusion \uBAA8\uB378\uB85C "),A=a("code"),Re=p("StableDiffusionImg2ImgPipeline"),Xe=p("\uC744 \uC0DD\uC131\uD558\uC5EC \uC2DC\uC791\uD558\uC138\uC694."),ue=n(),$(R.$$.fragment),be=n(),P=a("p"),Fe=p("\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:"),de=n(),$(X.$$.fragment),ge=n(),F=a("div"),O=a("img"),he=n(),$(v.$$.fragment),ye=n(),T=a("p"),De=p("\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=a("code"),Ve=p("ghibli style"),Ye=p(" \uD1A0\uD070\uC744 \uBD99\uC5EC\uC57C \uD569\uB2C8\uB2E4) \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC2E4\uD589\uD569\uB2C8\uB2E4:"),Je=n(),$(D.$$.fragment),Me=n(),V=a("div"),ee=a("img"),we=n(),x=a("p"),Ce=p("\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:"),Ze=n(),$(Y.$$.fragment),_e=n(),C=a("div"),se=a("img"),ve=n(),y=a("p"),Qe=p("\uC544\uB798 \uACF5\uBC31\uC744 \uD655\uC778\uD558\uACE0 "),le=a("code"),ze=p("strength"),Pe=p(" \uAC12\uC744 \uB2E4\uB974\uAC8C \uC124\uC815\uD558\uC5EC \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD574 \uBCF4\uC138\uC694. "),te=a("code"),xe=p("strength"),He=p("\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."),Te=n(),G=a("p"),qe=p("\uC790\uC720\uB86D\uAC8C \uC2A4\uCF00\uC904\uB7EC\uB97C "),ie=a("code"),Le=p("LMSDiscreteScheduler"),Ae=p("\uB85C \uC804\uD658\uD558\uC5EC \uCD9C\uB825\uC5D0 \uC5B4\uB5A4 \uC601\uD5A5\uC744 \uBBF8\uCE58\uB294\uC9C0 \uD655\uC778\uD574 \uBCF4\uC138\uC694."),Ge=n(),J=a("iframe"),this.h()},l(e){const l=_s('[data-svelte="svelte-1phssyn"]',document.head);f=o(l,"META",{name:!0,content:!0}),l.forEach(s),Z=c(e),b=o(e,"H1",{class:!0});var Q=r(b);g=o(Q,"A",{id:!0,class:!0,href:!0});var ts=r(g);M=o(ts,"SPAN",{});var is=r(M);I(d.$$.fragment,is),is.forEach(s),ts.forEach(s),h=c(Q),_=o(Q,"SPAN",{});var as=r(_);ke=m(as,"\uD14D\uC2A4\uD2B8 \uAE30\uBC18 image-to-image \uC0DD\uC131"),as.forEach(s),Q.forEach(s),pe=c(e),I(U.$$.fragment,e),me=c(e),B=o(e,"P",{});var Oe=r(B);q=o(Oe,"CODE",{});var os=r(q);We=m(os,"StableDiffusionImg2ImgPipeline"),os.forEach(s),Ue=m(Oe,"\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.forEach(s),ne=c(e),z=o(e,"P",{});var rs=r(z);Be=m(rs,"\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:"),rs.forEach(s),ce=c(e),I(S.$$.fragment,e),fe=c(e),w=o(e,"P",{});var ae=r(w);N=o(ae,"A",{href:!0,rel:!0});var ps=r(N);L=o(ps,"CODE",{});var ms=r(L);Se=m(ms,"nitrosocke/Ghibli-Diffusion"),ms.forEach(s),ps.forEach(s),Ne=m(ae,"\uACFC \uAC19\uC740 \uC0AC\uC804\uD559\uC2B5\uB41C stable diffusion \uBAA8\uB378\uB85C "),A=o(ae,"CODE",{});var ns=r(A);Re=m(ns,"StableDiffusionImg2ImgPipeline"),ns.forEach(s),Xe=m(ae,"\uC744 \uC0DD\uC131\uD558\uC5EC \uC2DC\uC791\uD558\uC138\uC694."),ae.forEach(s),ue=c(e),I(R.$$.fragment,e),be=c(e),P=o(e,"P",{});var cs=r(P);Fe=m(cs,"\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:"),cs.forEach(s),de=c(e),I(X.$$.fragment,e),ge=c(e),F=o(e,"DIV",{class:!0});var fs=r(F);O=o(fs,"IMG",{src:!0}),fs.forEach(s),he=c(e),I(v.$$.fragment,e),ye=c(e),T=o(e,"P",{});var Ie=r(T);De=m(Ie,"\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=o(Ie,"CODE",{});var us=r(K);Ve=m(us,"ghibli style"),us.forEach(s),Ye=m(Ie," \uD1A0\uD070\uC744 \uBD99\uC5EC\uC57C \uD569\uB2C8\uB2E4) \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC2E4\uD589\uD569\uB2C8\uB2E4:"),Ie.forEach(s),Je=c(e),I(D.$$.fragment,e),Me=c(e),V=o(e,"DIV",{class:!0});var bs=r(V);ee=o(bs,"IMG",{src:!0}),bs.forEach(s),we=c(e),x=o(e,"P",{});var ds=r(x);Ce=m(ds,"\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:"),ds.forEach(s),Ze=c(e),I(Y.$$.fragment,e),_e=c(e),C=o(e,"DIV",{class:!0});var gs=r(C);se=o(gs,"IMG",{src:!0}),gs.forEach(s),ve=c(e),y=o(e,"P",{});var H=r(y);Qe=m(H,"\uC544\uB798 \uACF5\uBC31\uC744 \uD655\uC778\uD558\uACE0 "),le=o(H,"CODE",{});var hs=r(le);ze=m(hs,"strength"),hs.forEach(s),Pe=m(H," \uAC12\uC744 \uB2E4\uB974\uAC8C \uC124\uC815\uD558\uC5EC \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD574 \uBCF4\uC138\uC694. "),te=o(H,"CODE",{});var ys=r(te);xe=m(ys,"strength"),ys.forEach(s),He=m(H,"\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."),H.forEach(s),Te=c(e),G=o(e,"P",{});var je=r(G);qe=m(je,"\uC790\uC720\uB86D\uAC8C \uC2A4\uCF00\uC904\uB7EC\uB97C "),ie=o(je,"CODE",{});var Js=r(ie);Le=m(Js,"LMSDiscreteScheduler"),Js.forEach(s),Ae=m(je,"\uB85C \uC804\uD658\uD558\uC5EC \uCD9C\uB825\uC5D0 \uC5B4\uB5A4 \uC601\uD5A5\uC744 \uBBF8\uCE58\uB294\uC9C0 \uD655\uC778\uD574 \uBCF4\uC138\uC694."),je.forEach(s),Ge=c(e),J=o(e,"IFRAME",{src:!0,frameborder:!0,width:!0,height:!0}),r(J).forEach(s),this.h()},h(){u(f,"name","hf:doc:metadata"),u(f,"content",JSON.stringify(Es)),u(g,"id","imagetoimage"),u(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"),u(g,"href","#imagetoimage"),u(b,"class","relative group"),u(N,"href","https://huggingface.co/nitrosocke/Ghibli-Diffusion"),u(N,"rel","nofollow"),Ee(O.src,Ke="https://huggingface.co/datasets/YiYiXu/test-doc-assets/resolve/main/image_2_image_using_diffusers_cell_8_output_0.jpeg")||u(O,"src",Ke),u(F,"class","flex justify-center"),Ee(ee.src,es="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/ghibli-castles.png")||u(ee,"src",es),u(V,"class","flex justify-center"),Ee(se.src,ss="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/lms-ghibli.png")||u(se,"src",ss),u(C,"class","flex justify-center"),Ee(J.src,ls="https://stevhliu-ghibli-img2img.hf.space")||u(J,"src",ls),u(J,"frameborder","0"),u(J,"width","850"),u(J,"height","500")},m(e,l){t(document.head,f),i(e,Z,l),i(e,b,l),t(b,g),t(g,M),j(d,M,null),t(b,h),t(b,_),t(_,ke),i(e,pe,l),j(U,e,l),i(e,me,l),i(e,B,l),t(B,q),t(q,We),t(B,Ue),i(e,ne,l),i(e,z,l),t(z,Be),i(e,ce,l),j(S,e,l),i(e,fe,l),i(e,w,l),t(w,N),t(N,L),t(L,Se),t(w,Ne),t(w,A),t(A,Re),t(w,Xe),i(e,ue,l),j(R,e,l),i(e,be,l),i(e,P,l),t(P,Fe),i(e,de,l),j(X,e,l),i(e,ge,l),i(e,F,l),t(F,O),i(e,he,l),j(v,e,l),i(e,ye,l),i(e,T,l),t(T,De),t(T,K),t(K,Ve),t(T,Ye),i(e,Je,l),j(D,e,l),i(e,Me,l),i(e,V,l),t(V,ee),i(e,we,l),i(e,x,l),t(x,Ce),i(e,Ze,l),j(Y,e,l),i(e,_e,l),i(e,C,l),t(C,se),i(e,ve,l),i(e,y,l),t(y,Qe),t(y,le),t(le,ze),t(y,Pe),t(y,te),t(te,xe),t(y,He),i(e,Te,l),i(e,G,l),t(G,qe),t(G,ie),t(ie,Le),t(G,Ae),i(e,Ge,l),i(e,J,l),$e=!0},p(e,[l]){const Q={};l&2&&(Q.$$scope={dirty:l,ctx:e}),v.$set(Q)},i(e){$e||(E(d.$$.fragment,e),E(U.$$.fragment,e),E(S.$$.fragment,e),E(R.$$.fragment,e),E(X.$$.fragment,e),E(v.$$.fragment,e),E(D.$$.fragment,e),E(Y.$$.fragment,e),$e=!0)},o(e){k(d.$$.fragment,e),k(U.$$.fragment,e),k(S.$$.fragment,e),k(R.$$.fragment,e),k(X.$$.fragment,e),k(v.$$.fragment,e),k(D.$$.fragment,e),k(Y.$$.fragment,e),$e=!1},d(e){s(f),e&&s(Z),e&&s(b),W(d),e&&s(pe),W(U,e),e&&s(me),e&&s(B),e&&s(ne),e&&s(z),e&&s(ce),W(S,e),e&&s(fe),e&&s(w),e&&s(ue),W(R,e),e&&s(be),e&&s(P),e&&s(de),W(X,e),e&&s(ge),e&&s(F),e&&s(he),W(v,e),e&&s(ye),e&&s(T),e&&s(Je),W(D,e),e&&s(Me),e&&s(V),e&&s(we),e&&s(x),e&&s(Ze),W(Y,e),e&&s(_e),e&&s(C),e&&s(ve),e&&s(y),e&&s(Te),e&&s(G),e&&s(Ge),e&&s(J)}}}const Es={local:"imagetoimage",title:"\uD14D\uC2A4\uD2B8 \uAE30\uBC18 image-to-image \uC0DD\uC131"};function ks(re){return vs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Rs extends Ms{constructor(f){super();ws(this,f,ks,js,Zs,{})}}export{Rs as default,Es as metadata};
