import{s as Ve,o as Le,n as he}from"../chunks/scheduler.8c3d61f6.js";import{S as qe,i as Ye,g as c,s as l,r as _,A as Se,h as d,f as s,c as r,j as O,u as y,x as h,k as ee,y as m,a as i,v as b,d as M,t as w,w as T}from"../chunks/index.da70eac4.js";import{T as We}from"../chunks/Tip.1d9b8c37.js";import{D as ge}from"../chunks/Docstring.c021b19a.js";import{C as Re}from"../chunks/CodeBlock.a9c4becf.js";import{E as Qe}from"../chunks/ExampleCodeBlock.56b4589c.js";import{H as ve,E as Fe}from"../chunks/getInferenceSnippets.725ed3d4.js";function Ee(v){let n,u="This pipeline is deprecated but it can still be used. However, we won’t test the pipeline anymore and won’t accept any changes to it. If you run into any issues, reinstall the last Diffusers version that supported this model.";return{c(){n=c("p"),n.textContent=u},l(a){n=d(a,"P",{"data-svelte-h":!0}),h(n)!=="svelte-ic4u42"&&(n.textContent=u)},m(a,p){i(a,n,p)},p:he,d(a){a&&s(n)}}}function He(v){let n,u='Make sure to check out the Schedulers <a href="../../using-diffusers/schedulers">guide</a> to learn how to explore the tradeoff between scheduler speed and quality, and see the <a href="../../using-diffusers/loading#reuse-a-pipeline">reuse components across pipelines</a> section to learn how to efficiently load the same components into multiple pipelines.';return{c(){n=c("p"),n.innerHTML=u},l(a){n=d(a,"P",{"data-svelte-h":!0}),h(n)!=="svelte-1qn15hi"&&(n.innerHTML=u)},m(a,p){i(a,n,p)},p:he,d(a){a&&s(n)}}}function ze(v){let n,u="Examples:",a,p,f;return p=new Re({props:{code:"ZnJvbSUyMGRpZmZ1c2Vycy5waXBlbGluZXMlMjBpbXBvcnQlMjBCbGlwRGlmZnVzaW9uUGlwZWxpbmUlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwbG9hZF9pbWFnZSUwQWltcG9ydCUyMHRvcmNoJTBBJTBBYmxpcF9kaWZmdXNpb25fcGlwZSUyMCUzRCUyMEJsaXBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWlu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kMlMjBkdXBsaWNhdGUlMjIlMEElMEElMEFvdXRwdXQlMjAlM0QlMjBibGlwX2RpZmZ1c2lvbl9waXBlKCUwQSUyMCUyMCUyMCUyMHRleHRfcHJvbXB0X2lucHV0JTJDJTBBJTIwJTIwJTIwJTIwY29uZF9pbWFnZSUyQyUwQSUyMCUyMCUyMCUyMGNvbmRfc3ViamVjdCUyQyUwQSUyMCUyMCUyMCUyMHRndF9zdWJqZWN0JTJDJTBBJTIwJTIwJTIwJTIwZ3VpZGFuY2Vfc2NhbGUlM0RndWlkYW5jZV9zY2FsZSUyQyUwQSUyMCUyMCUyMCUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0RudW1faW5mZXJlbmNlX3N0ZXBzJTJDJTBBJTIwJTIwJTIwJTIwbmVnX3Byb21wdCUzRG5lZ2F0aXZlX3Byb21wdCUyQyUwQSUyMCUyMCUyMCUyMGhlaWdodCUzRDUxMiUyQyUwQSUyMCUyMCUyMCUyMHdpZHRoJTNENTEyJTJDJTBBKS5pbWFnZXMlMEFvdXRwdXQlNUIwJTVELnNhdmUoJTIyaW1hZ2UucG5nJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.pipelines <span class="hljs-keyword">import</span> BlipDiffusionPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>blip_diffusion_pipe = BlipDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Salesforce/blipdiffusion&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>).to(<span class="hljs-string">&quot;cuda&quot;</span>)


<span class="hljs-meta">&gt;&gt;&gt; </span>cond_subject = <span class="hljs-string">&quot;dog&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tgt_subject = <span class="hljs-string">&quot;dog&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>text_prompt_input = <span class="hljs-string">&quot;swimming underwater&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>cond_image = load_image(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/ayushtues/blipdiffusion_images/resolve/main/dog.jpg&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>guidance_scale = <span class="hljs-number">7.5</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>num_inference_steps = <span class="hljs-number">25</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>negative_prompt = <span class="hljs-string">&quot;over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, out of frame, ugly, bad anatomy, bad proportions, deformed, blurry, duplicate&quot;</span>


<span class="hljs-meta">&gt;&gt;&gt; </span>output = blip_diffusion_pipe(
<span class="hljs-meta">... </span>    text_prompt_input,
<span class="hljs-meta">... </span>    cond_image,
<span class="hljs-meta">... </span>    cond_subject,
<span class="hljs-meta">... </span>    tgt_subject,
<span class="hljs-meta">... </span>    guidance_scale=guidance_scale,
<span class="hljs-meta">... </span>    num_inference_steps=num_inference_steps,
<span class="hljs-meta">... </span>    neg_prompt=negative_prompt,
<span class="hljs-meta">... </span>    height=<span class="hljs-number">512</span>,
<span class="hljs-meta">... </span>    width=<span class="hljs-number">512</span>,
<span class="hljs-meta">... </span>).images
<span class="hljs-meta">&gt;&gt;&gt; </span>output[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;image.png&quot;</span>)`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,a=l(),_(p.$$.fragment)},l(o){n=d(o,"P",{"data-svelte-h":!0}),h(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=r(o),y(p.$$.fragment,o)},m(o,g){i(o,n,g),i(o,a,g),b(p,o,g),f=!0},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lJTJDJTBBJTIwJTIwJTIwJTIwY2xkbV9jb25kX2ltYWdlJTJDJTBBJTIwJTIwJTIwJTIwc3R5bGVfc3ViamVjdCUyQyUwQSUyMCUyMCUyMCUyMHRndF9zdWJqZWN0JTJDJTBBJTIwJTIwJTIwJTIwZ3VpZGFuY2Vfc2NhbGUlM0RndWlkYW5jZV9zY2FsZSUyQyUwQSUyMCUyMCUyMCUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0RudW1faW5mZXJlbmNlX3N0ZXBzJTJDJTBBJTIwJTIwJTIwJTIwbmVnX3Byb21wdCUzRG5lZ2F0aXZlX3Byb21wdCUyQyUwQSUyMCUyMCUyMCUyMGhlaWdodCUzRDUxMiUyQyUwQSUyMCUyMCUyMCUyMHdpZHRoJTNENTEyJTJDJTBBKS5pbWFnZXMlMEFvdXRwdXQlNUIwJTVELnNhdmUoJTIyaW1hZ2UucG5nJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.pipelines <span class="hljs-keyword">import</span> BlipDiffusionControlNetPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> controlnet_aux <span class="hljs-keyword">import</span> CannyDetector
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>blip_diffusion_pipe = BlipDiffusionControlNetPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Salesforce/blipdiffusion-controlnet&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>).to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>style_subject = <span class="hljs-string">&quot;flower&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tgt_subject = <span class="hljs-string">&quot;teapot&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>text_prompt = <span class="hljs-string">&quot;on a marble table&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>cldm_cond_image = load_image(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/ayushtues/blipdiffusion_images/resolve/main/kettle.jpg&quot;</span>
<span class="hljs-meta">... </span>).resize((<span class="hljs-number">512</span>, <span class="hljs-number">512</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>canny = CannyDetector()
<span class="hljs-meta">&gt;&gt;&gt; </span>cldm_cond_image = canny(cldm_cond_image, <span class="hljs-number">30</span>, <span class="hljs-number">70</span>, output_type=<span class="hljs-string">&quot;pil&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>style_image = load_image(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/ayushtues/blipdiffusion_images/resolve/main/flower.jpg&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>guidance_scale = <span class="hljs-number">7.5</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>num_inference_steps = <span class="hljs-number">50</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>negative_prompt = <span class="hljs-string">&quot;over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, out of frame, ugly, bad anatomy, bad proportions, deformed, blurry, duplicate&quot;</span>


<span class="hljs-meta">&gt;&gt;&gt; </span>output = blip_diffusion_pipe(
<span class="hljs-meta">... </span>    text_prompt,
<span class="hljs-meta">... </span>    style_image,
<span class="hljs-meta">... </span>    cldm_cond_image,
<span class="hljs-meta">... </span>    style_subject,
<span class="hljs-meta">... </span>    tgt_subject,
<span class="hljs-meta">... </span>    guidance_scale=guidance_scale,
<span class="hljs-meta">... </span>    num_inference_steps=num_inference_steps,
<span class="hljs-meta">... </span>    neg_prompt=negative_prompt,
<span class="hljs-meta">... </span>    height=<span class="hljs-number">512</span>,
<span class="hljs-meta">... </span>    width=<span class="hljs-number">512</span>,
<span class="hljs-meta">... </span>).images
<span class="hljs-meta">&gt;&gt;&gt; </span>output[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;image.png&quot;</span>)`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,a=l(),_(p.$$.fragment)},l(o){n=d(o,"P",{"data-svelte-h":!0}),h(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=r(o),y(p.$$.fragment,o)},m(o,g){i(o,n,g),i(o,a,g),b(p,o,g),f=!0},p:he,i(o){f||(M(p.$$.fragment,o),f=!0)},o(o){w(p.$$.fragment,o),f=!1},d(o){o&&(s(n),s(a)),T(p,o)}}}function Ke(v){let n,u,a,p,f,o,g,ne,N,Ce='BLIP-Diffusion was proposed in <a href="https://huggingface.co/papers/2305.14720" rel="nofollow">BLIP-Diffusion: Pre-trained Subject Representation for Controllable Text-to-Image Generation and Editing</a>. It enables zero-shot subject-driven generation and control-guided zero-shot generation.',se,G,xe="The abstract from the paper is:",oe,k,Ie='<em>Subject-driven text-to-image generation models create novel renditions of an input subject based on text prompts. Existing models suffer from lengthy fine-tuning and difficulties preserving the subject fidelity. To overcome these limitations, we introduce BLIP-Diffusion, a new subject-driven image generation model that supports multimodal control which consumes inputs of subject images and text prompts. Unlike other subject-driven generation models, BLIP-Diffusion introduces a new multimodal encoder which is pre-trained to provide subject representation. We first pre-train the multimodal encoder following BLIP-2 to produce visual representation aligned with the text. Then we design a subject representation learning task which enables a diffusion model to leverage such visual representation and generates new subject renditions. Compared with previous methods such as DreamBooth, our model enables zero-shot subject-driven generation, and efficient fine-tuning for customized subject with up to 20x speedup. We also demonstrate that BLIP-Diffusion can be flexibly combined with existing techniques such as ControlNet and prompt-to-prompt to enable novel subject-driven generation and editing applications. Project page at <a href="https://dxli94.github.io/BLIP-Diffusion-website/" rel="nofollow">this https URL</a>.</em>',ie,X,Ze='The original codebase can be found at <a href="https://github.com/salesforce/LAVIS/tree/main/projects/blip-diffusion" rel="nofollow">salesforce/LAVIS</a>. You can find the official BLIP-Diffusion checkpoints under the <a href="https://hf.co/SalesForce" rel="nofollow">hf.co/SalesForce</a> organization.',ae,W,Pe='<code>BlipDiffusionPipeline</code> and <code>BlipDiffusionControlNetPipeline</code> were contributed by <a href="https://github.com/ayushtues/" rel="nofollow"><code>ayushtues</code></a>.',le,P,re,Q,pe,J,R,_e,F,$e="Pipeline for Zero-Shot Subject Driven Generation using Blip Diffusion.",ye,E,De=`This model inherits from <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`,be,C,V,Me,H,Ne="Function invoked when calling the pipeline for generation.",we,$,ce,L,de,j,q,Te,z,Ge="Pipeline for Canny Edge based Controlled subject-driven generation using Blip Diffusion.",Je,A,ke=`This model inherits from <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`,je,x,Y,Be,K,Xe="Function invoked when calling the pipeline for generation.",Ue,D,me,S,fe,te,ue;return f=new We({props:{warning:!0,$$slots:{default:[Ee]},$$scope:{ctx:v}}}),g=new ve({props:{title:"BLIP-Diffusion",local:"blip-diffusion",headingTag:"h1"}}),P=new We({props:{$$slots:{default:[He]},$$scope:{ctx:v}}}),Q=new ve({props:{title:"BlipDiffusionPipeline",local:"diffusers.BlipDiffusionPipeline",headingTag:"h2"}}),R=new ge({props:{name:"class diffusers.BlipDiffusionPipeline",anchor:"diffusers.BlipDiffusionPipeline",parameters:[{name:"tokenizer",val:": CLIPTokenizer"},{name:"text_encoder",val:": ContextCLIPTextModel"},{name:"vae",val:": AutoencoderKL"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": PNDMScheduler"},{name:"qformer",val:": Blip2QFormerModel"},{name:"image_processor",val:": BlipImageProcessor"},{name:"ctx_begin_pos",val:": int = 2"},{name:"mean",val:": typing.List[float] = None"},{name:"std",val:": typing.List[float] = None"}],parametersDescription:[{anchor:"diffusers.BlipDiffusionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
Tokenizer for the text encoder`,name:"tokenizer"},{anchor:"diffusers.BlipDiffusionPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>ContextCLIPTextModel</code>) &#x2014;
Text encoder to encode the text prompt`,name:"text_encoder"},{anchor:"diffusers.BlipDiffusionPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/main/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
VAE model to map the latents to the image`,name:"vae"},{anchor:"diffusers.BlipDiffusionPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014;
Conditional U-Net architecture to denoise the image embedding.`,name:"unet"},{anchor:"diffusers.BlipDiffusionPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to generate image latents.`,name:"scheduler"},{anchor:"diffusers.BlipDiffusionPipeline.qformer",description:`<strong>qformer</strong> (<code>Blip2QFormerModel</code>) &#x2014;
QFormer model to get multi-modal embeddings from the text and image.`,name:"qformer"},{anchor:"diffusers.BlipDiffusionPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BlipImageProcessor</code>) &#x2014;
Image Processor to preprocess and postprocess the image.`,name:"image_processor"},{anchor:"diffusers.BlipDiffusionPipeline.ctx_begin_pos",description:`<strong>ctx_begin_pos</strong> (int, <code>optional</code>, defaults to 2) &#x2014;
Position of the context token in the text encoder.`,name:"ctx_begin_pos"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/blip_diffusion/pipeline_blip_diffusion.py#L84"}}),V=new ge({props:{name:"__call__",anchor:"diffusers.BlipDiffusionPipeline.__call__",parameters:[{name:"prompt",val:": typing.List[str]"},{name:"reference_image",val:": Image"},{name:"source_subject_category",val:": typing.List[str]"},{name:"target_subject_category",val:": typing.List[str]"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"guidance_scale",val:": float = 7.5"},{name:"height",val:": int = 512"},{name:"width",val:": int = 512"},{name:"num_inference_steps",val:": int = 50"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"neg_prompt",val:": typing.Optional[str] = ''"},{name:"prompt_strength",val:": float = 1.0"},{name:"prompt_reps",val:": int = 20"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.BlipDiffusionPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>List[str]</code>) &#x2014;
The prompt or prompts to guide the image generation.`,name:"prompt"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.reference_image",description:`<strong>reference_image</strong> (<code>PIL.Image.Image</code>) &#x2014;
The reference image to condition the generation on.`,name:"reference_image"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.source_subject_category",description:`<strong>source_subject_category</strong> (<code>List[str]</code>) &#x2014;
The source subject category.`,name:"source_subject_category"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.target_subject_category",description:`<strong>target_subject_category</strong> (<code>List[str]</code>) &#x2014;
The target subject category.`,name:"target_subject_category"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor will ge generated by random sampling.`,name:"latents"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
Guidance scale as defined in <a href="https://huggingface.co/papers/2207.12598" rel="nofollow">Classifier-Free Diffusion
Guidance</a>. <code>guidance_scale</code> is defined as <code>w</code> of equation 2.
of <a href="https://huggingface.co/papers/2205.11487" rel="nofollow">Imagen Paper</a>. Guidance scale is enabled by setting
<code>guidance_scale &gt; 1</code>. Higher guidance scale encourages to generate images that are closely linked to
the text <code>prompt</code>, usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The height of the generated image.`,name:"height"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The width of the generated image.`,name:"width"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
One or a list of <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow">torch generator(s)</a>
to make generation deterministic.`,name:"generator"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.neg_prompt",description:`<strong>neg_prompt</strong> (<code>str</code>, <em>optional</em>, defaults to &quot;&quot;) &#x2014;
The prompt or prompts not to guide the image generation. Ignored when not using guidance (i.e., ignored
if <code>guidance_scale</code> is less than <code>1</code>).`,name:"neg_prompt"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.prompt_strength",description:`<strong>prompt_strength</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The strength of the prompt. Specifies the number of times the prompt is repeated along with prompt_reps
to amplify the prompt.`,name:"prompt_strength"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.prompt_reps",description:`<strong>prompt_reps</strong> (<code>int</code>, <em>optional</em>, defaults to 20) &#x2014;
The number of times the prompt is repeated along with prompt_strength to amplify the prompt.`,name:"prompt_reps"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generate image. Choose between: <code>&quot;pil&quot;</code> (<code>PIL.Image.Image</code>), <code>&quot;np&quot;</code>
(<code>np.array</code>) or <code>&quot;pt&quot;</code> (<code>torch.Tensor</code>).`,name:"output_type"},{anchor:"diffusers.BlipDiffusionPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/main/en/api/pipelines/unclip#diffusers.ImagePipelineOutput">ImagePipelineOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/blip_diffusion/pipeline_blip_diffusion.py#L196",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/unclip#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),$=new Qe({props:{anchor:"diffusers.BlipDiffusionPipeline.__call__.example",$$slots:{default:[ze]},$$scope:{ctx:v}}}),L=new ve({props:{title:"BlipDiffusionControlNetPipeline",local:"diffusers.BlipDiffusionControlNetPipeline",headingTag:"h2"}}),q=new ge({props:{name:"class diffusers.BlipDiffusionControlNetPipeline",anchor:"diffusers.BlipDiffusionControlNetPipeline",parameters:[{name:"tokenizer",val:": CLIPTokenizer"},{name:"text_encoder",val:": ContextCLIPTextModel"},{name:"vae",val:": AutoencoderKL"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": PNDMScheduler"},{name:"qformer",val:": Blip2QFormerModel"},{name:"controlnet",val:": ControlNetModel"},{name:"image_processor",val:": BlipImageProcessor"},{name:"ctx_begin_pos",val:": int = 2"},{name:"mean",val:": typing.List[float] = None"},{name:"std",val:": typing.List[float] = None"}],parametersDescription:[{anchor:"diffusers.BlipDiffusionControlNetPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
Tokenizer for the text encoder`,name:"tokenizer"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>ContextCLIPTextModel</code>) &#x2014;
Text encoder to encode the text prompt`,name:"text_encoder"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/main/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
VAE model to map the latents to the image`,name:"vae"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014;
Conditional U-Net architecture to denoise the image embedding.`,name:"unet"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to generate image latents.`,name:"scheduler"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.qformer",description:`<strong>qformer</strong> (<code>Blip2QFormerModel</code>) &#x2014;
QFormer model to get multi-modal embeddings from the text and image.`,name:"qformer"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.controlnet",description:`<strong>controlnet</strong> (<a href="/docs/diffusers/main/en/api/models/controlnet#diffusers.ControlNetModel">ControlNetModel</a>) &#x2014;
ControlNet model to get the conditioning image embedding.`,name:"controlnet"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BlipImageProcessor</code>) &#x2014;
Image Processor to preprocess and postprocess the image.`,name:"image_processor"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.ctx_begin_pos",description:`<strong>ctx_begin_pos</strong> (int, <code>optional</code>, defaults to 2) &#x2014;
Position of the context token in the text encoder.`,name:"ctx_begin_pos"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py#L91"}}),Y=new ge({props:{name:"__call__",anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__",parameters:[{name:"prompt",val:": typing.List[str]"},{name:"reference_image",val:": Image"},{name:"condtioning_image",val:": Image"},{name:"source_subject_category",val:": typing.List[str]"},{name:"target_subject_category",val:": typing.List[str]"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"guidance_scale",val:": float = 7.5"},{name:"height",val:": int = 512"},{name:"width",val:": int = 512"},{name:"num_inference_steps",val:": int = 50"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"neg_prompt",val:": typing.Optional[str] = ''"},{name:"prompt_strength",val:": float = 1.0"},{name:"prompt_reps",val:": int = 20"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>List[str]</code>) &#x2014;
The prompt or prompts to guide the image generation.`,name:"prompt"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.reference_image",description:`<strong>reference_image</strong> (<code>PIL.Image.Image</code>) &#x2014;
The reference image to condition the generation on.`,name:"reference_image"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.condtioning_image",description:`<strong>condtioning_image</strong> (<code>PIL.Image.Image</code>) &#x2014;
The conditioning canny edge image to condition the generation on.`,name:"condtioning_image"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.source_subject_category",description:`<strong>source_subject_category</strong> (<code>List[str]</code>) &#x2014;
The source subject category.`,name:"source_subject_category"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.target_subject_category",description:`<strong>target_subject_category</strong> (<code>List[str]</code>) &#x2014;
The target subject category.`,name:"target_subject_category"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor will ge generated by random sampling.`,name:"latents"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
Guidance scale as defined in <a href="https://huggingface.co/papers/2207.12598" rel="nofollow">Classifier-Free Diffusion
Guidance</a>. <code>guidance_scale</code> is defined as <code>w</code> of equation 2.
of <a href="https://huggingface.co/papers/2205.11487" rel="nofollow">Imagen Paper</a>. Guidance scale is enabled by setting
<code>guidance_scale &gt; 1</code>. Higher guidance scale encourages to generate images that are closely linked to
the text <code>prompt</code>, usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The height of the generated image.`,name:"height"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The width of the generated image.`,name:"width"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>, defaults to 42) &#x2014;
The seed to use for random generation.`,name:"seed"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
One or a list of <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow">torch generator(s)</a>
to make generation deterministic.`,name:"generator"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.neg_prompt",description:`<strong>neg_prompt</strong> (<code>str</code>, <em>optional</em>, defaults to &quot;&quot;) &#x2014;
The prompt or prompts not to guide the image generation. Ignored when not using guidance (i.e., ignored
if <code>guidance_scale</code> is less than <code>1</code>).`,name:"neg_prompt"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.prompt_strength",description:`<strong>prompt_strength</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The strength of the prompt. Specifies the number of times the prompt is repeated along with prompt_reps
to amplify the prompt.`,name:"prompt_strength"},{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.prompt_reps",description:`<strong>prompt_reps</strong> (<code>int</code>, <em>optional</em>, defaults to 20) &#x2014;
The number of times the prompt is repeated along with prompt_strength to amplify the prompt.`,name:"prompt_reps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py#L244",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/unclip#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),D=new Qe({props:{anchor:"diffusers.BlipDiffusionControlNetPipeline.__call__.example",$$slots:{default:[Ae]},$$scope:{ctx:v}}}),S=new Fe({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/blip_diffusion.md"}}),{c(){n=c("meta"),u=l(),a=c("p"),p=l(),_(f.$$.fragment),o=l(),_(g.$$.fragment),ne=l(),N=c("p"),N.innerHTML=Ce,se=l(),G=c("p"),G.textContent=xe,oe=l(),k=c("p"),k.innerHTML=Ie,ie=l(),X=c("p"),X.innerHTML=Ze,ae=l(),W=c("p"),W.innerHTML=Pe,le=l(),_(P.$$.fragment),re=l(),_(Q.$$.fragment),pe=l(),J=c("div"),_(R.$$.fragment),_e=l(),F=c("p"),F.textContent=$e,ye=l(),E=c("p"),E.innerHTML=De,be=l(),C=c("div"),_(V.$$.fragment),Me=l(),H=c("p"),H.textContent=Ne,we=l(),_($.$$.fragment),ce=l(),_(L.$$.fragment),de=l(),j=c("div"),_(q.$$.fragment),Te=l(),z=c("p"),z.textContent=Ge,Je=l(),A=c("p"),A.innerHTML=ke,je=l(),x=c("div"),_(Y.$$.fragment),Be=l(),K=c("p"),K.textContent=Xe,Ue=l(),_(D.$$.fragment),me=l(),_(S.$$.fragment),fe=l(),te=c("p"),this.h()},l(e){const t=Se("svelte-u9bgzb",document.head);n=d(t,"META",{name:!0,content:!0}),t.forEach(s),u=r(e),a=d(e,"P",{}),O(a).forEach(s),p=r(e),y(f.$$.fragment,e),o=r(e),y(g.$$.fragment,e),ne=r(e),N=d(e,"P",{"data-svelte-h":!0}),h(N)!=="svelte-47m4g0"&&(N.innerHTML=Ce),se=r(e),G=d(e,"P",{"data-svelte-h":!0}),h(G)!=="svelte-1cwsb16"&&(G.textContent=xe),oe=r(e),k=d(e,"P",{"data-svelte-h":!0}),h(k)!=="svelte-1wic6w9"&&(k.innerHTML=Ie),ie=r(e),X=d(e,"P",{"data-svelte-h":!0}),h(X)!=="svelte-f1ydvp"&&(X.innerHTML=Ze),ae=r(e),W=d(e,"P",{"data-svelte-h":!0}),h(W)!=="svelte-18ljjot"&&(W.innerHTML=Pe),le=r(e),y(P.$$.fragment,e),re=r(e),y(Q.$$.fragment,e),pe=r(e),J=d(e,"DIV",{class:!0});var B=O(J);y(R.$$.fragment,B),_e=r(B),F=d(B,"P",{"data-svelte-h":!0}),h(F)!=="svelte-1nzcqmi"&&(F.textContent=$e),ye=r(B),E=d(B,"P",{"data-svelte-h":!0}),h(E)!=="svelte-wu1jmh"&&(E.innerHTML=De),be=r(B),C=d(B,"DIV",{class:!0});var I=O(C);y(V.$$.fragment,I),Me=r(I),H=d(I,"P",{"data-svelte-h":!0}),h(H)!=="svelte-v78lg8"&&(H.textContent=Ne),we=r(I),y($.$$.fragment,I),I.forEach(s),B.forEach(s),ce=r(e),y(L.$$.fragment,e),de=r(e),j=d(e,"DIV",{class:!0});var U=O(j);y(q.$$.fragment,U),Te=r(U),z=d(U,"P",{"data-svelte-h":!0}),h(z)!=="svelte-1njh28z"&&(z.textContent=Ge),Je=r(U),A=d(U,"P",{"data-svelte-h":!0}),h(A)!=="svelte-wu1jmh"&&(A.innerHTML=ke),je=r(U),x=d(U,"DIV",{class:!0});var Z=O(x);y(Y.$$.fragment,Z),Be=r(Z),K=d(Z,"P",{"data-svelte-h":!0}),h(K)!=="svelte-v78lg8"&&(K.textContent=Xe),Ue=r(Z),y(D.$$.fragment,Z),Z.forEach(s),U.forEach(s),me=r(e),y(S.$$.fragment,e),fe=r(e),te=d(e,"P",{}),O(te).forEach(s),this.h()},h(){ee(n,"name","hf:doc:metadata"),ee(n,"content",Oe),ee(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ee(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ee(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ee(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){m(document.head,n),i(e,u,t),i(e,a,t),i(e,p,t),b(f,e,t),i(e,o,t),b(g,e,t),i(e,ne,t),i(e,N,t),i(e,se,t),i(e,G,t),i(e,oe,t),i(e,k,t),i(e,ie,t),i(e,X,t),i(e,ae,t),i(e,W,t),i(e,le,t),b(P,e,t),i(e,re,t),b(Q,e,t),i(e,pe,t),i(e,J,t),b(R,J,null),m(J,_e),m(J,F),m(J,ye),m(J,E),m(J,be),m(J,C),b(V,C,null),m(C,Me),m(C,H),m(C,we),b($,C,null),i(e,ce,t),b(L,e,t),i(e,de,t),i(e,j,t),b(q,j,null),m(j,Te),m(j,z),m(j,Je),m(j,A),m(j,je),m(j,x),b(Y,x,null),m(x,Be),m(x,K),m(x,Ue),b(D,x,null),i(e,me,t),b(S,e,t),i(e,fe,t),i(e,te,t),ue=!0},p(e,[t]){const B={};t&2&&(B.$$scope={dirty:t,ctx:e}),f.$set(B);const I={};t&2&&(I.$$scope={dirty:t,ctx:e}),P.$set(I);const U={};t&2&&(U.$$scope={dirty:t,ctx:e}),$.$set(U);const Z={};t&2&&(Z.$$scope={dirty:t,ctx:e}),D.$set(Z)},i(e){ue||(M(f.$$.fragment,e),M(g.$$.fragment,e),M(P.$$.fragment,e),M(Q.$$.fragment,e),M(R.$$.fragment,e),M(V.$$.fragment,e),M($.$$.fragment,e),M(L.$$.fragment,e),M(q.$$.fragment,e),M(Y.$$.fragment,e),M(D.$$.fragment,e),M(S.$$.fragment,e),ue=!0)},o(e){w(f.$$.fragment,e),w(g.$$.fragment,e),w(P.$$.fragment,e),w(Q.$$.fragment,e),w(R.$$.fragment,e),w(V.$$.fragment,e),w($.$$.fragment,e),w(L.$$.fragment,e),w(q.$$.fragment,e),w(Y.$$.fragment,e),w(D.$$.fragment,e),w(S.$$.fragment,e),ue=!1},d(e){e&&(s(u),s(a),s(p),s(o),s(ne),s(N),s(se),s(G),s(oe),s(k),s(ie),s(X),s(ae),s(W),s(le),s(re),s(pe),s(J),s(ce),s(de),s(j),s(me),s(fe),s(te)),s(n),T(f,e),T(g,e),T(P,e),T(Q,e),T(R),T(V),T($),T(L,e),T(q),T(Y),T(D),T(S,e)}}}const Oe='{"title":"BLIP-Diffusion","local":"blip-diffusion","sections":[{"title":"BlipDiffusionPipeline","local":"diffusers.BlipDiffusionPipeline","sections":[],"depth":2},{"title":"BlipDiffusionControlNetPipeline","local":"diffusers.BlipDiffusionControlNetPipeline","sections":[],"depth":2}],"depth":1}';function et(v){return Le(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class rt extends qe{constructor(n){super(),Ye(this,n,et,Ke,Ve,{})}}export{rt as component};
