import{S as Ft,i as At,s as Qt,e as i,k as n,t as o,w as v,M as qt,c as f,d as l,m,a,h as p,x as w,b as u,N as Ht,G as t,g as r,y,L as Ot,q as E,o as J,B as M,v as Kt}from"../../chunks/vendor-hf-doc-builder.js";import{I as Lt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as ee}from"../../chunks/CodeBlock-hf-doc-builder.js";import{D as es}from"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function ls(bt){let h,Me,X,nl,$e,N,Te,le,ml,Ze,d,ul,j,cl,bl,W,dl,hl,ke,_,$,ne,D,_l,me,vl,Ue,c,wl,ue,yl,El,P,Jl,Ml,x,$l,Tl,ce,Zl,kl,S,Ul,Gl,R,Vl,gl,Ge,Y,z,Cl,Il,Ve,T,Bl,be,Xl,Nl,ge,H,Ce,te,jl,Ie,se,oe,dt,Be,pe,Wl,Xe,Z,Dl,de,Pl,xl,Ne,F,je,k,Sl,he,Rl,Yl,We,A,De,U,zl,_e,Hl,Fl,Pe,Q,xe,G,Al,ve,Ql,ql,Se,q,Re,V,Ol,we,Kl,Ll,Ye,O,ze,re,et,He,ie,fe,ht,Fe,g,lt,ye,tt,st,Ae,C,ot,Ee,pt,rt,Qe,I,it,Je,ft,at,qe,K,Oe,B,nt,L,mt,ut,Ke;return N=new es({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/weighted_prompts.ipynb"},{label:"PyTorch",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/ko/pytorch/weighted_prompts.ipynb"},{label:"TensorFlow",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/ko/tensorflow/weighted_prompts.ipynb"},{label:"Mixed",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/ko/weighted_prompts.ipynb"},{label:"PyTorch",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/ko/pytorch/weighted_prompts.ipynb"},{label:"TensorFlow",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/ko/tensorflow/weighted_prompts.ipynb"}]}}),D=new Lt({}),H=new ee({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTJDJTIwVW5pUENNdWx0aXN0ZXBTY2hlZHVsZXIlMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMkNvbXBWaXMlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTQlMjIpJTBBcGlwZS5zY2hlZHVsZXIlMjAlM0QlMjBVbmlQQ011bHRpc3RlcFNjaGVkdWxlci5mcm9tX2NvbmZpZyhwaXBlLnNjaGVkdWxlci5jb25maWcpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyYSUyMHJlZCUyMGNhdCUyMHBsYXlpbmclMjB3aXRoJTIwYSUyMGJhbGwlMjIlMEElMEFnZW5lcmF0b3IlMjAlM0QlMjB0b3JjaC5HZW5lcmF0b3IoZGV2aWNlJTNEJTIyY3B1JTIyKS5tYW51YWxfc2VlZCgzMyklMEElMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0JTJDJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yJTJDJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUzRDIwKS5pbWFnZXMlNUIwJTVEJTBBaW1hZ2U=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline, UniPCMultistepScheduler

pipe = StableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>)
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)

prompt = <span class="hljs-string">&quot;a red cat playing with a ball&quot;</span>

generator = torch.Generator(device=<span class="hljs-string">&quot;cpu&quot;</span>).manual_seed(<span class="hljs-number">33</span>)

image = pipe(prompt, generator=generator, num_inference_steps=<span class="hljs-number">20</span>).images[<span class="hljs-number">0</span>]
image`}}),F=new ee({props:{code:"cGlwJTIwaW5zdGFsbCUyMGNvbXBlbA==",highlighted:'pip <span class="hljs-keyword">install</span> compel'}}),A=new ee({props:{code:"ZnJvbSUyMGNvbXBlbCUyMGltcG9ydCUyMENvbXBlbCUwQSUwQWNvbXBlbF9wcm9jJTIwJTNEJTIwQ29tcGVsKHRva2VuaXplciUzRHBpcGUudG9rZW5pemVyJTJDJTIwdGV4dF9lbmNvZGVyJTNEcGlwZS50ZXh0X2VuY29kZXIp",highlighted:`<span class="hljs-keyword">from</span> compel <span class="hljs-keyword">import</span> Compel

compel_proc = Compel(tokenizer=pipe.tokenizer, text_encoder=pipe.text_encoder)`}}),Q=new ee({props:{code:"cHJvbXB0JTIwJTNEJTIwJTIyYSUyMHJlZCUyMGNhdCUyMHBsYXlpbmclMjB3aXRoJTIwYSUyMGJhbGwlMkIlMkIlMjI=",highlighted:'prompt = <span class="hljs-string">&quot;a red cat playing with a ball++&quot;</span>'}}),q=new ee({props:{code:"cHJvbXB0X2VtYmVkcyUyMCUzRCUyMGNvbXBlbF9wcm9jKHByb21wdCk=",highlighted:"prompt_embeds = compel_proc(prompt)"}}),O=new ee({props:{code:"Z2VuZXJhdG9yJTIwJTNEJTIwdG9yY2guR2VuZXJhdG9yKGRldmljZSUzRCUyMmNwdSUyMikubWFudWFsX3NlZWQoMzMpJTBBJTBBaW1hZ2VzJTIwJTNEJTIwcGlwZShwcm9tcHRfZW1iZWRzJTNEcHJvbXB0X2VtYmVkcyUyQyUyMGdlbmVyYXRvciUzRGdlbmVyYXRvciUyQyUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QyMCkuaW1hZ2VzJTVCMCU1RCUwQWltYWdl",highlighted:`generator = torch.Generator(device=<span class="hljs-string">&quot;cpu&quot;</span>).manual_seed(<span class="hljs-number">33</span>)

