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Bn,pe,In,Fe,St,Wn,ze,Cl,Ae,Qt,En,xe,z,sl,ce,Sl,kn,fe,Rn,$e,Nt,Vn,He,A,al,ye,Ql,Xn,ue,Cn,qe,Nl,Pe,x,nl,Me,Dl,Sn,he,Qn,Le,Yl,Ke,Dt,Nn,Oe,$,il,me,Fl,Dn,de,Yn,ls,Yt,Fn,ts,zl,es,Ft,zn,ss,zt,At,Pn,as;return jl=new pl({props:{code:"cGlwZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJDb21wVmlzJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS00JTIyJTJDJTIwY3VzdG9tX3BpcGVsaW5lJTNEJTIyZmlsZW5hbWVfaW5fdGhlX2NvbW11bml0eV9mb2xkZXIlMjIlMEEp",highlighted:`pipe = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>, custom_pipeline=<span class="hljs-string">&quot;filename_in_the_community_folder&quot;</span>
)`}}),vl=new ol({}),Gl=new pl({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENMSVBJbWFnZVByb2Nlc3NvciUyQyUyMENMSVBNb2RlbCUwQWltcG9ydCUyMHRvcmNoJTBBJTBBJTBBZmVhdHVyZV9leHRyYWN0b3IlMjAlM0QlMjBDTElQSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmxhaW9uJTJGQ0xJUC1WaVQtQi0zMi1sYWlvbjJCLXMzNEItYjc5SyUyMiklMEFjbGlwX21vZGVsJTIwJTNEJTIwQ0xJUE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJsYWlvbiUyRkNMSVAtVmlULUItMzItbGFpb24yQi1zMzRCLWI3OUslMjIlMkMlMjB0b3JjaF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yMGltZyUyMGluJTIwZW51bWVyYXRlKGltYWdlcyklM0ElMEElMjAlMjAlMjAlMjBpbWcuc2F2ZShmJTIyLiUyRmNsaXBfZ3VpZGVkX3NkJTJGaW1hZ2VfJTdCaSU3RC5wbmclMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPImageProcessor, CLIPModel
<span class="hljs-keyword">import</span> torch


feature_extractor = CLIPImageProcessor.from_pretrained(<span class="hljs-string">&quot;laion/CLIP-ViT-B-32-laion2B-s34B-b79K&quot;</span>)
clip_model = CLIPModel.from_pretrained(<span class="hljs-string">&quot;laion/CLIP-ViT-B-32-laion2B-s34B-b79K&quot;</span>, torch_dtype=torch.float16)


guided_pipeline = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>,
    custom_pipeline=<span class="hljs-string">&quot;clip_guided_stable_diffusion&quot;</span>,
    clip_model=clip_model,
    feature_extractor=feature_extractor,
    torch_dtype=torch.float16,
)
guided_pipeline.enable_attention_slicing()
guided_pipeline = guided_pipeline.to(<span class="hljs-string">&quot;cuda&quot;</span>)

prompt = <span class="hljs-string">&quot;fantasy book cover, full moon, fantasy forest landscape, golden vector elements, fantasy magic, dark light night, intricate, elegant, sharp focus, illustration, highly detailed, digital painting, concept art, matte, art by WLOP and Artgerm and Albert Bierstadt, masterpiece&quot;</span>

generator = torch.Generator(device=<span class="hljs-string">&quot;cuda&quot;</span>).manual_seed(<span class="hljs-number">0</span>)
images = []
<span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> <span class="hljs-built_in">range</span>(<span class="hljs-number">4</span>):
    image = guided_pipeline(
        prompt,
        num_inference_steps=<span class="hljs-number">50</span>,
        guidance_scale=<span class="hljs-number">7.5</span>,
        clip_guidance_scale=<span class="hljs-number">100</span>,
        num_cutouts=<span class="hljs-number">4</span>,
        use_cutouts=<span class="hljs-literal">False</span>,
        generator=generator,
    ).images[<span class="hljs-number">0</span>]
    images.append(image)

<span class="hljs-comment"># \uC774\uBBF8\uC9C0 \uB85C\uCEEC\uC5D0 \uC800\uC7A5\uD558\uAE30</span>
<span class="hljs-keyword">for</span> i, img <span class="hljs-keyword">in</span> <span class="hljs-built_in">enumerate</span>(images):
    img.save(<span class="hljs-string">f&quot;./clip_guided_sd/image_<span class="hljs-subst">{i}</span>.png&quot;</span>)`}}),Bl=new ol({}),Il=new pl({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUlMkZkZHBtLWNpZmFyMTAtMzIlMjIlMkMlMjBjdXN0b21fcGlwZWxpbmUlM0QlMjJvbmVfc3RlcF91bmV0JTIyKSUwQXBpcGUoKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;google/ddpm-cifar10-32&quot;</span>, custom_pipeline=<span class="hljs-string">&quot;one_step_unet&quot;</span>)
pipe()`}}),El=new ol({}),kl=new pl({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlJTIwJTNEJTIwRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMkNvbXBWaXMlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTQlMjIlMkMlMEElMjAlMjAlMjAlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMEElMjAlMjAlMjAlMjBzYWZldHlfY2hlY2tlciUzRE5vbmUlMkMlMjAlMjAlMjMlMjBWZXJ5JTIwaW1wb3J0YW50JTIwZm9yJTIwdmlkZW9zLi4ubG90cyUyMG9mJTIwZmFsc2UlMjBwb3NpdGl2ZXMlMjB3aGlsZSUyMGludGVycG9sYXRpbmclMEElMjAlMjAlMjAlMjBjdXN0b21fcGlwZWxpbmUlM0QlMjJpbnRlcnBvbGF0ZV9zdGFibGVfZGlmZnVzaW9uJTIyJTJDJTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGUuZW5hYmxlX2F0dGVudGlvbl9zbGljaW5nKCklMEElMEFmcmFtZV9maWxlcGF0aHMlMjAlM0QlMjBwaXBlLndhbGsoJTBBJTIwJTIwJTIwJTIwcHJvbXB0cyUzRCU1QiUyMmElMjBkb2clMjIlMkMlMjAlMjJhJTIwY2F0JTIyJTJDJTIwJTIyYSUyMGhvcnNlJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwc2VlZHMlM0QlNUI0MiUyQyUyMDEzMzclMkMlMjAxMjM0JTVEJTJDJTBBJTIwJTIwJTIwJTIwbnVtX2ludGVycG9sYXRpb25fc3RlcHMlM0QxNiUyQyUwQSUyMCUyMCUyMCUyMG91dHB1dF9kaXIlM0QlMjIuJTJGZHJlYW1zJTIyJTJDJTBBJTIwJTIwJTIwJTIwYmF0Y2hfc2l6ZSUzRDQlMkMlMEElMjAlMjAlMjAlMjBoZWlnaHQlM0Q1MTIlMkMlMEElMjAlMjAlMjAlMjB3aWR0aCUzRDUxMiUyQyUwQSUyMCUyMCUyMCUyMGd1aWRhbmNlX3NjYWxlJTNEOC41JTJDJTBBJTIwJTIwJTIwJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUzRDUwJTJDJTBBKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-keyword">import</span> torch

pipe = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>,
    torch_dtype=torch.float16,
    safety_checker=<span class="hljs-literal">None</span>,  <span class="hljs-comment"># Very important for videos...lots of false positives while interpolating</span>
    custom_pipeline=<span class="hljs-string">&quot;interpolate_stable_diffusion&quot;</span>,
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipe.enable_attention_slicing()

frame_filepaths = pipe.walk(
    prompts=[<span class="hljs-string">&quot;a dog&quot;</span>, <span class="hljs-string">&quot;a cat&quot;</span>, <span class="hljs-string">&quot;a horse&quot;</span>],
    seeds=[<span class="hljs-number">42</span>, <span class="hljs-number">1337</span>, <span class="hljs-number">1234</span>],
    num_interpolation_steps=<span class="hljs-number">16</span>,
    output_dir=<span class="hljs-string">&quot;./dreams&quot;</span>,
    batch_size=<span class="hljs-number">4</span>,
    height=<span class="hljs-number">512</span>,
    width=<span class="hljs-number">512</span>,
    guidance_scale=<span class="hljs-number">8.5</span>,
    num_inference_steps=<span class="hljs-number">50</span>,
)`}}),Xl=new ol({}),Cl=new pl({props:{code:"JTIzISUyRnVzciUyRmJpbiUyRmVudiUyMHB5dGhvbjMlMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEFpbXBvcnQlMjBQSUwlMEFpbXBvcnQlMjByZXF1ZXN0cyUwQWZyb20lMjBpbyUyMGltcG9ydCUyMEJ5dGVzSU8lMEFpbXBvcnQlMjB0b3JjaCUwQSUwQSUwQWRlZiUyMGRvd25sb2FkX2ltYWdlKHVybCklM0ElMEElMjAlMjAlMjAlMjByZXNwb25zZSUyMCUzRCUyMHJlcXVlc3RzLmdldCh1cmwpJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwUElMLkltYWdlLm9wZW4oQnl0ZXNJTyhyZXNwb25zZS5jb250ZW50KSkuY29udmVydCglMjJSR0IlMjIpJTBBJTBBJTBBcGlwZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJDb21wVmlzJTJGc3RhYmxlL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JsJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZyYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tJTJGQ29tcFZpcyUyRmxhdGVudC1kaWZmdXNpb24lMkZtYWluJTJGZGF0YSUyRmlucGFpbnRpbmdfZXhhbXBsZXMlMkZvdmVydHVyZS1jcmVhdGlvbnMtNXNJNmZRZ1lJdW8ucG5nJTIyJTBBbWFza191cmwlMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRnJhdy5naXRodWJ1c2VyY29udGVudC5jb20lMkZDb21wVmlzJTJGbGF0ZW50LWRpZmZ1c2lvbiUyRm1haW4lMkZkYXRhJTJGaW5wYWludGluZ19leGFtcGxlcyUyRm92ZXJ0dXJlLWNyZWF0aW9ucy01c0k2ZlFnWUl1b19tYXNrLnBuZyUyMiUwQWluaXRfaW1hZ2UlMjAlM0QlMjBkb3dubG9hZF9pbWFnZShpbWdfdXJsKS5yZXNpemUoKDUxMiUyQyUyMDUxMikpJTBBbWFza19pbWFnZSUyMCUzRCUyMGRvd25sb2FkX2ltYWdlKG1hc2tfdXJsKS5yZXNpemUoKDUxMiUyQyUyMDUxMikpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyYSUyMGNhdCUyMHNpdHRpbmclMjBvbiUyMGElMjBiZW5jaCUyMiUwQWltYWdlcyUyMCUzRCUyMHBpcGUuaW5wYWludChwcm9tcHQlM0Rwcm9tcHQlMkMlMjBpbWFnZSUzRGluaXRfaW1hZ2UlMkMlMjBtYXNrX2ltYWdlJTNEbWFza19pbWFnZSUyQyUyMHN0cmVuZ3RoJTNEMC43NSkuaW1hZ2Vz",highlighted:`<span class="hljs-comment">#!/usr/bin/env python3</span>
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-keyword">import</span> PIL
<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> io <span class="hljs-keyword">import</span> BytesIO
<span class="hljs-keyword">import</span> torch


<span class="hljs-keyword">def</span> <span class="hljs-title function_">download_image</span>(<span class="hljs-params">url</span>):
    response = requests.get(url)
    <span class="hljs-keyword">return</span> PIL.Image.<span class="hljs-built_in">open</span>(BytesIO(response.content)).convert(<span class="hljs-string">&quot;RGB&quot;</span>)


pipe = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>,
    custom_pipeline=<span class="hljs-string">&quot;stable_diffusion_mega&quot;</span>,
    torch_dtype=torch.float16,
)
pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipe.enable_attention_slicing()


<span class="hljs-comment">### Text-to-Image</span>

images = pipe.text2img(<span class="hljs-string">&quot;An astronaut riding a horse&quot;</span>).images

<span class="hljs-comment">### Image-to-Image</span>

init_image = download_image(
    <span class="hljs-string">&quot;https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg&quot;</span>
)

prompt = <span class="hljs-string">&quot;A fantasy landscape, trending on artstation&quot;</span>

images = pipe.img2img(prompt=prompt, image=init_image, strength=<span class="hljs-number">0.75</span>, guidance_scale=<span class="hljs-number">7.5</span>).images

<span class="hljs-comment">### Inpainting</span>

img_url = <span class="hljs-string">&quot;https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png&quot;</span>
mask_url = <span class="hljs-string">&quot;https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png&quot;</span>
init_image = download_image(img_url).resize((<span class="hljs-number">512</span>, <span class="hljs-number">512</span>))
mask_image = download_image(mask_url).resize((<span class="hljs-number">512</span>, <span class="hljs-number">512</span>))

prompt = <span class="hljs-string">&quot;a cat sitting on a bench&quot;</span>
images = pipe.inpaint(prompt=prompt, image=init_image, mask_image=mask_image, strength=<span class="hljs-number">0.75</span>).images`}}),Sl=new ol({}),Ql=new ol({}),Nl=new pl({props:{code:"ZnJvbSUyMG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mluZ2VycyUyQyUyMGVycm9yX2xlZ3MlMkMlMjBiYWRfbGVncyUyQyUyMG11bHRpcGxlX2xlZ3MlMkMlMjBtaXNzaW5nX2xlZ3MlMkMlMjBlcnJvcl9saWdodGluZyUyQyUyMGVycm9yX3NoYWRvdyUyQyUyMGVycm9yX3JlZmxlY3Rpb24lMkMlMjB0ZXh0JTJDJTIwZXJyb3IlMkMlMjBleHRyYV9kaWdpdCUyQyUyMGZld2VyX2RpZ2l0cyUyQyUyMGNyb3BwZWQlMkMlMjB3b3JzdF9xdWFsaXR5JTJDJTIwbG93X3F1YWxpdHklMkMlMjBub3JtYWxfcXVhbGl0eSUyQyUyMGpwZWdfYXJ0aWZhY3RzJTJDJTIwc2lnbmF0dXJlJTJDJTIwd2F0ZXJtYXJrJTJDJTIwdXNlcm5hbWUlMkMlMjBibHVycnklMjIlMEElMEFwaXBlLnRleHQyaW1nKHByb21wdCUyQyUyMG5lZ2F0aXZlX3Byb21wdCUzRG5lZ19wcm9tcHQlMkMlMjB3aWR0aCUzRDUxMiUyQyUyMGhlaWdodCUzRDUxMiUyQyUyMG1heF9lbWJlZGRpbmdzX211bHRpcGxlcyUzRDMpLmltYWdlcyU1QjAlNUQ=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-keyword">import</span> torch

pipe = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;hakurei/waifu-diffusion&quot;</span>, custom_pipeline=<span class="hljs-string">&quot;lpw_stable_diffusion&quot;</span>, torch_dtype=torch.float16
)
pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

prompt = <span class="hljs-string">&quot;best_quality (1girl:1.3) bow bride brown_hair closed_mouth frilled_bow frilled_hair_tubes frills (full_body:1.3) fox_ear hair_bow hair_tubes happy hood japanese_clothes kimono long_sleeves red_bow smile solo tabi uchikake white_kimono wide_sleeves cherry_blossoms&quot;</span>
neg_prompt = <span class="hljs-string">&quot;lowres, bad_anatomy, error_body, error_hair, error_arm, error_hands, bad_hands, error_fingers, bad_fingers, missing_fingers, error_legs, bad_legs, multiple_legs, missing_legs, error_lighting, error_shadow, error_reflection, text, error, extra_digit, fewer_digits, cropped, worst_quality, low_quality, normal_quality, jpeg_artifacts, signature, watermark, username, blurry&quot;</span>

pipe.text2img(prompt, negative_prompt=neg_prompt, width=<span class="hljs-number">512</span>, height=<span class="hljs-number">512</span>, max_embeddings_multiples=<span class="hljs-number">3</span>).images[<span class="hljs-number">0</span>]`}}),Dl=new ol({}),Yl=new pl({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlJTIwJTNEJTIwRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMkNvbXBWaXMlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTQlMjIlMkMlMEElMjAlMjAlMjAlMjBjdXN0b21fcGlwZWxpbmUlM0QlMjJscHdfc3RhYmxlX2RpZmZ1c2lvbl9vbm54JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmV2aXNpb24lM0QlMjJvbm54JTIyJTJDJTBBJTIwJTIwJTIwJTIwcHJvdmlkZXIlM0QlMjJDVURBRXhlY3V0aW9uUHJvdmlkZXIlMjIlMkMlMEEpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyYSUyMHBob3RvJTIwb2YlMjBhbiUyMGFzdHJvbmF1dCUyMHJpZGluZyUyMGElMjBob3JzZSUyMG9uJTIwbWFycyUyQyUyMGJlc3QlMjBxdWFsaXR5JTIyJTBBbmVnX3Byb21wdCUyMCUzRCUyMCUyMmxvd3JlcyUyQyUyMGJhZCUyMGFuYXRvbXklMkMlMjBlcnJvciUyMGJvZHklMkMlMjBlcnJvciUyMGhhaXIlMkMlMjBlcnJvciUyMGFybSUyQyUyMGVycm9yJTIwaGFuZHMlMkMlMjBiYWQlMjBoYW5kcyUyQyUyMGVycm9yJTIwZmluZ2VycyUyQyUyMGJhZCUyMGZpbmdlcnMlMkMlMjBtaXNzaW5nJTIwZmluZ2VycyUyQyUyMGVycm9yJTIwbGVncyUyQyUyMGJhZCUyMGxlZ3MlMkMlMjBtdWx0aXBsZSUyMGxlZ3MlMkMlMjBtaXNzaW5nJTIwbGVncyUyQyUyMGVycm9yJTIwbGlnaHRpbmclMkMlMjBlcnJvciUyMHNoYWRvdyUyQyUyMGVycm9yJTIwcmVmbGVjdGlvbiUyQyUyMHRleHQlMkMlMjBlcnJvciUyQyUyMGV4dHJhJTIwZGlnaXQlMkMlMjBmZXdlciUyMGRpZ2l0cyUyQyUyMGNyb3BwZWQlMkMlMjB3b3JzdCUyMHF1YWxpdHklMkMlMjBsb3clMjBxdWFsaXR5JTJDJTIwbm9ybWFsJTIwcXVhbGl0eSUyQyUyMGpwZWclMjBhcnRpZmFjdHMlMkMlMjBzaWduYXR1cmUlMkMlMjB3YXRlcm1hcmslMkMlMjB1c2VybmFtZSUyQyUyMGJsdXJyeSUyMiUwQSUwQXBpcGUudGV4dDJpbWcocHJvbXB0JTJDJTIwbmVnYXRpdmVfcHJvbXB0JTNEbmVnX3Byb21wdCUyQyUyMHdpZHRoJTNENTEyJTJDJTIwaGVpZ2h0JTNENTEyJTJDJTIwbWF4X2VtYmVkZGluZ3NfbXVsdGlwbGVzJTNEMykuaW1hZ2VzJTVCMCU1RA==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-keyword">import</span> torch

pipe = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>,
    custom_pipeline=<span class="hljs-string">&quot;lpw_stable_diffusion_onnx&quot;</span>,
    revision=<span class="hljs-string">&quot;onnx&quot;</span>,
    provider=<span class="hljs-string">&quot;CUDAExecutionProvider&quot;</span>,
)

prompt = <span class="hljs-string">&quot;a photo of an astronaut riding a horse on mars, best quality&quot;</span>
neg_prompt = <span class="hljs-string">&quot;lowres, bad anatomy, error body, error hair, error arm, error hands, bad hands, error fingers, bad fingers, missing fingers, error legs, bad legs, multiple legs, missing legs, error lighting, error shadow, error reflection, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry&quot;</span>

pipe.text2img(prompt, negative_prompt=neg_prompt, width=<span class="hljs-number">512</span>, height=<span class="hljs-number">512</span>, max_embeddings_multiples=<span class="hljs-number">3</span>).images[<span class="hljs-number">0</span>]`}}),Fl=new ol({}),zl=new pl({props:{code:"aW1wb3J0JTIwdG9yY2glMEElMEFpbXBvcnQlMjBtYXRwbG90bGliLnB5cGxvdCUyMGFzJTIwcGx0JTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMCglMEElMjAlMjAlMjAlMjBXaGlzcGVyRm9yQ29uZGl0aW9uYWxHZW5lcmF0aW9uJTJDJTBBJTIwJTIwJTIwJTIwV2hpc3BlclByb2Nlc3NvciUyQyUwQSklMEElMEElMEFkZXZpY2UlMjAlM0QlMjAlMjJjdWRhJTIyJTIwaWYlMjB0b3JjaC5jdWRhLmlzX2F2YWlsYWJsZSgpJTIwZWxzZSUyMCUyMmNwdSUyMiUwQSUwQWRzJTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmhmLWludGVybmFsLXRlc3RpbmclMkZsaWJyaXNwZWVjaF9hc3JfZHVtbXklMjIlMkMlMjAlMjJjbGVhbiUyMiUyQyUyMHNwbGl0JTNEJTIydmFsaWRhdGlvbiUyMiklMEElMEFhdWRpb19zYW1wbGUlMjAlM0QlMjBkcyU1QjMlNUQlMEElMEF0ZXh0JTIwJTNEJTI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SUwQXBsdC5pbXNob3cob3V0cHV0LmltYWdlcyU1QjAlNUQp",highlighted:`<span class="hljs-keyword">import</span> torch

<span class="hljs-keyword">import</span> matplotlib.pyplot <span class="hljs-keyword">as</span> plt
<span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> (
    WhisperForConditionalGeneration,
    WhisperProcessor,
)


device = <span class="hljs-string">&quot;cuda&quot;</span> <span class="hljs-keyword">if</span> torch.cuda.is_available() <span class="hljs-keyword">else</span> <span class="hljs-string">&quot;cpu&quot;</span>

ds = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_dummy&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)