images = pipe(prompt_embeds=prompt_embeds, generator=generator, num_inference_steps=<span class="hljs-number">20</span>).images[<span class="hljs-number">0</span>]
image`}}),K=new ee({props:{code:"dGV4dHVhbF9pbnZlcnNpb25fbWFuYWdlciUyMCUzRCUyMERpZmZ1c2Vyc1RleHR1YWxJbnZlcnNpb25NYW5hZ2VyKHBpcGUpJTBBY29tcGVsJTIwJTNEJTIwQ29tcGVsKCUwQSUyMCUyMCUyMCUyMHRva2VuaXplciUzRHBpcGUudG9rZW5pemVyJTJDJTBBJTIwJTIwJTIwJTIwdGV4dF9lbmNvZGVyJTNEcGlwZS50ZXh0X2VuY29kZXIlMkMlMEElMjAlMjAlMjAlMjB0ZXh0dWFsX2ludmVyc2lvbl9tYW5hZ2VyJTNEdGV4dHVhbF9pbnZlcnNpb25fbWFuYWdlcik=",highlighted:`<span class="hljs-attr">textual_inversion_manager</span> = DiffusersTextualInversionManager(pipe)
<span class="hljs-attr">compel</span> = Compel(
    <span class="hljs-attr">tokenizer</span>=pipe.tokenizer,
    <span class="hljs-attr">text_encoder</span>=pipe.text_encoder,
    <span class="hljs-attr">textual_inversion_manager</span>=textual_inversion_manager)`}}),{c(){h=i("meta"),Me=n(),X=i("h1"),nl=o("\uD504\uB86C\uD504\uD2B8\uC5D0 \uAC00\uC911\uCE58 \uBD80\uC5EC\uD558\uAE30"),$e=n(),v(N.$$.fragment),Te=n(),le=i("p"),ml=o(`\uD14D\uC2A4\uD2B8 \uAC00\uC774\uB4DC \uAE30\uBC18\uC758 diffusion \uBAA8\uB378\uC740 \uC8FC\uC5B4\uC9C4 \uD14D\uC2A4\uD2B8 \uD504\uB86C\uD504\uD2B8\uB97C \uAE30\uBC18\uC73C\uB85C \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4.
\uD14D\uC2A4\uD2B8 \uD504\uB86C\uD504\uD2B8\uC5D0\uB294 \uBAA8\uB378\uC774 \uC0DD\uC131\uD574\uC57C \uD558\uB294 \uC5EC\uB7EC \uAC1C\uB150\uC774 \uD3EC\uD568\uB420 \uC218 \uC788\uC73C\uBA70 \uD504\uB86C\uD504\uD2B8\uC758 \uD2B9\uC815 \uBD80\uBD84\uC5D0 \uAC00\uC911\uCE58\uB97C \uBD80\uC5EC\uD558\uB294 \uAC83\uC774 \uBC14\uB78C\uC9C1\uD55C \uACBD\uC6B0\uAC00 \uB9CE\uC2B5\uB2C8\uB2E4.`),Ze=n(),d=i("p"),ul=o(`Diffusion \uBAA8\uB378\uC740 \uBB38\uB9E5\uD654\uB41C \uD14D\uC2A4\uD2B8 \uC784\uBCA0\uB529\uC73C\uB85C diffusion \uBAA8\uB378\uC758 cross attention \uB808\uC774\uC5B4\uB97C \uC870\uC808\uD568\uC73C\uB85C\uC368 \uC791\uB3D9\uD569\uB2C8\uB2E4.
(`),j=i("a"),cl=o("\uB354 \uB9CE\uC740 \uC815\uBCF4\uB97C \uC704\uD55C Stable Diffusion Guide"),bl=o(`\uB97C \uCC38\uACE0\uD558\uC138\uC694).
\uB530\uB77C\uC11C \uD504\uB86C\uD504\uD2B8\uC758 \uD2B9\uC815 \uBD80\uBD84\uC744 \uAC15\uC870\uD558\uB294(\uB610\uB294 \uAC15\uC870\uD558\uC9C0 \uC54A\uB294) \uAC04\uB2E8\uD55C \uBC29\uBC95\uC740 \uD504\uB86C\uD504\uD2B8\uC758 \uAD00\uB828 \uBD80\uBD84\uC5D0 \uD574\uB2F9\uD558\uB294 \uD14D\uC2A4\uD2B8 \uC784\uBCA0\uB529 \uBCA1\uD130\uC758 \uD06C\uAE30\uB97C \uB298\uB9AC\uAC70\uB098 \uC904\uC774\uB294 \uAC83\uC785\uB2C8\uB2E4.
\uC774\uAC83\uC740 \u201C\uD504\uB86C\uD504\uD2B8 \uAC00\uC911\uCE58 \uBD80\uC5EC\u201D \uB77C\uACE0 \uD558\uBA70, \uCEE4\uBBA4\uB2C8\uD2F0\uC5D0\uC11C \uAC00\uC7A5 \uC694\uAD6C\uD558\uB294 \uAE30\uB2A5\uC785\uB2C8\uB2E4.(`),W=i("a"),dl=o("\uC774\uACF3"),hl=o("\uC758 issue\uB97C \uBCF4\uC138\uC694 )."),ke=n(),_=i("h2"),$=i("a"),ne=i("span"),v(D.$$.fragment),_l=n(),me=i("span"),vl=o("Diffusers\uC5D0\uC11C \uD504\uB86C\uD504\uD2B8 \uAC00\uC911\uCE58 \uBD80\uC5EC\uD558\uB294 \uBC29\uBC95"),Ue=n(),c=i("p"),wl=o("\uC6B0\uB9AC\uB294 "),ue=i("code"),yl=o("diffusers"),El=o(`\uC758 \uC5ED\uD560\uC774 \uB2E4\uB978 \uD504\uB85C\uC81D\uD2B8\uB97C \uAC00\uB2A5\uD558\uAC8C \uD558\uB294 \uD544\uC218\uC801\uC778 \uAE30\uB2A5\uC744 \uC81C\uACF5\uD558\uB294 toolbex\uB77C\uACE0 \uC0DD\uAC01\uD569\uB2C8\uB2E4.
`),P=i("a"),Jl=o("InvokeAI"),Ml=o(" \uB098 "),x=i("a"),$l=o("diffuzers"),Tl=o(` \uAC19\uC740 \uAC15\uB825\uD55C UI\uB97C \uAD6C\uCD95\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uD504\uB86C\uD504\uD2B8\uB97C \uC870\uC791\uD558\uB294 \uBC29\uBC95\uC744 \uC9C0\uC6D0\uD558\uAE30 \uC704\uD574, `),ce=i("code"),Zl=o("diffusers"),kl=o(` \uB294
`),S=i("a"),Ul=o("StableDiffusionPipeline"),Gl=o(`\uC640 \uAC19\uC740
\uB9CE\uC740 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 `),R=i("a"),Vl=o("prompt_embeds"),gl=o(`
\uC778\uC218\uB97C \uB178\uCD9C\uC2DC\uCF1C, \u201Cprompt-weighted\u201D/\uCD95\uCC99\uB41C \uD14D\uC2A4\uD2B8 \uC784\uBCA0\uB529\uC744 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uBC14\uB85C \uC804\uB2EC\uD560 \uC218 \uC788\uAC8C \uD569\uB2C8\uB2E4.`),Ge=n(),Y=i("p"),z=i("a"),Cl=o("Compel \uB77C\uC774\uBE0C\uB7EC\uB9AC"),Il=o(`\uB294 \uD504\uB86C\uD504\uD2B8\uC758 \uC77C\uBD80\uB97C \uAC15\uC870\uD558\uAC70\uB098 \uAC15\uC870\uD558\uC9C0 \uC54A\uC744 \uC218 \uC788\uB294 \uC26C\uC6B4 \uBC29\uBC95\uC744 \uC81C\uACF5\uD569\uB2C8\uB2E4.
\uC784\uBCA0\uB529\uC744 \uC9C1\uC811 \uC900\uBE44\uD558\uB294 \uAC83 \uB300\uC2E0 \uC774 \uBC29\uBC95\uC744 \uC0AC\uC6A9\uD558\uB294 \uAC83\uC744 \uAC15\uB825\uD788 \uCD94\uCC9C\uD569\uB2C8\uB2E4.`),Ve=n(),T=i("p"),Bl=o(`\uAC04\uB2E8\uD55C \uC608\uC81C\uB97C \uC0B4\uD3B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4.
\uB2E4\uC74C\uACFC \uAC19\uC774 `),be=i("code"),Xl=o('"\uACF5\uC744 \uAC16\uACE0 \uB178\uB294 \uBD89\uC740\uC0C9 \uACE0\uC591\uC774"'),Nl=o(" \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD558\uACE0 \uC2F6\uC2B5\uB2C8\uB2E4:"),ge=n(),v(H.$$.fragment),Ce=n(),te=i("p"),jl=o("\uC0DD\uC131\uB41C \uC774\uBBF8\uC9C0:"),Ie=n(),se=i("p"),oe=i("img"),Be=n(),pe=i("p"),Wl=o("\uC0AC\uC9C4\uC5D0\uC11C \uC54C \uC218 \uC788\uB4EF\uC774, \u201C\uACF5\u201D\uC740 \uC774\uBBF8\uC9C0\uC5D0 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774 \uBD80\uBD84\uC744 \uAC15\uC870\uD574 \uBCFC\uAE4C\uC694!"),Xe=n(),Z=i("p"),Dl=o("\uBA3C\uC800 "),de=i("code"),Pl=o("compel"),xl=o(" \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC124\uCE58\uD574\uC57C\uD569\uB2C8\uB2E4:"),Ne=n(),v(F.$$.fragment),je=n(),k=i("p"),Sl=o("\uADF8\uB7F0 \uB2E4\uC74C\uC5D0\uB294 "),he=i("code"),Rl=o("Compel"),Yl=o(" \uC624\uBE0C\uC81D\uD2B8\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4:"),We=n(),v(A.$$.fragment),De=n(),U=i("p"),zl=o("\uC774\uC81C "),_e=i("code"),Hl=o('"++"'),Fl=o(" \uB97C \uC0AC\uC6A9\uD574\uC11C \u201C\uACF5\u201D \uC744 \uAC15\uC870\uD574 \uBD05\uC2DC\uB2E4:"),Pe=n(),v(Q.$$.fragment),xe=n(),G=i("p"),Al=o("\uADF8\uB9AC\uACE0 \uC774 \uD504\uB86C\uD504\uD2B8\uB97C \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uBC14\uB85C \uC804\uB2EC\uD558\uC9C0 \uC54A\uACE0, "),ve=i("code"),Ql=o("compel_proc"),ql=o(" \uB97C \uC0AC\uC6A9\uD558\uC5EC \uCC98\uB9AC\uD574\uC57C\uD569\uB2C8\uB2E4:"),Se=n(),v(q.$$.fragment),Re=n(),V=i("p"),Ol=o("\uD30C\uC774\uD504\uB77C\uC778\uC5D0 "),we=i("code"),Kl=o("prompt_embeds"),Ll=o(" \uB97C \uBC14\uB85C \uC804\uB2EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),Ye=n(),v(O.$$.fragment),ze=n(),re=i("p"),et=o("\uC774\uC81C \u201C\uACF5\u201D\uC774 \uC788\uB294 \uADF8\uB9BC\uC744 \uCD9C\uB825\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!"),He=n(),ie=i("p"),fe=i("img"),Fe=n(),g=i("p"),lt=o("\uB9C8\uCC2C\uAC00\uC9C0\uB85C "),ye=i("code"),tt=o("--"),st=o(" \uC811\uBBF8\uC0AC\uB97C \uB2E8\uC5B4\uC5D0 \uC0AC\uC6A9\uD558\uC5EC \uBB38\uC7A5\uC758 \uC77C\uBD80\uB97C \uAC15\uC870\uD558\uC9C0 \uC54A\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uD55C\uBC88 \uC2DC\uB3C4\uD574 \uBCF4\uC138\uC694!"),Ae=n(),C=i("p"),ot=o("\uC990\uACA8\uCC3E\uB294 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 "),Ee=i("code"),pt=o("prompt_embeds"),rt=o(` \uC785\uB825\uC774 \uC5C6\uB294 \uACBD\uC6B0 issue\uB97C \uC0C8\uB85C \uB9CC\uB4E4\uC5B4\uC8FC\uC138\uC694.
Diffusers \uD300\uC740 \uCD5C\uB300\uD55C \uB300\uC751\uD558\uB824\uACE0 \uB178\uB825\uD569\uB2C8\uB2E4.`),Qe=n(),I=i("p"),it=o(`Compel 1.1.6 \uB294 textual inversions\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB2E8\uC21C\uD654\uD558\uB294 \uC720\uD2F0\uB9B4\uD2F0 \uD074\uB798\uC2A4\uB97C \uCD94\uAC00\uD569\uB2C8\uB2E4.
`),Je=i("code"),ft=o("DiffusersTextualInversionManager"),at=o("\uB97C \uC778\uC2A4\uD134\uC2A4\uD654 \uD55C \uD6C4 \uC774\uB97C Compel init\uC5D0 \uC804\uB2EC\uD569\uB2C8\uB2E4:"),qe=n(),v(K.$$.fragment),Oe=n(),B=i("p"),nt=o("\uB354 \uB9CE\uC740 \uC815\uBCF4\uB97C \uC5BB\uACE0 \uC2F6\uB2E4\uBA74 "),L=i("a"),mt=o("compel"),ut=o(" \uB77C\uC774\uBE0C\uB7EC\uB9AC \uBB38\uC11C\uB97C \uCC38\uACE0\uD558\uC138\uC694."),this.h()},l(e){const s=qt('[data-svelte="svelte-1phssyn"]',document.head);h=f(s,"META",{name:!0,content:!0}),s.forEach(l),Me=m(e),X=f(e,"H1",{id:!0});var _t=a(X);nl=p(_t,"\uD504\uB86C\uD504\uD2B8\uC5D0 \uAC00\uC911\uCE58 \uBD80\uC5EC\uD558\uAE30"),_t.forEach(l),$e=m(e),w(N.$$.fragment,e),Te=m(e),le=f(e,"P",{});var vt=a(le);ml=p(vt,`\uD14D\uC2A4\uD2B8 \uAC00\uC774\uB4DC \uAE30\uBC18\uC758 diffusion \uBAA8\uB378\uC740 \uC8FC\uC5B4\uC9C4 \uD14D\uC2A4\uD2B8 \uD504\uB86C\uD504\uD2B8\uB97C \uAE30\uBC18\uC73C\uB85C \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4.
\uD14D\uC2A4\uD2B8 \uD504\uB86C\uD504\uD2B8\uC5D0\uB294 \uBAA8\uB378\uC774 \uC0DD\uC131\uD574\uC57C \uD558\uB294 \uC5EC\uB7EC \uAC1C\uB150\uC774 \uD3EC\uD568\uB420 \uC218 \uC788\uC73C\uBA70 \uD504\uB86C\uD504\uD2B8\uC758 \uD2B9\uC815 \uBD80\uBD84\uC5D0 \uAC00\uC911\uCE58\uB97C \uBD80\uC5EC\uD558\uB294 \uAC83\uC774 \uBC14\uB78C\uC9C1\uD55C \uACBD\uC6B0\uAC00 \uB9CE\uC2B5\uB2C8\uB2E4.`),vt.forEach(l),Ze=m(e),d=f(e,"P",{});var ae=a(d);ul=p(ae,`Diffusion \uBAA8\uB378\uC740 \uBB38\uB9E5\uD654\uB41C \uD14D\uC2A4\uD2B8 \uC784\uBCA0\uB529\uC73C\uB85C diffusion \uBAA8\uB378\uC758 cross attention \uB808\uC774\uC5B4\uB97C \uC870\uC808\uD568\uC73C\uB85C\uC368 \uC791\uB3D9\uD569\uB2C8\uB2E4.
(`),j=f(ae,"A",{href:!0,rel:!0});var wt=a(j);cl=p(wt,"\uB354 \uB9CE\uC740 \uC815\uBCF4\uB97C \uC704\uD55C Stable Diffusion Guide"),wt.forEach(l),bl=p(ae,`\uB97C \uCC38\uACE0\uD558\uC138\uC694).
\uB530\uB77C\uC11C \uD504\uB86C\uD504\uD2B8\uC758 \uD2B9\uC815 \uBD80\uBD84\uC744 \uAC15\uC870\uD558\uB294(\uB610\uB294 \uAC15\uC870\uD558\uC9C0 \uC54A\uB294) \uAC04\uB2E8\uD55C \uBC29\uBC95\uC740 \uD504\uB86C\uD504\uD2B8\uC758 \uAD00\uB828 \uBD80\uBD84\uC5D0 \uD574\uB2F9\uD558\uB294 \uD14D\uC2A4\uD2B8 \uC784\uBCA0\uB529 \uBCA1\uD130\uC758 \uD06C\uAE30\uB97C \uB298\uB9AC\uAC70\uB098 \uC904\uC774\uB294 \uAC83\uC785\uB2C8\uB2E4.
\uC774\uAC83\uC740 \u201C\uD504\uB86C\uD504\uD2B8 \uAC00\uC911\uCE58 \uBD80\uC5EC\u201D \uB77C\uACE0 \uD558\uBA70, \uCEE4\uBBA4\uB2C8\uD2F0\uC5D0\uC11C \uAC00\uC7A5 \uC694\uAD6C\uD558\uB294 \uAE30\uB2A5\uC785\uB2C8\uB2E4.(`),W=f(ae,"A",{href:!0,rel:!0});var yt=a(W);dl=p(yt,"\uC774\uACF3"),yt.forEach(l),hl=p(ae,"\uC758 issue\uB97C \uBCF4\uC138\uC694 )."),ae.forEach(l),ke=m(e),_=f(e,"H2",{class:!0});var Le=a(_);$=f(Le,"A",{id:!0,class:!0,href:!0});var Et=a($);ne=f(Et,"SPAN",{});var Jt=a(ne);w(D.$$.fragment,Jt),Jt.forEach(l),Et.forEach(l),_l=m(Le),me=f(Le,"SPAN",{});var Mt=a(me);vl=p(Mt,"Diffusers\uC5D0\uC11C \uD504\uB86C\uD504\uD2B8 \uAC00\uC911\uCE58 \uBD80\uC5EC\uD558\uB294 \uBC29\uBC95"),Mt.forEach(l),Le.forEach(l),Ue=m(e),c=f(e,"P",{});var b=a(c);wl=p(b,"\uC6B0\uB9AC\uB294 "),ue=f(b,"CODE",{});var $t=a(ue);yl=p($t,"diffusers"),$t.forEach(l),El=p(b,`\uC758 \uC5ED\uD560\uC774 \uB2E4\uB978 \uD504\uB85C\uC81D\uD2B8\uB97C \uAC00\uB2A5\uD558\uAC8C \uD558\uB294 \uD544\uC218\uC801\uC778 \uAE30\uB2A5\uC744 \uC81C\uACF5\uD558\uB294 toolbex\uB77C\uACE0 \uC0DD\uAC01\uD569\uB2C8\uB2E4.
`),P=f(b,"A",{href:!0,rel:!0});var Tt=a(P);Jl=p(Tt,"InvokeAI"),Tt.forEach(l),Ml=p(b," \uB098 "),x=f(b,"A",{href:!0,rel:!0});var Zt=a(x);$l=p(Zt,"diffuzers"),Zt.forEach(l),Tl=p(b,` \uAC19\uC740 \uAC15\uB825\uD55C UI\uB97C \uAD6C\uCD95\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uD504\uB86C\uD504\uD2B8\uB97C \uC870\uC791\uD558\uB294 \uBC29\uBC95\uC744 \uC9C0\uC6D0\uD558\uAE30 \uC704\uD574, `),ce=f(b,"CODE",{});var kt=a(ce);Zl=p(kt,"diffusers"),kt.forEach(l),kl=p(b,` \uB294
`),S=f(b,"A",{href:!0,rel:!0});var Ut=a(S);Ul=p(Ut,"StableDiffusionPipeline"),Ut.forEach(l),Gl=p(b,`\uC640 \uAC19\uC740
\uB9CE\uC740 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 `),R=f(b,"A",{href:!0,rel:!0});var Gt=a(R);Vl=p(Gt,"prompt_embeds"),Gt.forEach(l),gl=p(b,`
\uC778\uC218\uB97C \uB178\uCD9C\uC2DC\uCF1C, \u201Cprompt-weighted\u201D/\uCD95\uCC99\uB41C \uD14D\uC2A4\uD2B8 \uC784\uBCA0\uB529\uC744 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uBC14\uB85C \uC804\uB2EC\uD560 \uC218 \uC788\uAC8C \uD569\uB2C8\uB2E4.`),b.forEach(l),Ge=m(e),Y=f(e,"P",{});var ct=a(Y);z=f(ct,"A",{href:!0,rel:!0});var Vt=a(z);Cl=p(Vt,"Compel \uB77C\uC774\uBE0C\uB7EC\uB9AC"),Vt.forEach(l),Il=p(ct,`\uB294 \uD504\uB86C\uD504\uD2B8\uC758 \uC77C\uBD80\uB97C \uAC15\uC870\uD558\uAC70\uB098 \uAC15\uC870\uD558\uC9C0 \uC54A\uC744 \uC218 \uC788\uB294 \uC26C\uC6B4 \uBC29\uBC95\uC744 \uC81C\uACF5\uD569\uB2C8\uB2E4.
\uC784\uBCA0\uB529\uC744 \uC9C1\uC811 \uC900\uBE44\uD558\uB294 \uAC83 \uB300\uC2E0 \uC774 \uBC29\uBC95\uC744 \uC0AC\uC6A9\uD558\uB294 \uAC83\uC744 \uAC15\uB825\uD788 \uCD94\uCC9C\uD569\uB2C8\uB2E4.`),ct.forEach(l),Ve=m(e),T=f(e,"P",{});var el=a(T);Bl=p(el,`\uAC04\uB2E8\uD55C \uC608\uC81C\uB97C \uC0B4\uD3B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4.
\uB2E4\uC74C\uACFC \uAC19\uC774 `),be=f(el,"CODE",{});var gt=a(be);Xl=p(gt,'"\uACF5\uC744 \uAC16\uACE0 \uB178\uB294 \uBD89\uC740\uC0C9 \uACE0\uC591\uC774"'),gt.forEach(l),Nl=p(el," \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD558\uACE0 \uC2F6\uC2B5\uB2C8\uB2E4:"),el.forEach(l),ge=m(e),w(H.$$.fragment,e),Ce=m(e),te=f(e,"P",{});var Ct=a(te);jl=p(Ct,"\uC0DD\uC131\uB41C \uC774\uBBF8\uC9C0:"),Ct.forEach(l),Ie=m(e),se=f(e,"P",{});var It=a(se);oe=f(It,"IMG",{src:!0,alt:!0}),It.forEach(l),Be=m(e),pe=f(e,"P",{});var Bt=a(pe);Wl=p(Bt,"\uC0AC\uC9C4\uC5D0\uC11C \uC54C \uC218 \uC788\uB4EF\uC774, \u201C\uACF5\u201D\uC740 \uC774\uBBF8\uC9C0\uC5D0 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774 \uBD80\uBD84\uC744 \uAC15\uC870\uD574 \uBCFC\uAE4C\uC694!"),Bt.forEach(l),Xe=m(e),Z=f(e,"P",{});var ll=a(Z);Dl=p(ll,"\uBA3C\uC800 "),de=f(ll,"CODE",{});var Xt=a(de);Pl=p(Xt,"compel"),Xt.forEach(l),xl=p(ll," \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC124\uCE58\uD574\uC57C\uD569\uB2C8\uB2E4:"),ll.forEach(l),Ne=m(e),w(F.$$.fragment,e),je=m(e),k=f(e,"P",{});var tl=a(k);Sl=p(tl,"\uADF8\uB7F0 \uB2E4\uC74C\uC5D0\uB294 "),he=f(tl,"CODE",{});var Nt=a(he);Rl=p(Nt,"Compel"),Nt.forEach(l),Yl=p(tl," \uC624\uBE0C\uC81D\uD2B8\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4:"),tl.forEach(l),We=m(e),w(A.$$.fragment,e),De=m(e),U=f(e,"P",{});var sl=a(U);zl=p(sl,"\uC774\uC81C "),_e=f(sl,"CODE",{});var jt=a(_e);Hl=p(jt,'"++"'),jt.forEach(l),Fl=p(sl," \uB97C \uC0AC\uC6A9\uD574\uC11C \u201C\uACF5\u201D \uC744 \uAC15\uC870\uD574 \uBD05\uC2DC\uB2E4:"),sl.forEach(l),Pe=m(e),w(Q.$$.fragment,e),xe=m(e),G=f(e,"P",{});var ol=a(G);Al=p(ol,"\uADF8\uB9AC\uACE0 \uC774 \uD504\uB86C\uD504\uD2B8\uB97C \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uBC14\uB85C \uC804\uB2EC\uD558\uC9C0 \uC54A\uACE0, "),ve=f(ol,"CODE",{});var Wt=a(ve);Ql=p(Wt,"compel_proc"),Wt.forEach(l),ql=p(ol," \uB97C \uC0AC\uC6A9\uD558\uC5EC \uCC98\uB9AC\uD574\uC57C\uD569\uB2C8\uB2E4:"),ol.forEach(l),Se=m(e),w(q.$$.fragment,e),Re=m(e),V=f(e,"P",{});var pl=a(V);Ol=p(pl,"\uD30C\uC774\uD504\uB77C\uC778\uC5D0 "),we=f(pl,"CODE",{});var Dt=a(we);Kl=p(Dt,"prompt_embeds"),Dt.forEach(l),Ll=p(pl," \uB97C \uBC14\uB85C \uC804\uB2EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),pl.forEach(l),Ye=m(e),w(O.$$.fragment,e),ze=m(e),re=f(e,"P",{});var Pt=a(re);et=p(Pt,"\uC774\uC81C \u201C\uACF5\u201D\uC774 \uC788\uB294 \uADF8\uB9BC\uC744 \uCD9C\uB825\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!"),Pt.forEach(l),He=m(e),ie=f(e,"P",{});var xt=a(ie);fe=f(xt,"IMG",{src:!0,alt:!0}),xt.forEach(l),Fe=m(e),g=f(e,"P",{});var rl=a(g);lt=p(rl,"\uB9C8\uCC2C\uAC00\uC9C0\uB85C "),ye=f(rl,"CODE",{});var St=a(ye);tt=p(St,"--"),St.forEach(l),st=p(rl," \uC811\uBBF8\uC0AC\uB97C \uB2E8\uC5B4\uC5D0 \uC0AC\uC6A9\uD558\uC5EC \uBB38\uC7A5\uC758 \uC77C\uBD80\uB97C \uAC15\uC870\uD558\uC9C0 \uC54A\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uD55C\uBC88 \uC2DC\uB3C4\uD574 \uBCF4\uC138\uC694!"),rl.forEach(l),Ae=m(e),C=f(e,"P",{});var il=a(C);ot=p(il,"\uC990\uACA8\uCC3E\uB294 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 "),Ee=f(il,"CODE",{});var Rt=a(Ee);pt=p(Rt,"prompt_embeds"),Rt.forEach(l),rt=p(il,` \uC785\uB825\uC774 \uC5C6\uB294 \uACBD\uC6B0 issue\uB97C \uC0C8\uB85C \uB9CC\uB4E4\uC5B4\uC8FC\uC138\uC694.
Diffusers \uD300\uC740 \uCD5C\uB300\uD55C \uB300\uC751\uD558\uB824\uACE0 \uB178\uB825\uD569\uB2C8\uB2E4.`),il.forEach(l),Qe=m(e),I=f(e,"P",{});var fl=a(I);it=p(fl,`Compel 1.1.6 \uB294 textual inversions\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB2E8\uC21C\uD654\uD558\uB294 \uC720\uD2F0\uB9B4\uD2F0 \uD074\uB798\uC2A4\uB97C \uCD94\uAC00\uD569\uB2C8\uB2E4.
`),Je=f(fl,"CODE",{});var Yt=a(Je);ft=p(Yt,"DiffusersTextualInversionManager"),Yt.forEach(l),at=p(fl,"\uB97C \uC778\uC2A4\uD134\uC2A4\uD654 \uD55C \uD6C4 \uC774\uB97C Compel init\uC5D0 \uC804\uB2EC\uD569\uB2C8\uB2E4:"),fl.forEach(l),qe=m(e),w(K.$$.fragment,e),Oe=m(e),B=f(e,"P",{});var al=a(B);nt=p(al,"\uB354 \uB9CE\uC740 \uC815\uBCF4\uB97C \uC5BB\uACE0 \uC2F6\uB2E4\uBA74 "),L=f(al,"A",{href:!0,rel:!0});var zt=a(L);mt=p(zt,"compel"),zt.forEach(l),ut=p(al," \uB77C\uC774\uBE0C\uB7EC\uB9AC \uBB38\uC11C\uB97C \uCC38\uACE0\uD558\uC138\uC694."),al.forEach(l),this.h()},h(){u(h,"name","hf:doc:metadata"),u(h,"content",JSON.stringify(ts)),u(X,"id",""),u(j,"href","https://huggingface.co/docs/optimum-neuron/main/en/package_reference/modeling#stable-diffusion"),u(j,"rel","nofollow"),u(W,"href","https://github.com/huggingface/diffusers/issues/2431"),u(W,"rel","nofollow"),u($,"id","diffusers"),u($,"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($,"href","#diffusers"),u(_,"class","relative group"),u(P,"href","https://github.com/invoke-ai/InvokeAI"),u(P,"rel","nofollow"),u(x,"href","https://github.com/abhishekkrthakur/diffuzers"),u(x,"rel","nofollow"),u(S,"href","https://huggingface.co/docs/diffusers/v0.18.2/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline"),u(S,"rel","nofollow"),u(R,"href","https://huggingface.co/docs/diffusers/v0.14.0/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline.__call__.prompt_embeds"),u(R,"rel","nofollow"),u(z,"href","https://github.com/damian0815/compel"),u(z,"rel","nofollow"),Ht(oe.src,dt="https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/compel/forest_0.png")||u(oe,"src",dt),u(oe,"alt","img"),Ht(fe.src,ht="https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/compel/forest_1.png")||u(fe,"src",ht),u(fe,"alt","img"),u(L,"href","https://github.com/damian0815/compel"),u(L,"rel","nofollow")},m(e,s){t(document.head,h),r(e,Me,s),r(e,X,s),t(X,nl),r(e,$e,s),y(N,e,s),r(e,Te,s),r(e,le,s),t(le,ml),r(e,Ze,s),r(e,d,s),t(d,ul),t(d,j),t(j,cl),t(d,bl),t(d,W),t(W,dl),t(d,hl),r(e,ke,s),r(e,_,s),t(_,$),t($,ne),y(D,ne,null),t(_,_l),t(_,me),t(me,vl),r(e,Ue,s),r(e,c,s),t(c,wl),t(c,ue),t(ue,yl),t(c,El),t(c,P),t(P,Jl),t(c,Ml),t(c,x),t(x,$l),t(c,Tl),t(c,ce),t(ce,Zl),t(c,kl),t(c,S),t(S,Ul),t(c,Gl),t(c,R),t(R,Vl),t(c,gl),r(e,Ge,s),r(e,Y,s),t(Y,z),t(z,Cl),t(Y,Il),r(e,Ve,s),r(e,T,s),t(T,Bl),t(T,be),t(be,Xl),t(T,Nl),r(e,ge,s),y(H,e,s),r(e,Ce,s),r(e,te,s),t(te,jl),r(e,Ie,s),r(e,se,s),t(se,oe),r(e,Be,s),r(e,pe,s),t(pe,Wl),r(e,Xe,s),r(e,Z,s),t(Z,Dl),t(Z,de),t(de,Pl),t(Z,xl),r(e,Ne,s),y(F,e,s),r(e,je,s),r(e,k,s),t(k,Sl),t(k,he),t(he,Rl),t(k,Yl),r(e,We,s),y(A,e,s),r(e,De,s),r(e,U,s),t(U,zl),t(U,_e),t(_e,Hl),t(U,Fl),r(e,Pe,s),y(Q,e,s),r(e,xe,s),r(e,G,s),t(G,Al),t(G,ve),t(ve,Ql),t(G,ql),r(e,Se,s),y(q,e,s),r(e,Re,s),r(e,V,s),t(V,Ol),t(V,we),t(we,Kl),t(V,Ll),r(e,Ye,s),y(O,e,s),r(e,ze,s),r(e,re,s),t(re,et),r(e,He,s),r(e,ie,s),t(ie,fe),r(e,Fe,s),r(e,g,s),t(g,lt),t(g,ye),t(ye,tt),t(g,st),r(e,Ae,s),r(e,C,s),t(C,ot),t(C,Ee),t(Ee,pt),t(C,rt),r(e,Qe,s),r(e,I,s),t(I,it),t(I,Je),t(Je,ft),t(I,at),r(e,qe,s),y(K,e,s),r(e,Oe,s),r(e,B,s),t(B,nt),t(B,L),t(L,mt),t(B,ut),Ke=!0},p:Ot,i(e){Ke||(E(N.$$.fragment,e),E(D.$$.fragment,e),E(H.$$.fragment,e),E(F.$$.fragment,e),E(A.$$.fragment,e),E(Q.$$.fragment,e),E(q.$$.fragment,e),E(O.$$.fragment,e),E(K.$$.fragment,e),Ke=!0)},o(e){J(N.$$.fragment,e),J(D.$$.fragment,e),J(H.$$.fragment,e),J(F.$$.fragment,e),J(A.$$.fragment,e),J(Q.$$.fragment,e),J(q.$$.fragment,e),J(O.$$.fragment,e),J(K.$$.fragment,e),Ke=!1},d(e){l(h),e&&l(Me),e&&l(X),e&&l($e),M(N,e),e&&l(Te),e&&l(le),e&&l(Ze),e&&l(d),e&&l(ke),e&&l(_),M(D),e&&l(Ue),e&&l(c),e&&l(Ge),e&&l(Y),e&&l(Ve),e&&l(T),e&&l(ge),M(H,e),e&&l(Ce),e&&l(te),e&&l(Ie),e&&l(se),e&&l(Be),e&&l(pe),e&&l(Xe),e&&l(Z),e&&l(Ne),M(F,e),e&&l(je),e&&l(k),e&&l(We),M(A,e),e&&l(De),e&&l(U),e&&l(Pe),M(Q,e),e&&l(xe),e&&l(G),e&&l(Se),M(q,e),e&&l(Re),e&&l(V),e&&l(Ye),M(O,e),e&&l(ze),e&&l(re),e&&l(He),e&&l(ie),e&&l(Fe),e&&l(g),e&&l(Ae),e&&l(C),e&&l(Qe),e&&l(I),e&&l(qe),M(K,e),e&&l(Oe),e&&l(B)}}}const ts={local:"",sections:[{local:"diffusers",title:"Diffusers\uC5D0\uC11C \uD504\uB86C\uD504\uD2B8 \uAC00\uC911\uCE58 \uBD80\uC5EC\uD558\uB294 \uBC29\uBC95"}],title:"\uD504\uB86C\uD504\uD2B8\uC5D0 \uAC00\uC911\uCE58 \uBD80\uC5EC\uD558\uAE30"};function ss(bt){return Kt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class fs extends Ft{constructor(h){super();At(this,h,ss,ls,Qt,{})}}export{fs as default,ts as metadata};