audio_sample = ds[<span class="hljs-number">3</span>]

text = audio_sample[<span class="hljs-string">&quot;text&quot;</span>].lower()
speech_data = audio_sample[<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>]

model = WhisperForConditionalGeneration.from_pretrained(<span class="hljs-string">&quot;openai/whisper-small&quot;</span>).to(device)
processor = WhisperProcessor.from_pretrained(<span class="hljs-string">&quot;openai/whisper-small&quot;</span>)

diffuser_pipeline = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>,
    custom_pipeline=<span class="hljs-string">&quot;speech_to_image_diffusion&quot;</span>,
    speech_model=model,
    speech_processor=processor,
    
    torch_dtype=torch.float16,
)

diffuser_pipeline.enable_attention_slicing()
diffuser_pipeline = diffuser_pipeline.to(device)

output = diffuser_pipeline(speech_data)
plt.imshow(output.images[<span class="hljs-number">0</span>])`}}),{c(){C=s("meta"),Ue=p(),cl=s("h1"),bs=r("\uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778"),we=p(),Al=s("blockquote"),fl=s("p"),Us=r("**\uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 "),yl=s("a"),ws=r("\uC774 \uC774\uC288"),Ts=r("\uB97C \uCC38\uC870\uD558\uC138\uC694."),Te=p(),S=s("p"),xt=s("strong"),gs=r("\uCEE4\uBBA4\uB2C8\uD2F0"),js=r(` \uC608\uC81C\uB294 \uCEE4\uBBA4\uB2C8\uD2F0\uC5D0\uC11C \uCD94\uAC00\uD55C \uCD94\uB860 \uBC0F \uD6C8\uB828 \uC608\uC81C\uB85C \uAD6C\uC131\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.
\uB2E4\uC74C \uD45C\uB97C \uCC38\uC870\uD558\uC5EC \uBAA8\uB4E0 \uCEE4\uBBA4\uB2C8\uD2F0 \uC608\uC81C\uC5D0 \uB300\uD55C \uAC1C\uC694\uB97C \uD655\uC778\uD558\uC2DC\uAE30 \uBC14\uB78D\uB2C8\uB2E4. `),$t=s("strong"),Zs=r("\uCF54\uB4DC \uC608\uC81C"),vs=r(`\uB97C \uD074\uB9AD\uD558\uBA74 \uBCF5\uC0AC\uD558\uC5EC \uBD99\uC5EC\uB123\uAE30\uD560 \uC218 \uC788\uB294 \uCF54\uB4DC \uC608\uC81C\uB97C \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uCEE4\uBBA4\uB2C8\uD2F0\uAC00 \uC608\uC0C1\uB300\uB85C \uC791\uB3D9\uD558\uC9C0 \uC54A\uB294 \uACBD\uC6B0 \uC774\uC288\uB97C \uAC1C\uC124\uD558\uACE0 \uC791\uC131\uC790\uC5D0\uAC8C \uD551\uC744 \uBCF4\uB0B4\uC8FC\uC138\uC694.`),ge=p(),q=s("table"),Ht=s("thead"),U=s("tr"),xl=s("th"),Gs=r("\uC608"),_s=p(),$l=s("th"),Bs=r("\uC124\uBA85"),Is=p(),Hl=s("th"),Ws=r("\uCF54\uB4DC \uC608\uC81C"),Es=p(),ql=s("th"),ks=r("\uCF5C\uB7A9"),Rs=p(),Pl=s("th"),Vs=r("\uC800\uC790"),Xs=p(),b=s("tbody"),w=s("tr"),Ll=s("td"),Cs=r("CLIP Guided Stable Diffusion"),Ss=p(),Kl=s("td"),Qs=r("CLIP \uAC00\uC774\uB4DC \uAE30\uBC18\uC758 Stable Diffusion\uC73C\uB85C \uD14D\uC2A4\uD2B8\uC5D0\uC11C \uC774\uBBF8\uC9C0\uB85C \uC0DD\uC131\uD558\uAE30"),Ns=p(),Ol=s("td"),lt=s("a"),Ds=r("CLIP Guided Stable Diffusion"),Ys=p(),tt=s("td"),ul=s("a"),et=s("img"),Fs=p(),st=s("td"),Ml=s("a"),zs=r("Suraj Patil"),As=p(),T=s("tr"),at=s("td"),xs=r("One Step U-Net (Dummy)"),$s=p(),P=s("td"),Hs=r("\uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC5B4\uB5BB\uAC8C \uC0AC\uC6A9\uD574\uC57C \uD558\uB294\uC9C0\uC5D0 \uB300\uD55C \uC608\uC2DC(\uCC38\uACE0 "),hl=s("a"),qs=r("https://github.com/huggingface/diffusers/issues/841"),Ps=r(")"),Ls=p(),nt=s("td"),it=s("a"),Ks=r("One Step U-Net"),Os=p(),rt=s("td"),la=r("-"),ta=p(),ot=s("td"),ml=s("a"),ea=r("Patrick von Platen"),sa=p(),g=s("tr"),pt=s("td"),aa=r("Stable Diffusion Interpolation"),na=p(),ct=s("td"),ia=r("\uC11C\uB85C \uB2E4\uB978 \uD504\uB86C\uD504\uD2B8/\uC2DC\uB4DC \uAC04 Stable Diffusion\uC758 latent space \uBCF4\uAC04"),ra=p(),ft=s("td"),yt=s("a"),oa=r("Stable Diffusion Interpolation"),pa=p(),ut=s("td"),ca=r("-"),fa=p(),Mt=s("td"),dl=s("a"),ya=r("Nate Raw"),ua=p(),j=s("tr"),ht=s("td"),Ma=r("Stable Diffusion Mega"),ha=p(),Z=s("td"),ma=r("\uBAA8\uB4E0 \uAE30\uB2A5\uC744 \uAC16\uCD98 "),qt=s("strong"),da=r("\uD558\uB098\uC758"),Ja=r(" Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778 "),Jl=s("a"),ba=r("Text2Image"),Ua=r(", "),bl=s("a"),wa=r("Image2Image"),Ta=r(" and "),Ul=s("a"),ga=r("Inpainting"),ja=p(),mt=s("td"),dt=s("a"),Za=r("Stable Diffusion Mega"),va=p(),Jt=s("td"),Ga=r("-"),_a=p(),bt=s("td"),wl=s("a"),Ba=r("Patrick von Platen"),Ia=p(),v=s("tr"),Ut=s("td"),Wa=r("Long Prompt Weighting Stable Diffusion"),Ea=p(),L=s("td"),ka=r("\uD1A0\uD070 \uAE38\uC774 \uC81C\uD55C\uC774 \uC5C6\uACE0 \uD504\uB86C\uD504\uD2B8\uC5D0\uC11C \uD30C\uC2F1 \uAC00\uC911\uCE58 \uC9C0\uC6D0\uC744 \uD558\uB294 "),Pt=s("strong"),Ra=r("\uD558\uB098\uC758"),Va=r(" Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778,"),Xa=p(),wt=s("td"),Tt=s("a"),Ca=r("Long Prompt Weighting Stable Diffusion"),Sa=p(),gt=s("td"),Qa=r("-"),Na=p(),jt=s("td"),Tl=s("a"),Da=r("SkyTNT"),Ya=p(),G=s("tr"),Zt=s("td"),Fa=r("Speech to Image"),za=p(),vt=s("td"),Aa=r("\uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC0AC\uC6A9\uD558\uC5EC \uD14D\uC2A4\uD2B8\uB97C \uC791\uC131\uD558\uACE0 Stable Diffusion\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4."),xa=p(),Gt=s("td"),_t=s("a"),$a=r("Speech to Image"),Ha=p(),Bt=s("td"),qa=r("-"),Pa=p(),It=s("td"),gl=s("a"),La=r("Mikail Duzenli"),je=p(),_=s("p"),Ka=r("\uCEE4\uC2A4\uD140 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uBD88\uB7EC\uC624\uB824\uBA74 "),Lt=s("code"),Oa=r("diffusers/examples/community"),ln=r("\uC5D0 \uC788\uB294 \uD30C\uC77C \uC911 \uD558\uB098\uB85C\uC11C "),Kt=s("code"),tn=r("custom_pipeline"),en=r(" \uC778\uC218\uB97C "),Ot=s("code"),sn=r("DiffusionPipeline"),an=r("\uC5D0 \uC804\uB2EC\uD558\uAE30\uB9CC \uD558\uBA74 \uB429\uB2C8\uB2E4. \uC790\uC2E0\uB9CC\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC774 \uC788\uB294 PR\uC744 \uBCF4\uB0B4\uC8FC\uC2DC\uBA74 \uBE60\uB974\uAC8C \uBCD1\uD569\uD574\uB4DC\uB9AC\uACA0\uC2B5\uB2C8\uB2E4."),Ze=p(),u(jl.$$.fragment),ve=p(),Zl=s("h2"),nn=r("\uC0AC\uC6A9 \uC608\uC2DC"),Ge=p(),Q=s("h3"),K=s("a"),le=s("span"),u(vl.$$.fragment),rn=p(),te=s("span"),on=r("CLIP \uAC00\uC774\uB4DC \uAE30\uBC18\uC758 Stable Diffusion"),_e=p(),Wt=s("p"),pn=r("\uBAA8\uB4E0 \uB178\uC774\uC988 \uC81C\uAC70 \uB2E8\uACC4\uC5D0\uC11C \uCD94\uAC00 CLIP \uBAA8\uB378\uC744 \uD1B5\uD574 Stable Diffusion\uC744 \uAC00\uC774\uB4DC\uD568\uC73C\uB85C\uC368 CLIP \uBAA8\uB378 \uAE30\uBC18\uC758 Stable Diffusion\uC740 \uBCF4\uB2E4 \uB354 \uC0AC\uC2E4\uC801\uC778 \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uC744 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Be=p(),Et=s("p"),cn=r("\uB2E4\uC74C \uCF54\uB4DC\uB294 \uC57D 12GB\uC758 GPU RAM\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),Ie=p(),u(Gl.$$.fragment),We=p(),kt=s("p"),fn=r("\uC774\uBBF8\uC9C0` \uBAA9\uB85D\uC5D0\uB294 \uB85C\uCEEC\uC5D0 \uC800\uC7A5\uD558\uAC70\uB098 \uAD6C\uAE00 \uCF5C\uB7A9\uC5D0 \uC9C1\uC811 \uD45C\uC2DC\uD560 \uC218 \uC788\uB294 PIL \uC774\uBBF8\uC9C0 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uC0DD\uC131\uB41C \uC774\uBBF8\uC9C0\uB294 \uAE30\uBCF8\uC801\uC73C\uB85C \uC548\uC815\uC801\uC778 \uD655\uC0B0\uC744 \uC0AC\uC6A9\uD558\uB294 \uAC83\uBCF4\uB2E4 \uD488\uC9C8\uC774 \uB192\uC740 \uACBD\uD5A5\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC608\uB97C \uB4E4\uC5B4 \uC704\uC758 \uC2A4\uD06C\uB9BD\uD2B8\uB294 \uB2E4\uC74C\uACFC \uAC19\uC740 \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4:"),Ee=p(),_l=s("p"),Rt=s("img"),yn=r("."),ke=p(),N=s("h3"),O=s("a"),ee=s("span"),u(Bl.$$.fragment),un=p(),se=s("span"),Mn=r("One Step Unet"),Re=p(),Vt=s("p"),hn=r("\uC608\uC2DC \u201Cone-step-unet\u201D\uB294 \uB2E4\uC74C\uACFC \uAC19\uC774 \uC2E4\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Ve=p(),u(Il.$$.fragment),Xe=p(),D=s("p"),ae=s("strong"),mn=r("\uCC38\uACE0"),dn=r(": \uC774 \uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778\uC740 \uAE30\uB2A5\uC73C\uB85C \uC720\uC6A9\uD558\uC9C0 \uC54A\uC73C\uBA70 \uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uCD94\uAC00\uD560 \uC218 \uC788\uB294 \uBC29\uBC95\uC758 \uC608\uC2DC\uC77C \uBFD0\uC785\uB2C8\uB2E4("),Wl=s("a"),Jn=r("https://github.com/huggingface/diffusers/issues/841"),bn=r(" \uCC38\uC870)."),Ce=p(),Y=s("h3"),ll=s("a"),ne=s("span"),u(El.$$.fragment),Un=p(),ie=s("span"),wn=r("Stable Diffusion Interpolation"),Se=p(),Xt=s("p"),Tn=r("\uB2E4\uC74C \uCF54\uB4DC\uB294 \uCD5C\uC18C 8GB VRAM\uC758 GPU\uC5D0\uC11C \uC2E4\uD589\uD560 \uC218 \uC788\uC73C\uBA70 \uC57D 5\uBD84 \uC815\uB3C4 \uC18C\uC694\uB429\uB2C8\uB2E4."),Qe=p(),u(kl.$$.fragment),Ne=p(),tl=s("p"),gn=r("walk(\u2026)"),re=s("code"),jn=r("\uD568\uC218\uC758 \uCD9C\uB825\uC740"),Zn=r("output_dir`\uC5D0 \uC815\uC758\uB41C \uB300\uB85C \uD3F4\uB354\uC5D0 \uC800\uC7A5\uB41C \uC774\uBBF8\uC9C0 \uBAA9\uB85D\uC744 \uBC18\uD658\uD569\uB2C8\uB2E4. \uC774 \uC774\uBBF8\uC9C0\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC548\uC815\uC801\uC73C\uB85C \uD655\uC0B0\uB418\uB294 \uB3D9\uC601\uC0C1\uC744 \uB9CC\uB4E4 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),De=p(),Ct=s("blockquote"),Rl=s("p"),vn=r("\uC548\uC815\uB41C \uD655\uC0B0\uC744 \uC774\uC6A9\uD55C \uB3D9\uC601\uC0C1 \uC81C\uC791 \uBC29\uBC95\uACFC \uB354 \uB9CE\uC740 \uAE30\uB2A5\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 "),Vl=s("a"),Gn=r("https://github.com/nateraw/stable-diffusion-videos"),_n=r(" \uC5D0\uC11C \uD655\uC778\uD558\uC2DC\uAE30 \uBC14\uB78D\uB2C8\uB2E4."),Ye=p(),F=s("h3"),el=s("a"),oe=s("span"),u(Xl.$$.fragment),Bn=p(),pe=s("span"),In=r("Stable Diffusion Mega"),Fe=p(),St=s("p"),Wn=r("The Stable Diffusion Mega \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD558\uBA74 Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778\uC758 \uC8FC\uC694 \uC0AC\uC6A9 \uC0AC\uB840\uB97C \uB2E8\uC77C \uD074\uB798\uC2A4\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),ze=p(),u(Cl.$$.fragment),Ae=p(),Qt=s("p"),En=r("\uC704\uC5D0 \uD45C\uC2DC\uB41C \uAC83\uCC98\uB7FC \uD558\uB098\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC5D0\uC11C \u2018\uD14D\uC2A4\uD2B8-\uC774\uBBF8\uC9C0 \uBCC0\uD658\u2019, \u2018\uC774\uBBF8\uC9C0-\uC774\uBBF8\uC9C0 \uBCC0\uD658\u2019, \u2018\uC778\uD398\uC778\uD305\u2019\uC744 \uBAA8\uB450 \uC2E4\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),xe=p(),z=s("h3"),sl=s("a"),ce=s("span"),u(Sl.$$.fragment),kn=p(),fe=s("span"),Rn=r("Long Prompt Weighting Stable Diffusion"),$e=p(),Nt=s("p"),Vn=r(`\uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD558\uBA74 77\uAC1C\uC758 \uD1A0\uD070 \uAE38\uC774 \uC81C\uD55C \uC5C6\uC774 \uD504\uB86C\uD504\uD2B8\uB97C \uC785\uB825\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uB610\uD55C \u201D()\u201C\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB2E8\uC5B4 \uAC00\uC911\uCE58\uB97C \uB192\uC774\uAC70\uB098 \u201D[]\u201C\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB2E8\uC5B4 \uAC00\uC911\uCE58\uB97C \uB0AE\uCD9C \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB610\uD55C \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD558\uBA74 \uB2E8\uC77C \uD074\uB798\uC2A4\uC5D0\uC11C Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778\uC758 \uC8FC\uC694 \uC0AC\uC6A9 \uC0AC\uB840\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),He=p(),A=s("h4"),al=s("a"),ye=s("span"),u(Ql.$$.fragment),Xn=p(),ue=s("span"),Cn=r("pytorch"),qe=p(),u(Nl.$$.fragment),Pe=p(),x=s("h4"),nl=s("a"),Me=s("span"),u(Dl.$$.fragment),Sn=p(),he=s("span"),Qn=r("onnxruntime"),Le=p(),u(Yl.$$.fragment),Ke=p(),Dt=s("p"),Nn=r("\uD1A0\uD070 \uC778\uB371\uC2A4 \uC2DC\uD000\uC2A4 \uAE38\uC774\uAC00 \uC774 \uBAA8\uB378\uC5D0 \uC9C0\uC815\uB41C \uCD5C\uB300 \uC2DC\uD000\uC2A4 \uAE38\uC774\uBCF4\uB2E4 \uAE38\uBA74(*** > 77). \uC774 \uC2DC\uD000\uC2A4\uB97C \uBAA8\uB378\uC5D0\uC11C \uC2E4\uD589\uD558\uBA74 \uC778\uB371\uC2F1 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD569\uB2C8\uB2E4`. \uC815\uC0C1\uC801\uC778 \uD604\uC0C1\uC774\uB2C8 \uAC71\uC815\uD558\uC9C0 \uB9C8\uC138\uC694."),Oe=p(),$=s("h3"),il=s("a"),me=s("span"),u(Fl.$$.fragment),Dn=p(),de=s("span"),Yn=r("Speech to Image"),ls=p(),Yt=s("p"),Fn=r("\uB2E4\uC74C \uCF54\uB4DC\uB294 \uC0AC\uC804\uD559\uC2B5\uB41C OpenAI whisper-small\uACFC Stable Diffusion\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC624\uB514\uC624 \uC0D8\uD50C\uC5D0\uC11C \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),ts=p(),u(zl.$$.fragment),es=p(),Ft=s("p"),zn=r("\uC704 \uC608\uC2DC\uB294 \uB2E4\uC74C\uC758 \uACB0\uACFC \uC774\uBBF8\uC9C0\uB97C \uBCF4\uC785\uB2C8\uB2E4."),ss=p(),zt=s("p"),At=s("img"),this.h()},l(l){const f=Hr('[data-svelte="svelte-1phssyn"]',document.head);C=a(f,"META",{name:!0,content:!0}),f.forEach(e),Ue=c(l),cl=a(l,"H1",{id:!0});var Ln=n(cl);bs=o(Ln,"\uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778"),Ln.forEach(e),we=c(l),Al=a(l,"BLOCKQUOTE",{});var Kn=n(Al);fl=a(Kn,"P",{});var ns=n(fl);Us=o(ns,"**\uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 "),yl=a(ns,"A",{href:!0,rel:!0});var On=n(yl);ws=o(On,"\uC774 \uC774\uC288"),On.forEach(e),Ts=o(ns,"\uB97C \uCC38\uC870\uD558\uC138\uC694."),ns.forEach(e),Kn.forEach(e),Te=c(l),S=a(l,"P",{});var Je=n(S);xt=a(Je,"STRONG",{});var li=n(xt);gs=o(li,"\uCEE4\uBBA4\uB2C8\uD2F0"),li.forEach(e),js=o(Je,` \uC608\uC81C\uB294 \uCEE4\uBBA4\uB2C8\uD2F0\uC5D0\uC11C \uCD94\uAC00\uD55C \uCD94\uB860 \uBC0F \uD6C8\uB828 \uC608\uC81C\uB85C \uAD6C\uC131\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.
\uB2E4\uC74C \uD45C\uB97C \uCC38\uC870\uD558\uC5EC \uBAA8\uB4E0 \uCEE4\uBBA4\uB2C8\uD2F0 \uC608\uC81C\uC5D0 \uB300\uD55C \uAC1C\uC694\uB97C \uD655\uC778\uD558\uC2DC\uAE30 \uBC14\uB78D\uB2C8\uB2E4. `),$t=a(Je,"STRONG",{});var ti=n($t);Zs=o(ti,"\uCF54\uB4DC \uC608\uC81C"),ti.forEach(e),vs=o(Je,`\uB97C \uD074\uB9AD\uD558\uBA74 \uBCF5\uC0AC\uD558\uC5EC \uBD99\uC5EC\uB123\uAE30\uD560 \uC218 \uC788\uB294 \uCF54\uB4DC \uC608\uC81C\uB97C \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uCEE4\uBBA4\uB2C8\uD2F0\uAC00 \uC608\uC0C1\uB300\uB85C \uC791\uB3D9\uD558\uC9C0 \uC54A\uB294 \uACBD\uC6B0 \uC774\uC288\uB97C \uAC1C\uC124\uD558\uACE0 \uC791\uC131\uC790\uC5D0\uAC8C \uD551\uC744 \uBCF4\uB0B4\uC8FC\uC138\uC694.`),Je.forEach(e),ge=c(l),q=a(l,"TABLE",{});var is=n(q);Ht=a(is,"THEAD",{});var ei=n(Ht);U=a(ei,"TR",{});var I=n(U);xl=a(I,"TH",{align:!0});var si=n(xl);Gs=o(si,"\uC608"),si.forEach(e),_s=c(I),$l=a(I,"TH",{align:!0});var ai=n($l);Bs=o(ai,"\uC124\uBA85"),ai.forEach(e),Is=c(I),Hl=a(I,"TH",{align:!0});var ni=n(Hl);Ws=o(ni,"\uCF54\uB4DC \uC608\uC81C"),ni.forEach(e),Es=c(I),ql=a(I,"TH",{align:!0});var ii=n(ql);ks=o(ii,"\uCF5C\uB7A9"),ii.forEach(e),Rs=c(I),Pl=a(I,"TH",{align:!0});var ri=n(Pl);Vs=o(ri,"\uC800\uC790"),ri.forEach(e),I.forEach(e),ei.forEach(e),Xs=c(is),b=a(is,"TBODY",{});var B=n(b);w=a(B,"TR",{});var W=n(w);Ll=a(W,"TD",{align:!0});var oi=n(Ll);Cs=o(oi,"CLIP Guided Stable Diffusion"),oi.forEach(e),Ss=c(W),Kl=a(W,"TD",{align:!0});var pi=n(Kl);Qs=o(pi,"CLIP \uAC00\uC774\uB4DC \uAE30\uBC18\uC758 Stable Diffusion\uC73C\uB85C \uD14D\uC2A4\uD2B8\uC5D0\uC11C \uC774\uBBF8\uC9C0\uB85C \uC0DD\uC131\uD558\uAE30"),pi.forEach(e),Ns=c(W),Ol=a(W,"TD",{align:!0});var ci=n(Ol);lt=a(ci,"A",{href:!0});var fi=n(lt);Ds=o(fi,"CLIP Guided Stable Diffusion"),fi.forEach(e),ci.forEach(e),Ys=c(W),tt=a(W,"TD",{align:!0});var yi=n(tt);ul=a(yi,"A",{href:!0,rel:!0});var ui=n(ul);et=a(ui,"IMG",{src:!0,alt:!0}),ui.forEach(e),yi.forEach(e),Fs=c(W),st=a(W,"TD",{align:!0});var Mi=n(st);Ml=a(Mi,"A",{href:!0,rel:!0});var hi=n(Ml);zs=o(hi,"Suraj Patil"),hi.forEach(e),Mi.forEach(e),W.forEach(e),As=c(B),T=a(B,"TR",{});var E=n(T);at=a(E,"TD",{align:!0});var mi=n(at);xs=o(mi,"One Step U-Net (Dummy)"),mi.forEach(e),$s=c(E),P=a(E,"TD",{align:!0});var rs=n(P);Hs=o(rs,"\uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC5B4\uB5BB\uAC8C \uC0AC\uC6A9\uD574\uC57C \uD558\uB294\uC9C0\uC5D0 \uB300\uD55C \uC608\uC2DC(\uCC38\uACE0 "),hl=a(rs,"A",{href:!0,rel:!0});var di=n(hl);qs=o(di,"https://github.com/huggingface/diffusers/issues/841"),di.forEach(e),Ps=o(rs,")"),rs.forEach(e),Ls=c(E),nt=a(E,"TD",{align:!0});var Ji=n(nt);it=a(Ji,"A",{href:!0});var bi=n(it);Ks=o(bi,"One Step U-Net"),bi.forEach(e),Ji.forEach(e),Os=c(E),rt=a(E,"TD",{align:!0});var Ui=n(rt);la=o(Ui,"-"),Ui.forEach(e),ta=c(E),ot=a(E,"TD",{align:!0});var wi=n(ot);ml=a(wi,"A",{href:!0,rel:!0});var Ti=n(ml);ea=o(Ti,"Patrick von Platen"),Ti.forEach(e),wi.forEach(e),E.forEach(e),sa=c(B),g=a(B,"TR",{});var k=n(g);pt=a(k,"TD",{align:!0});var gi=n(pt);aa=o(gi,"Stable Diffusion Interpolation"),gi.forEach(e),na=c(k),ct=a(k,"TD",{align:!0});var ji=n(ct);ia=o(ji,"\uC11C\uB85C \uB2E4\uB978 \uD504\uB86C\uD504\uD2B8/\uC2DC\uB4DC \uAC04 Stable Diffusion\uC758 latent space \uBCF4\uAC04"),ji.forEach(e),ra=c(k),ft=a(k,"TD",{align:!0});var Zi=n(ft);yt=a(Zi,"A",{href:!0});var vi=n(yt);oa=o(vi,"Stable Diffusion Interpolation"),vi.forEach(e),Zi.forEach(e),pa=c(k),ut=a(k,"TD",{align:!0});var Gi=n(ut);ca=o(Gi,"-"),Gi.forEach(e),fa=c(k),Mt=a(k,"TD",{align:!0});var _i=n(Mt);dl=a(_i,"A",{href:!0,rel:!0});var Bi=n(dl);ya=o(Bi,"Nate Raw"),Bi.forEach(e),_i.forEach(e),k.forEach(e),ua=c(B),j=a(B,"TR",{});var R=n(j);ht=a(R,"TD",{align:!0});var Ii=n(ht);Ma=o(Ii,"Stable Diffusion Mega"),Ii.forEach(e),ha=c(R),Z=a(R,"TD",{align:!0});var H=n(Z);ma=o(H,"\uBAA8\uB4E0 \uAE30\uB2A5\uC744 \uAC16\uCD98 "),qt=a(H,"STRONG",{});var Wi=n(qt);da=o(Wi,"\uD558\uB098\uC758"),Wi.forEach(e),Ja=o(H," Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778 "),Jl=a(H,"A",{href:!0,rel:!0});var Ei=n(Jl);ba=o(Ei,"Text2Image"),Ei.forEach(e),Ua=o(H,", "),bl=a(H,"A",{href:!0,rel:!0});var ki=n(bl);wa=o(ki,"Image2Image"),ki.forEach(e),Ta=o(H," and "),Ul=a(H,"A",{href:!0,rel:!0});var Ri=n(Ul);ga=o(Ri,"Inpainting"),Ri.forEach(e),H.forEach(e),ja=c(R),mt=a(R,"TD",{align:!0});var Vi=n(mt);dt=a(Vi,"A",{href:!0});var Xi=n(dt);Za=o(Xi,"Stable Diffusion Mega"),Xi.forEach(e),Vi.forEach(e),va=c(R),Jt=a(R,"TD",{align:!0});var Ci=n(Jt);Ga=o(Ci,"-"),Ci.forEach(e),_a=c(R),bt=a(R,"TD",{align:!0});var Si=n(bt);wl=a(Si,"A",{href:!0,rel:!0});var Qi=n(wl);Ba=o(Qi,"Patrick von Platen"),Qi.forEach(e),Si.forEach(e),R.forEach(e),Ia=c(B),v=a(B,"TR",{});var V=n(v);Ut=a(V,"TD",{align:!0});var Ni=n(Ut);Wa=o(Ni,"Long Prompt Weighting Stable Diffusion"),Ni.forEach(e),Ea=c(V),L=a(V,"TD",{align:!0});var os=n(L);ka=o(os,"\uD1A0\uD070 \uAE38\uC774 \uC81C\uD55C\uC774 \uC5C6\uACE0 \uD504\uB86C\uD504\uD2B8\uC5D0\uC11C \uD30C\uC2F1 \uAC00\uC911\uCE58 \uC9C0\uC6D0\uC744 \uD558\uB294 "),Pt=a(os,"STRONG",{});var Di=n(Pt);Ra=o(Di,"\uD558\uB098\uC758"),Di.forEach(e),Va=o(os," Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778,"),os.forEach(e),Xa=c(V),wt=a(V,"TD",{align:!0});var Yi=n(wt);Tt=a(Yi,"A",{href:!0});var Fi=n(Tt);Ca=o(Fi,"Long Prompt Weighting Stable Diffusion"),Fi.forEach(e),Yi.forEach(e),Sa=c(V),gt=a(V,"TD",{align:!0});var zi=n(gt);Qa=o(zi,"-"),zi.forEach(e),Na=c(V),jt=a(V,"TD",{align:!0});var Ai=n(jt);Tl=a(Ai,"A",{href:!0,rel:!0});var xi=n(Tl);Da=o(xi,"SkyTNT"),xi.forEach(e),Ai.forEach(e),V.forEach(e),Ya=c(B),G=a(B,"TR",{});var X=n(G);Zt=a(X,"TD",{align:!0});var $i=n(Zt);Fa=o($i,"Speech to Image"),$i.forEach(e),za=c(X),vt=a(X,"TD",{align:!0});var Hi=n(vt);Aa=o(Hi,"\uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC0AC\uC6A9\uD558\uC5EC \uD14D\uC2A4\uD2B8\uB97C \uC791\uC131\uD558\uACE0 Stable Diffusion\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4."),Hi.forEach(e),xa=c(X),Gt=a(X,"TD",{align:!0});var qi=n(Gt);_t=a(qi,"A",{href:!0});var Pi=n(_t);$a=o(Pi,"Speech to Image"),Pi.forEach(e),qi.forEach(e),Ha=c(X),Bt=a(X,"TD",{align:!0});var Li=n(Bt);qa=o(Li,"-"),Li.forEach(e),Pa=c(X),It=a(X,"TD",{align:!0});var Ki=n(It);gl=a(Ki,"A",{href:!0,rel:!0});var Oi=n(gl);La=o(Oi,"Mikail Duzenli"),Oi.forEach(e),Ki.forEach(e),X.forEach(e),B.forEach(e),is.forEach(e),je=c(l),_=a(l,"P",{});var rl=n(_);Ka=o(rl,"\uCEE4\uC2A4\uD140 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uBD88\uB7EC\uC624\uB824\uBA74 "),Lt=a(rl,"CODE",{});var lr=n(Lt);Oa=o(lr,"diffusers/examples/community"),lr.forEach(e),ln=o(rl,"\uC5D0 \uC788\uB294 \uD30C\uC77C \uC911 \uD558\uB098\uB85C\uC11C "),Kt=a(rl,"CODE",{});var tr=n(Kt);tn=o(tr,"custom_pipeline"),tr.forEach(e),en=o(rl," \uC778\uC218\uB97C "),Ot=a(rl,"CODE",{});var er=n(Ot);sn=o(er,"DiffusionPipeline"),er.forEach(e),an=o(rl,"\uC5D0 \uC804\uB2EC\uD558\uAE30\uB9CC \uD558\uBA74 \uB429\uB2C8\uB2E4. \uC790\uC2E0\uB9CC\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC774 \uC788\uB294 PR\uC744 \uBCF4\uB0B4\uC8FC\uC2DC\uBA74 \uBE60\uB974\uAC8C \uBCD1\uD569\uD574\uB4DC\uB9AC\uACA0\uC2B5\uB2C8\uB2E4."),rl.forEach(e),Ze=c(l),M(jl.$$.fragment,l),ve=c(l),Zl=a(l,"H2",{id:!0});var sr=n(Zl);nn=o(sr,"\uC0AC\uC6A9 \uC608\uC2DC"),sr.forEach(e),Ge=c(l),Q=a(l,"H3",{class:!0});var ps=n(Q);K=a(ps,"A",{id:!0,class:!0,href:!0});var ar=n(K);le=a(ar,"SPAN",{});var nr=n(le);M(vl.$$.fragment,nr),nr.forEach(e),ar.forEach(e),rn=c(ps),te=a(ps,"SPAN",{});var ir=n(te);on=o(ir,"CLIP \uAC00\uC774\uB4DC \uAE30\uBC18\uC758 Stable Diffusion"),ir.forEach(e),ps.forEach(e),_e=c(l),Wt=a(l,"P",{});var rr=n(Wt);pn=o(rr,"\uBAA8\uB4E0 \uB178\uC774\uC988 \uC81C\uAC70 \uB2E8\uACC4\uC5D0\uC11C \uCD94\uAC00 CLIP \uBAA8\uB378\uC744 \uD1B5\uD574 Stable Diffusion\uC744 \uAC00\uC774\uB4DC\uD568\uC73C\uB85C\uC368 CLIP \uBAA8\uB378 \uAE30\uBC18\uC758 Stable Diffusion\uC740 \uBCF4\uB2E4 \uB354 \uC0AC\uC2E4\uC801\uC778 \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uC744 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),rr.forEach(e),Be=c(l),Et=a(l,"P",{});var or=n(Et);cn=o(or,"\uB2E4\uC74C \uCF54\uB4DC\uB294 \uC57D 12GB\uC758 GPU RAM\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."),or.forEach(e),Ie=c(l),M(Gl.$$.fragment,l),We=c(l),kt=a(l,"P",{});var pr=n(kt);fn=o(pr,"\uC774\uBBF8\uC9C0` \uBAA9\uB85D\uC5D0\uB294 \uB85C\uCEEC\uC5D0 \uC800\uC7A5\uD558\uAC70\uB098 \uAD6C\uAE00 \uCF5C\uB7A9\uC5D0 \uC9C1\uC811 \uD45C\uC2DC\uD560 \uC218 \uC788\uB294 PIL \uC774\uBBF8\uC9C0 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uC0DD\uC131\uB41C \uC774\uBBF8\uC9C0\uB294 \uAE30\uBCF8\uC801\uC73C\uB85C \uC548\uC815\uC801\uC778 \uD655\uC0B0\uC744 \uC0AC\uC6A9\uD558\uB294 \uAC83\uBCF4\uB2E4 \uD488\uC9C8\uC774 \uB192\uC740 \uACBD\uD5A5\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC608\uB97C \uB4E4\uC5B4 \uC704\uC758 \uC2A4\uD06C\uB9BD\uD2B8\uB294 \uB2E4\uC74C\uACFC \uAC19\uC740 \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4:"),pr.forEach(e),Ee=c(l),_l=a(l,"P",{});var An=n(_l);Rt=a(An,"IMG",{src:!0,alt:!0}),yn=o(An,"."),An.forEach(e),ke=c(l),N=a(l,"H3",{class:!0});var cs=n(N);O=a(cs,"A",{id:!0,class:!0,href:!0});var cr=n(O);ee=a(cr,"SPAN",{});var fr=n(ee);M(Bl.$$.fragment,fr),fr.forEach(e),cr.forEach(e),un=c(cs),se=a(cs,"SPAN",{});var yr=n(se);Mn=o(yr,"One Step Unet"),yr.forEach(e),cs.forEach(e),Re=c(l),Vt=a(l,"P",{});var ur=n(Vt);hn=o(ur,"\uC608\uC2DC \u201Cone-step-unet\u201D\uB294 \uB2E4\uC74C\uACFC \uAC19\uC774 \uC2E4\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),ur.forEach(e),Ve=c(l),M(Il.$$.fragment,l),Xe=c(l),D=a(l,"P",{});var be=n(D);ae=a(be,"STRONG",{});var Mr=n(ae);mn=o(Mr,"\uCC38\uACE0"),Mr.forEach(e),dn=o(be,": \uC774 \uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778\uC740 \uAE30\uB2A5\uC73C\uB85C \uC720\uC6A9\uD558\uC9C0 \uC54A\uC73C\uBA70 \uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uCD94\uAC00\uD560 \uC218 \uC788\uB294 \uBC29\uBC95\uC758 \uC608\uC2DC\uC77C \uBFD0\uC785\uB2C8\uB2E4("),Wl=a(be,"A",{href:!0,rel:!0});var hr=n(Wl);Jn=o(hr,"https://github.com/huggingface/diffusers/issues/841"),hr.forEach(e),bn=o(be," \uCC38\uC870)."),be.forEach(e),Ce=c(l),Y=a(l,"H3",{class:!0});var fs=n(Y);ll=a(fs,"A",{id:!0,class:!0,href:!0});var mr=n(ll);ne=a(mr,"SPAN",{});var dr=n(ne);M(El.$$.fragment,dr),dr.forEach(e),mr.forEach(e),Un=c(fs),ie=a(fs,"SPAN",{});var Jr=n(ie);wn=o(Jr,"Stable Diffusion Interpolation"),Jr.forEach(e),fs.forEach(e),Se=c(l),Xt=a(l,"P",{});var br=n(Xt);Tn=o(br,"\uB2E4\uC74C \uCF54\uB4DC\uB294 \uCD5C\uC18C 8GB VRAM\uC758 GPU\uC5D0\uC11C \uC2E4\uD589\uD560 \uC218 \uC788\uC73C\uBA70 \uC57D 5\uBD84 \uC815\uB3C4 \uC18C\uC694\uB429\uB2C8\uB2E4."),br.forEach(e),Qe=c(l),M(kl.$$.fragment,l),Ne=c(l),tl=a(l,"P",{});var ys=n(tl);gn=o(ys,"walk(\u2026)"),re=a(ys,"CODE",{});var Ur=n(re);jn=o(Ur,"\uD568\uC218\uC758 \uCD9C\uB825\uC740"),Ur.forEach(e),Zn=o(ys,"output_dir`\uC5D0 \uC815\uC758\uB41C \uB300\uB85C \uD3F4\uB354\uC5D0 \uC800\uC7A5\uB41C \uC774\uBBF8\uC9C0 \uBAA9\uB85D\uC744 \uBC18\uD658\uD569\uB2C8\uB2E4. \uC774 \uC774\uBBF8\uC9C0\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC548\uC815\uC801\uC73C\uB85C \uD655\uC0B0\uB418\uB294 \uB3D9\uC601\uC0C1\uC744 \uB9CC\uB4E4 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),ys.forEach(e),De=c(l),Ct=a(l,"BLOCKQUOTE",{});var wr=n(Ct);Rl=a(wr,"P",{});var us=n(Rl);vn=o(us,"\uC548\uC815\uB41C \uD655\uC0B0\uC744 \uC774\uC6A9\uD55C \uB3D9\uC601\uC0C1 \uC81C\uC791 \uBC29\uBC95\uACFC \uB354 \uB9CE\uC740 \uAE30\uB2A5\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 "),Vl=a(us,"A",{href:!0,rel:!0});var Tr=n(Vl);Gn=o(Tr,"https://github.com/nateraw/stable-diffusion-videos"),Tr.forEach(e),_n=o(us," \uC5D0\uC11C \uD655\uC778\uD558\uC2DC\uAE30 \uBC14\uB78D\uB2C8\uB2E4."),us.forEach(e),wr.forEach(e),Ye=c(l),F=a(l,"H3",{class:!0});var Ms=n(F);el=a(Ms,"A",{id:!0,class:!0,href:!0});var gr=n(el);oe=a(gr,"SPAN",{});var jr=n(oe);M(Xl.$$.fragment,jr),jr.forEach(e),gr.forEach(e),Bn=c(Ms),pe=a(Ms,"SPAN",{});var Zr=n(pe);In=o(Zr,"Stable Diffusion Mega"),Zr.forEach(e),Ms.forEach(e),Fe=c(l),St=a(l,"P",{});var vr=n(St);Wn=o(vr,"The Stable Diffusion Mega \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD558\uBA74 Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778\uC758 \uC8FC\uC694 \uC0AC\uC6A9 \uC0AC\uB840\uB97C \uB2E8\uC77C \uD074\uB798\uC2A4\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),vr.forEach(e),ze=c(l),M(Cl.$$.fragment,l),Ae=c(l),Qt=a(l,"P",{});var Gr=n(Qt);En=o(Gr,"\uC704\uC5D0 \uD45C\uC2DC\uB41C \uAC83\uCC98\uB7FC \uD558\uB098\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC5D0\uC11C \u2018\uD14D\uC2A4\uD2B8-\uC774\uBBF8\uC9C0 \uBCC0\uD658\u2019, \u2018\uC774\uBBF8\uC9C0-\uC774\uBBF8\uC9C0 \uBCC0\uD658\u2019, \u2018\uC778\uD398\uC778\uD305\u2019\uC744 \uBAA8\uB450 \uC2E4\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Gr.forEach(e),xe=c(l),z=a(l,"H3",{class:!0});var hs=n(z);sl=a(hs,"A",{id:!0,class:!0,href:!0});var _r=n(sl);ce=a(_r,"SPAN",{});var Br=n(ce);M(Sl.$$.fragment,Br),Br.forEach(e),_r.forEach(e),kn=c(hs),fe=a(hs,"SPAN",{});var Ir=n(fe);Rn=o(Ir,"Long Prompt Weighting Stable Diffusion"),Ir.forEach(e),hs.forEach(e),$e=c(l),Nt=a(l,"P",{});var Wr=n(Nt);Vn=o(Wr,`\uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD558\uBA74 77\uAC1C\uC758 \uD1A0\uD070 \uAE38\uC774 \uC81C\uD55C \uC5C6\uC774 \uD504\uB86C\uD504\uD2B8\uB97C \uC785\uB825\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uB610\uD55C \u201D()\u201C\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB2E8\uC5B4 \uAC00\uC911\uCE58\uB97C \uB192\uC774\uAC70\uB098 \u201D[]\u201C\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB2E8\uC5B4 \uAC00\uC911\uCE58\uB97C \uB0AE\uCD9C \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB610\uD55C \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD558\uBA74 \uB2E8\uC77C \uD074\uB798\uC2A4\uC5D0\uC11C Stable Diffusion \uD30C\uC774\uD504\uB77C\uC778\uC758 \uC8FC\uC694 \uC0AC\uC6A9 \uC0AC\uB840\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),Wr.forEach(e),He=c(l),A=a(l,"H4",{class:!0});var ms=n(A);al=a(ms,"A",{id:!0,class:!0,href:!0});var Er=n(al);ye=a(Er,"SPAN",{});var kr=n(ye);M(Ql.$$.fragment,kr),kr.forEach(e),Er.forEach(e),Xn=c(ms),ue=a(ms,"SPAN",{});var Rr=n(ue);Cn=o(Rr,"pytorch"),Rr.forEach(e),ms.forEach(e),qe=c(l),M(Nl.$$.fragment,l),Pe=c(l),x=a(l,"H4",{class:!0});var ds=n(x);nl=a(ds,"A",{id:!0,class:!0,href:!0});var Vr=n(nl);Me=a(Vr,"SPAN",{});var Xr=n(Me);M(Dl.$$.fragment,Xr),Xr.forEach(e),Vr.forEach(e),Sn=c(ds),he=a(ds,"SPAN",{});var Cr=n(he);Qn=o(Cr,"onnxruntime"),Cr.forEach(e),ds.forEach(e),Le=c(l),M(Yl.$$.fragment,l),Ke=c(l),Dt=a(l,"P",{});var Sr=n(Dt);Nn=o(Sr,"\uD1A0\uD070 \uC778\uB371\uC2A4 \uC2DC\uD000\uC2A4 \uAE38\uC774\uAC00 \uC774 \uBAA8\uB378\uC5D0 \uC9C0\uC815\uB41C \uCD5C\uB300 \uC2DC\uD000\uC2A4 \uAE38\uC774\uBCF4\uB2E4 \uAE38\uBA74(*** > 77). \uC774 \uC2DC\uD000\uC2A4\uB97C \uBAA8\uB378\uC5D0\uC11C \uC2E4\uD589\uD558\uBA74 \uC778\uB371\uC2F1 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD569\uB2C8\uB2E4`. \uC815\uC0C1\uC801\uC778 \uD604\uC0C1\uC774\uB2C8 \uAC71\uC815\uD558\uC9C0 \uB9C8\uC138\uC694."),Sr.forEach(e),Oe=c(l),$=a(l,"H3",{class:!0});var Js=n($);il=a(Js,"A",{id:!0,class:!0,href:!0});var Qr=n(il);me=a(Qr,"SPAN",{});var Nr=n(me);M(Fl.$$.fragment,Nr),Nr.forEach(e),Qr.forEach(e),Dn=c(Js),de=a(Js,"SPAN",{});var Dr=n(de);Yn=o(Dr,"Speech to Image"),Dr.forEach(e),Js.forEach(e),ls=c(l),Yt=a(l,"P",{});var Yr=n(Yt);Fn=o(Yr,"\uB2E4\uC74C \uCF54\uB4DC\uB294 \uC0AC\uC804\uD559\uC2B5\uB41C OpenAI whisper-small\uACFC Stable Diffusion\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC624\uB514\uC624 \uC0D8\uD50C\uC5D0\uC11C \uC774\uBBF8\uC9C0\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Yr.forEach(e),ts=c(l),M(zl.$$.fragment,l),es=c(l),Ft=a(l,"P",{});var Fr=n(Ft);zn=o(Fr,"\uC704 \uC608\uC2DC\uB294 \uB2E4\uC74C\uC758 \uACB0\uACFC \uC774\uBBF8\uC9C0\uB97C \uBCF4\uC785\uB2C8\uB2E4."),Fr.forEach(e),ss=c(l),zt=a(l,"P",{});var zr=n(zt);At=a(zr,"IMG",{src:!0,alt:!0}),zr.forEach(e),this.h()},h(){i(C,"name","hf:doc:metadata"),i(C,"content",JSON.stringify(Kr)),i(cl,"id",""),i(yl,"href","https://github.com/huggingface/diffusers/issues/841"),i(yl,"rel","nofollow"),i(xl,"align","left"),i($l,"align","left"),i(Hl,"align","left"),i(ql,"align","left"),i(Pl,"align","right"),i(Ll,"align","left"),i(Kl,"align","left"),i(lt,"href","#clip-guided-stable-diffusion"),i(Ol,"align","left"),xn(et.src,Hn="https://colab.research.google.com/assets/colab-badge.svg")||i(et,"src",Hn),i(et,"alt","\uCF5C\uB7A9\uC5D0\uC11C \uC5F4\uAE30"),i(ul,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/CLIP_Guided_Stable_diffusion_with_diffusers.ipynb"),i(ul,"rel","nofollow"),i(tt,"align","left"),i(Ml,"href","https://github.com/patil-suraj/"),i(Ml,"rel","nofollow"),i(st,"align","right"),i(at,"align","left"),i(hl,"href","https://github.com/huggingface/diffusers/issues/841"),i(hl,"rel","nofollow"),i(P,"align","left"),i(it,"href","#one-step-unet"),i(nt,"align","left"),i(rt,"align","left"),i(ml,"href","https://github.com/patrickvonplaten/"),i(ml,"rel","nofollow"),i(ot,"align","right"),i(pt,"align","left"),i(ct,"align","left"),i(yt,"href","#stable-diffusion-interpolation"),i(ft,"align","left"),i(ut,"align","left"),i(dl,"href","https://github.com/nateraw/"),i(dl,"rel","nofollow"),i(Mt,"align","right"),i(ht,"align","left"),i(Jl,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py"),i(Jl,"rel","nofollow"),i(bl,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"),i(bl,"rel","nofollow"),i(Ul,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"),i(Ul,"rel","nofollow"),i(Z,"align","left"),i(dt,"href","#stable-diffusion-mega"),i(mt,"align","left"),i(Jt,"align","left"),i(wl,"href","https://github.com/patrickvonplaten/"),i(wl,"rel","nofollow"),i(bt,"align","right"),i(Ut,"align","left"),i(L,"align","left"),i(Tt,"href","#long-prompt-weighting-stable-diffusion"),i(wt,"align","left"),i(gt,"align","left"),i(Tl,"href","https://github.com/SkyTNT"),i(Tl,"rel","nofollow"),i(jt,"align","right"),i(Zt,"align","left"),i(vt,"align","left"),i(_t,"href","#speech-to-image"),i(Gt,"align","left"),i(Bt,"align","left"),i(gl,"href","https://github.com/MikailINTech"),i(gl,"rel","nofollow"),i(It,"align","right"),i(Zl,"id",""),i(K,"id","clip-stable-diffusion"),i(K,"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"),i(K,"href","#clip-stable-diffusion"),i(Q,"class","relative group"),xn(Rt.src,qn="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/clip_guidance/merged_clip_guidance.jpg")||i(Rt,"src",qn),i(Rt,"alt","clip_guidance"),i(O,"id","one-step-unet"),i(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"),i(O,"href","#one-step-unet"),i(N,"class","relative group"),i(Wl,"href","https://github.com/huggingface/diffusers/issues/841"),i(Wl,"rel","nofollow"),i(ll,"id","stable-diffusion-interpolation"),i(ll,"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"),i(ll,"href","#stable-diffusion-interpolation"),i(Y,"class","relative group"),i(Vl,"href","https://github.com/nateraw/stable-diffusion-videos"),i(Vl,"rel","nofollow"),i(el,"id","stable-diffusion-mega"),i(el,"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"),i(el,"href","#stable-diffusion-mega"),i(F,"class","relative group"),i(sl,"id","long-prompt-weighting-stable-diffusion"),i(sl,"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"),i(sl,"href","#long-prompt-weighting-stable-diffusion"),i(z,"class","relative group"),i(al,"id","pytorch"),i(al,"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"),i(al,"href","#pytorch"),i(A,"class","relative group"),i(nl,"id","onnxruntime"),i(nl,"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"),i(nl,"href","#onnxruntime"),i(x,"class","relative group"),i(il,"id","speech-to-image"),i(il,"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"),i(il,"href","#speech-to-image"),i($,"class","relative group"),xn(At.src,Pn="https://user-images.githubusercontent.com/45072645/196901736-77d9c6fc-63ee-4072-90b0-dc8b903d63e3.png")||i(At,"src",Pn),i(At,"alt","image")},m(l,f){t(document.head,C),y(l,Ue,f),y(l,cl,f),t(cl,bs),y(l,we,f),y(l,Al,f),t(Al,fl),t(fl,Us),t(fl,yl),t(yl,ws),t(fl,Ts),y(l,Te,f),y(l,S,f),t(S,xt),t(xt,gs),t(S,js),t(S,$t),t($t,Zs),t(S,vs),y(l,ge,f),y(l,q,f),t(q,Ht),t(Ht,U),t(U,xl),t(xl,Gs),t(U,_s),t(U,$l),t($l,Bs),t(U,Is),t(U,Hl),t(Hl,Ws),t(U,Es),t(U,ql),t(ql,ks),t(U,Rs),t(U,Pl),t(Pl,Vs),t(q,Xs),t(q,b),t(b,w),t(w,Ll),t(Ll,Cs),t(w,Ss),t(w,Kl),t(Kl,Qs),t(w,Ns),t(w,Ol),t(Ol,lt),t(lt,Ds),t(w,Ys),t(w,tt),t(tt,ul),t(ul,et),t(w,Fs),t(w,st),t(st,Ml),t(Ml,zs),t(b,As),t(b,T),t(T,at),t(at,xs),t(T,$s),t(T,P),t(P,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h(zl,l,f),y(l,es,f),y(l,Ft,f),t(Ft,zn),y(l,ss,f),y(l,zt,f),t(zt,At),as=!0},p:qr,i(l){as||(m(jl.$$.fragment,l),m(vl.$$.fragment,l),m(Gl.$$.fragment,l),m(Bl.$$.fragment,l),m(Il.$$.fragment,l),m(El.$$.fragment,l),m(kl.$$.fragment,l),m(Xl.$$.fragment,l),m(Cl.$$.fragment,l),m(Sl.$$.fragment,l),m(Ql.$$.fragment,l),m(Nl.$$.fragment,l),m(Dl.$$.fragment,l),m(Yl.$$.fragment,l),m(Fl.$$.fragment,l),m(zl.$$.fragment,l),as=!0)},o(l){d(jl.$$.fragment,l),d(vl.$$.fragment,l),d(Gl.$$.fragment,l),d(Bl.$$.fragment,l),d(Il.$$.fragment,l),d(El.$$.fragment,l),d(kl.$$.fragment,l),d(Xl.$$.fragment,l),d(Cl.$$.fragment,l),d(Sl.$$.fragment,l),d(Ql.$$.fragment,l),d(Nl.$$.fragment,l),d(Dl.$$.fragment,l),d(Yl.$$.fragment,l),d(Fl.$$.fragment,l),d(zl.$$.fragment,l),as=!1},d(l){e(C),l&&e(Ue),l&&e(cl),l&&e(we),l&&e(Al),l&&e(Te),l&&e(S),l&&e(ge),l&&e(q),l&&e(je),l&&e(_),l&&e(Ze),J(jl,l),l&&e(ve),l&&e(Zl),l&&e(Ge),l&&e(Q),J(vl),l&&e(_e),l&&e(Wt),l&&e(Be),l&&e(Et),l&&e(Ie),J(Gl,l),l&&e(We),l&&e(kt),l&&e(Ee),l&&e(_l),l&&e(ke),l&&e(N),J(Bl),l&&e(Re),l&&e(Vt),l&&e(Ve),J(Il,l),l&&e(Xe),l&&e(D),l&&e(Ce),l&&e(Y),J(El),l&&e(Se),l&&e(Xt),l&&e(Qe),J(kl,l),l&&e(Ne),l&&e(tl),l&&e(De),l&&e(Ct),l&&e(Ye),l&&e(F),J(Xl),l&&e(Fe),l&&e(St),l&&e(ze),J(Cl,l),l&&e(Ae),l&&e(Qt),l&&e(xe),l&&e(z),J(Sl),l&&e($e),l&&e(Nt),l&&e(He),l&&e(A),J(Ql),l&&e(qe),J(Nl,l),l&&e(Pe),l&&e(x),J(Dl),l&&e(Le),J(Yl,l),l&&e(Ke),l&&e(Dt),l&&e(Oe),l&&e($),J(Fl),l&&e(ls),l&&e(Yt),l&&e(ts),J(zl,l),l&&e(es),l&&e(Ft),l&&e(ss),l&&e(zt)}}}const Kr={local:"",sections:[{local:"",sections:[{local:"clip-stable-diffusion",title:"CLIP \uAC00\uC774\uB4DC \uAE30\uBC18\uC758 Stable Diffusion"},{local:"one-step-unet",title:"One Step Unet"},{local:"stable-diffusion-interpolation",title:"Stable Diffusion Interpolation"},{local:"stable-diffusion-mega",title:"Stable Diffusion Mega"},{local:"long-prompt-weighting-stable-diffusion",sections:[{local:"pytorch",title:"pytorch"},{local:"onnxruntime",title:"onnxruntime"}],title:"Long Prompt Weighting Stable Diffusion"},{local:"speech-to-image",title:"Speech to Image"}],title:"\uC0AC\uC6A9 \uC608\uC2DC"}],title:"\uCEE4\uBBA4\uB2C8\uD2F0 \uD30C\uC774\uD504\uB77C\uC778"};function Or($n){return Pr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class so extends Ar{constructor(C){super();xr(this,C,Or,Lr,$r,{})}}export{so as default,Kr as metadata};
