import{S as Na,i as Za,s as Ca,e as s,k as c,w as b,t as a,M as Ba,c as n,d as o,m as p,a as i,x as y,h as r,b as l,G as e,g as u,y as w,q as M,o as D,B as T,v as Va,L as Ra}from"../../../chunks/vendor-hf-doc-builder.js";import{D as gt}from"../../../chunks/Docstring-hf-doc-builder.js";import{C as Zs}from"../../../chunks/CodeBlock-hf-doc-builder.js";import{I as Ve}from"../../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Wa}from"../../../chunks/ExampleCodeBlock-hf-doc-builder.js";function Fa(vt){let g,R,E,v,x;return v=new Zs({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQXVkaW9MRE1QaXBlbGluZSUwQSUwQXBpcGUlMjAlM0QlMjBBdWRpb0xETVBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJjdnNzcCUyRmF1ZGlvbGRtJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQXBpcGUlMjAlM0QlMjBwaXBlLnRvKCUyMmN1ZGElMjIpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyQSUyMGhhbW1lciUyMGhpdHRpbmclMjBhJTIwd29vZGVuJTIwc3VyZmFjZSUyMiUwQWF1ZGlvJTIwJTNEJTIwcGlwZShwcm9tcHQpLmF1ZGlvJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AudioLDMPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = AudioLDMPipeline.from_pretrained(<span class="hljs-string">&quot;cvssp/audioldm&quot;</span>, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;A hammer hitting a wooden surface&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio = pipe(prompt).audio[<span class="hljs-number">0</span>]`}}),{c(){g=s("p"),R=a("Examples:"),E=c(),b(v.$$.fragment)},l(f){g=n(f,"P",{});var L=i(g);R=r(L,"Examples:"),L.forEach(o),E=p(f),y(v.$$.fragment,f)},m(f,L){u(f,g,L),e(g,R),u(f,E,L),w(v,f,L),x=!0},p:Ra,i(f){x||(M(v.$$.fragment,f),x=!0)},o(f){D(v.$$.fragment,f),x=!1},d(f){f&&o(g),f&&o(E),T(v,f)}}}function qa(vt){let g,R,E,v,x,f,L,Re,Qt,_t,j,W,We,oe,Yt,Fe,Ot,bt,F,Kt,se,eo,to,yt,P,oo,ae,so,ao,qe,no,ro,ne,io,lo,wt,k,co,re,po,uo,ie,fo,ho,Mt,I,q,He,le,mo,Xe,go,Dt,S,vo,Te,_o,bo,de,yo,wo,Tt,ce,Et,N,H,ze,pe,Mo,Qe,Do,At,Ee,To,$t,X,Ye,Eo,Ao,Oe,$o,Pt,Ae,Po,xt,z,Z,xo,Ke,Lo,ko,et,So,Uo,Go,C,Jo,tt,jo,Io,ot,No,Zo,Lt,B,Q,st,ue,Co,at,Bo,kt,h,Vo,$e,Ro,Wo,nt,Fo,qo,Pe,Ho,Xo,xe,zo,Qo,Le,Yo,Oo,ke,Ko,es,Se,ts,os,St,A,ss,Ue,as,ns,rt,rs,is,it,ls,ds,Ge,cs,ps,Ut,fe,Gt,V,Y,lt,he,us,dt,fs,Jt,m,me,hs,ct,ms,gs,ge,vs,Je,_s,bs,ys,U,ve,ws,pt,Ms,Ds,O,Ts,K,_e,Es,be,As,ut,$s,Ps,xs,ee,ye,Ls,we,ks,ft,Ss,Us,Gs,G,Me,Js,ht,js,Is,mt,Ns,jt;return f=new Ve({}),oe=new Ve({}),le=new Ve({}),ce=new Zs({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1ZGlvTERNUGlwZWxpbmUlMEFpbXBvcnQlMjB0b3JjaCUwQWltcG9ydCUyMHNjaXB5JTBBJTBBcmVwb19pZCUyMCUzRCUyMCUyMmN2c3NwJTJGYXVkaW9sZG0tcy1mdWxsLXYyJTIyJTBBcGlwZSUyMCUzRCUyMEF1ZGlvTERNUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKHJlcG9faWQlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpJTBBcGlwZSUyMCUzRCUyMHBpcGUudG8oJTIyY3VkYSUyMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJUZWNobm8lMjBtdXNpYyUyMHdpdGglMjBhJTIwc3Ryb25nJTJDJTIwdXBiZWF0JTIwdGVtcG8lMjBhbmQlMjBoaWdoJTIwbWVsb2RpYyUyMHJpZmZzJTIyJTBBYXVkaW8lMjAlM0QlMjBwaXBlKHByb21wdCUyQyUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QxMCUyQyUyMGF1ZGlvX2xlbmd0aF9pbl9zJTNENS4wKS5hdWRpb3MlNUIwJTVEJTBBJTBBJTIzJTIwc2F2ZSUyMHRoZSUyMGF1ZGlvJTIwc2FtcGxlJTIwYXMlMjBhJTIwLndhdiUyMGZpbGUlMEFzY2lweS5pby53YXZmaWxlLndyaXRlKCUyMnRlY2huby53YXYlMjIlMkMlMjByYXRlJTNEMTYwMDAlMkMlMjBkYXRhJTNEYXVkaW8p",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AudioLDMPipeline
<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">import</span> scipy

repo_id = <span class="hljs-string">&quot;cvssp/audioldm-s-full-v2&quot;</span>
pipe = AudioLDMPipeline.from_pretrained(repo_id, torch_dtype=torch.float16)
pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

prompt = <span class="hljs-string">&quot;Techno music with a strong, upbeat tempo and high melodic riffs&quot;</span>
audio = pipe(prompt, num_inference_steps=<span class="hljs-number">10</span>, audio_length_in_s=<span class="hljs-number">5.0</span>).audios[<span class="hljs-number">0</span>]

<span class="hljs-comment"># save the audio sample as a .wav file</span>
scipy.io.wavfile.write(<span class="hljs-string">&quot;techno.wav&quot;</span>, rate=<span class="hljs-number">16000</span>, data=audio)`}}),pe=new Ve({}),ue=new Ve({}),fe=new Zs({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1ZGlvTERNUGlwZWxpbmUlMkMlMjBEUE1Tb2x2ZXJNdWx0aXN0ZXBTY2hlZHVsZXIlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXVkaW9MRE1QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIyY3Zzc3AlMkZhdWRpb2xkbS1zLWZ1bGwtdjIlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpJTBBcGlwZWxpbmUuc2NoZWR1bGVyJTIwJTNEJTIwRFBNU29sdmVyTXVsdGlzdGVwU2NoZWR1bGVyLmZyb21fY29uZmlnKHBpcGVsaW5lLnNjaGVkdWxlci5jb25maWcpJTBBJTBBJTIzJTIwb3IlMEFkcG1fc2NoZWR1bGVyJTIwJTNEJTIwRFBNU29sdmVyTXVsdGlzdGVwU2NoZWR1bGVyLmZyb21fcHJldHJhaW5lZCglMjJjdnNzcCUyRmF1ZGlvbGRtLXMtZnVsbC12MiUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnNjaGVkdWxlciUyMiklMEFwaXBlbGluZSUyMCUzRCUyMEF1ZGlvTERNUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMmN2c3NwJTJGYXVkaW9sZG0tcy1mdWxsLXYyJTIyJTJDJTIwc2NoZWR1bGVyJTNEZHBtX3NjaGVkdWxlciUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AudioLDMPipeline, DPMSolverMultistepScheduler
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = AudioLDMPipeline.from_pretrained(<span class="hljs-string">&quot;cvssp/audioldm-s-full-v2&quot;</span>, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.scheduler = DPMSolverMultistepScheduler.from_config(pipeline.scheduler.config)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># or</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>dpm_scheduler = DPMSolverMultistepScheduler.from_pretrained(<span class="hljs-string">&quot;cvssp/audioldm-s-full-v2&quot;</span>, subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = AudioLDMPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;cvssp/audioldm-s-full-v2&quot;</span>, scheduler=dpm_scheduler, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)`}}),he=new Ve({}),me=new gt({props:{name:"class diffusers.AudioLDMPipeline",anchor:"diffusers.AudioLDMPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": ClapTextModelWithProjection"},{name:"tokenizer",val:": typing.Union[transformers.models.roberta.tokenization_roberta.RobertaTokenizer, transformers.models.roberta.tokenization_roberta_fast.RobertaTokenizerFast]"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"vocoder",val:": SpeechT5HifiGan"}],parametersDescription:[{anchor:"diffusers.AudioLDMPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.18.2/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode audios to and from latent representations.`,name:"vae"},{anchor:"diffusers.AudioLDMPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>ClapTextModelWithProjection</code>) &#x2014;
Frozen text-encoder. AudioLDM uses the text portion of
<a href="https://huggingface.co/docs/transformers/main/model_doc/clap#transformers.ClapTextModelWithProjection" rel="nofollow">CLAP</a>,
specifically the <a href="https://huggingface.co/laion/clap-htsat-unfused" rel="nofollow">RoBERTa HSTAT-unfused</a> variant.`,name:"text_encoder"},{anchor:"diffusers.AudioLDMPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>PreTrainedTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/docs/transformers/model_doc/roberta#transformers.RobertaTokenizer" rel="nofollow">RobertaTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.AudioLDMPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.18.2/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; U-Net architecture to denoise the encoded audio latents.',name:"unet"},{anchor:"diffusers.AudioLDMPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.18.2/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded audio latents. Can be one of
<a href="/docs/diffusers/v0.18.2/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.18.2/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.18.2/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.AudioLDMPipeline.vocoder",description:`<strong>vocoder</strong> (<code>SpeechT5HifiGan</code>) &#x2014;
Vocoder of class
<a href="https://huggingface.co/docs/transformers/main/en/model_doc/speecht5#transformers.SpeechT5HifiGan" rel="nofollow">SpeechT5HifiGan</a>.`,name:"vocoder"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/pipelines/audioldm/pipeline_audioldm.py#L46"}}),ve=new gt({props:{name:"__call__",anchor:"diffusers.AudioLDMPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"audio_length_in_s",val:": typing.Optional[float] = None"},{name:"num_inference_steps",val:": int = 10"},{name:"guidance_scale",val:": float = 2.5"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_waveforms_per_prompt",val:": typing.Optional[int] = 1"},{name:"eta",val:": float = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.FloatTensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Union[typing.Callable[[int, int, torch.FloatTensor], NoneType], NoneType] = None"},{name:"callback_steps",val:": typing.Optional[int] = 1"},{name:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"output_type",val:": typing.Optional[str] = 'np'"}],parametersDescription:[{anchor:"diffusers.AudioLDMPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide the audio generation. If not defined, one has to pass <code>prompt_embeds</code>.
instead.`,name:"prompt"},{anchor:"diffusers.AudioLDMPipeline.__call__.audio_length_in_s",description:`<strong>audio_length_in_s</strong> (<code>int</code>, <em>optional</em>, defaults to 5.12) &#x2014;
The length of the generated audio sample in seconds.`,name:"audio_length_in_s"},{anchor:"diffusers.AudioLDMPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 10) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality audio at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.AudioLDMPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 2.5) &#x2014;
Guidance scale as defined in <a href="https://arxiv.org/abs/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://arxiv.org/pdf/2205.11487.pdf" rel="nofollow">Imagen
Paper</a>. Guidance scale is enabled by setting <code>guidance_scale &gt; 1</code>. Higher guidance scale encourages to generate audios that are closely linked to the text <code>prompt</code>,
usually at the expense of lower sound quality.`,name:"guidance_scale"},{anchor:"diffusers.AudioLDMPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the audio generation. If not defined, one has to pass
<code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is
less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.AudioLDMPipeline.__call__.num_waveforms_per_prompt",description:`<strong>num_waveforms_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of waveforms to generate per prompt.`,name:"num_waveforms_per_prompt"},{anchor:"diffusers.AudioLDMPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) in the DDIM paper: <a href="https://arxiv.org/abs/2010.02502" rel="nofollow">https://arxiv.org/abs/2010.02502</a>. Only applies to
<a href="/docs/diffusers/v0.18.2/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.AudioLDMPipeline.__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.AudioLDMPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for audio
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor will ge generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.AudioLDMPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.AudioLDMPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.AudioLDMPipeline.__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/v0.18.2/en/api/pipelines/stable_diffusion/overview#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.AudioLDMPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that will be called every <code>callback_steps</code> steps during inference. The function will be
called with the following arguments: <code>callback(step: int, timestep: int, latents: torch.FloatTensor)</code>.`,name:"callback"},{anchor:"diffusers.AudioLDMPipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The frequency at which the <code>callback</code> function will be called. If not specified, the callback will be
called at every step.`,name:"callback_steps"},{anchor:"diffusers.AudioLDMPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttnProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/cross_attention.py" rel="nofollow">diffusers.cross_attention</a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.AudioLDMPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;np&quot;</code>) &#x2014;
The output format of the generate image. Choose between:<ul>
<li><code>&quot;np&quot;</code>: Return Numpy <code>np.ndarray</code> objects.</li>
<li><code>&quot;pt&quot;</code>: Return PyTorch <code>torch.Tensor</code> objects.</li>
</ul>`,name:"output_type"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/pipelines/audioldm/pipeline_audioldm.py#L398",returnDescription:`
<p><a
  href="/docs/diffusers/v0.18.2/en/api/pipelines/stable_diffusion/overview#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> if <code>return_dict</code> is True, otherwise a \`tuple.
When returning a tuple, the first element is a list with the generated audios.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.18.2/en/api/pipelines/stable_diffusion/overview#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),O=new Wa({props:{anchor:"diffusers.AudioLDMPipeline.__call__.example",$$slots:{default:[Fa]},$$scope:{ctx:vt}}}),_e=new gt({props:{name:"disable_vae_slicing",anchor:"diffusers.AudioLDMPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/pipelines/audioldm/pipeline_audioldm.py#L104"}}),ye=new gt({props:{name:"enable_sequential_cpu_offload",anchor:"diffusers.AudioLDMPipeline.enable_sequential_cpu_offload",parameters:[{name:"gpu_id",val:" = 0"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/pipelines/audioldm/pipeline_audioldm.py#L111"}}),Me=new gt({props:{name:"enable_vae_slicing",anchor:"diffusers.AudioLDMPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/pipelines/audioldm/pipeline_audioldm.py#L94"}}),{c(){g=s("meta"),R=c(),E=s("h1"),v=s("a"),x=s("span"),b(f.$$.fragment),L=c(),Re=s("span"),Qt=a("AudioLDM"),_t=c(),j=s("h2"),W=s("a"),We=s("span"),b(oe.$$.fragment),Yt=c(),Fe=s("span"),Ot=a("Overview"),bt=c(),F=s("p"),Kt=a("AudioLDM was proposed in "),se=s("a"),eo=a("AudioLDM: Text-to-Audio Generation with Latent Diffusion Models"),to=a(" by Haohe Liu et al."),yt=c(),P=s("p"),oo=a("Inspired by "),ae=s("a"),so=a("Stable Diffusion"),ao=a(`, AudioLDM
is a text-to-audio `),qe=s("em"),no=a("latent diffusion model (LDM)"),ro=a(" that learns continuous audio representations from "),ne=s("a"),io=a("CLAP"),lo=a(`
latents. AudioLDM takes a text prompt as input and predicts the corresponding audio. It can generate text-conditional
sound effects, human speech and music.`),wt=c(),k=s("p"),co=a("This pipeline was contributed by "),re=s("a"),po=a("sanchit-gandhi"),uo=a(". The original codebase can be found "),ie=s("a"),fo=a("here"),ho=a("."),Mt=c(),I=s("h2"),q=s("a"),He=s("span"),b(le.$$.fragment),mo=c(),Xe=s("span"),go=a("Text-to-Audio"),Dt=c(),S=s("p"),vo=a("The "),Te=s("a"),_o=a("AudioLDMPipeline"),bo=a(" can be used to load pre-trained weights from "),de=s("a"),yo=a("cvssp/audioldm-s-full-v2"),wo=a(" and generate text-conditional audio outputs:"),Tt=c(),b(ce.$$.fragment),Et=c(),N=s("h3"),H=s("a"),ze=s("span"),b(pe.$$.fragment),Mo=c(),Qe=s("span"),Do=a("Tips"),At=c(),Ee=s("p"),To=a("Prompts:"),$t=c(),X=s("ul"),Ye=s("li"),Eo=a("Descriptive prompt inputs work best: you can use adjectives to describe the sound (e.g. \u201Chigh quality\u201D or \u201Cclear\u201D) and make the prompt context specific (e.g., \u201Cwater stream in a forest\u201D instead of \u201Cstream\u201D)."),Ao=c(),Oe=s("li"),$o=a("It\u2019s best to use general terms like \u2018cat\u2019 or \u2018dog\u2019 instead of specific names or abstract objects that the model may not be familiar with."),Pt=c(),Ae=s("p"),Po=a("Inference:"),xt=c(),z=s("ul"),Z=s("li"),xo=a("The "),Ke=s("em"),Lo=a("quality"),ko=a(" of the predicted audio sample can be controlled by the "),et=s("code"),So=a("num_inference_steps"),Uo=a(" argument: higher steps give higher quality audio at the expense of slower inference."),Go=c(),C=s("li"),Jo=a("The "),tt=s("em"),jo=a("length"),Io=a(" of the predicted audio sample can be controlled by varying the "),ot=s("code"),No=a("audio_length_in_s"),Zo=a(" argument."),Lt=c(),B=s("h3"),Q=s("a"),st=s("span"),b(ue.$$.fragment),Co=c(),at=s("span"),Bo=a("How to load and use different schedulers"),kt=c(),h=s("p"),Vo=a("The AudioLDM pipeline uses "),$e=s("a"),Ro=a("DDIMScheduler"),Wo=a(" scheduler by default. But "),nt=s("code"),Fo=a("diffusers"),qo=a(` provides many other schedulers
that can be used with the AudioLDM pipeline such as `),Pe=s("a"),Ho=a("PNDMScheduler"),Xo=a(", "),xe=s("a"),zo=a("LMSDiscreteScheduler"),Qo=a(", "),Le=s("a"),Yo=a("EulerDiscreteScheduler"),Oo=a(`,
`),ke=s("a"),Ko=a("EulerAncestralDiscreteScheduler"),es=a(" etc. We recommend using the "),Se=s("a"),ts=a("DPMSolverMultistepScheduler"),os=a(` as it\u2019s currently the fastest
scheduler there is.`),St=c(),A=s("p"),ss=a("To use a different scheduler, you can either change it via the "),Ue=s("a"),as=a("ConfigMixin.from_config()"),ns=a(`
method, or pass the `),rt=s("code"),rs=a("scheduler"),is=a(" argument to the "),it=s("code"),ls=a("from_pretrained"),ds=a(` method of the pipeline. For example, to use the
`),Ge=s("a"),cs=a("DPMSolverMultistepScheduler"),ps=a(", you can do the following:"),Ut=c(),b(fe.$$.fragment),Gt=c(),V=s("h2"),Y=s("a"),lt=s("span"),b(he.$$.fragment),us=c(),dt=s("span"),fs=a("AudioLDMPipeline"),Jt=c(),m=s("div"),b(me.$$.fragment),hs=c(),ct=s("p"),ms=a("Pipeline for text-to-audio generation using AudioLDM."),gs=c(),ge=s("p"),vs=a("This model inherits from "),Je=s("a"),_s=a("DiffusionPipeline"),bs=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.)`),ys=c(),U=s("div"),b(ve.$$.fragment),ws=c(),pt=s("p"),Ms=a("Function invoked when calling the pipeline for generation."),Ds=c(),b(O.$$.fragment),Ts=c(),K=s("div"),b(_e.$$.fragment),Es=c(),be=s("p"),As=a("Disable sliced VAE decoding. If "),ut=s("code"),$s=a("enable_vae_slicing"),Ps=a(` was previously invoked, this method will go back to
computing decoding in one step.`),xs=c(),ee=s("div"),b(ye.$$.fragment),Ls=c(),we=s("p"),ks=a(`Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, unet,
text_encoder, vae and vocoder have their state dicts saved to CPU and then are moved to a `),ft=s("code"),Ss=a("torch.device('meta') and loaded to GPU only when their specific submodule has its "),Us=a("forward` method called."),Gs=c(),G=s("div"),b(Me.$$.fragment),Js=c(),ht=s("p"),js=a("Enable sliced VAE decoding."),Is=c(),mt=s("p"),Ns=a(`When this option is enabled, the VAE will split the input tensor in slices to compute decoding in several
steps. This is useful to save some memory and allow larger batch sizes.`),this.h()},l(t){const d=Ba('[data-svelte="svelte-1phssyn"]',document.head);g=n(d,"META",{name:!0,content:!0}),d.forEach(o),R=p(t),E=n(t,"H1",{class:!0});var De=i(E);v=n(De,"A",{id:!0,class:!0,href:!0});var Cs=i(v);x=n(Cs,"SPAN",{});var Bs=i(x);y(f.$$.fragment,Bs),Bs.forEach(o),Cs.forEach(o),L=p(De),Re=n(De,"SPAN",{});var Vs=i(Re);Qt=r(Vs,"AudioLDM"),Vs.forEach(o),De.forEach(o),_t=p(t),j=n(t,"H2",{class:!0});var It=i(j);W=n(It,"A",{id:!0,class:!0,href:!0});var Rs=i(W);We=n(Rs,"SPAN",{});var Ws=i(We);y(oe.$$.fragment,Ws),Ws.forEach(o),Rs.forEach(o),Yt=p(It),Fe=n(It,"SPAN",{});var Fs=i(Fe);Ot=r(Fs,"Overview"),Fs.forEach(o),It.forEach(o),bt=p(t),F=n(t,"P",{});var Nt=i(F);Kt=r(Nt,"AudioLDM was proposed in "),se=n(Nt,"A",{href:!0,rel:!0});var qs=i(se);eo=r(qs,"AudioLDM: Text-to-Audio Generation with Latent Diffusion Models"),qs.forEach(o),to=r(Nt," by Haohe Liu et al."),Nt.forEach(o),yt=p(t),P=n(t,"P",{});var te=i(P);oo=r(te,"Inspired by "),ae=n(te,"A",{href:!0,rel:!0});var Hs=i(ae);so=r(Hs,"Stable Diffusion"),Hs.forEach(o),ao=r(te,`, AudioLDM
is a text-to-audio `),qe=n(te,"EM",{});var Xs=i(qe);no=r(Xs,"latent diffusion model (LDM)"),Xs.forEach(o),ro=r(te," that learns continuous audio representations from "),ne=n(te,"A",{href:!0,rel:!0});var zs=i(ne);io=r(zs,"CLAP"),zs.forEach(o),lo=r(te,`
latents. AudioLDM takes a text prompt as input and predicts the corresponding audio. It can generate text-conditional
sound effects, human speech and music.`),te.forEach(o),wt=p(t),k=n(t,"P",{});var je=i(k);co=r(je,"This pipeline was contributed by "),re=n(je,"A",{href:!0,rel:!0});var Qs=i(re);po=r(Qs,"sanchit-gandhi"),Qs.forEach(o),uo=r(je,". The original codebase can be found "),ie=n(je,"A",{href:!0,rel:!0});var Ys=i(ie);fo=r(Ys,"here"),Ys.forEach(o),ho=r(je,"."),je.forEach(o),Mt=p(t),I=n(t,"H2",{class:!0});var Zt=i(I);q=n(Zt,"A",{id:!0,class:!0,href:!0});var Os=i(q);He=n(Os,"SPAN",{});var Ks=i(He);y(le.$$.fragment,Ks),Ks.forEach(o),Os.forEach(o),mo=p(Zt),Xe=n(Zt,"SPAN",{});var ea=i(Xe);go=r(ea,"Text-to-Audio"),ea.forEach(o),Zt.forEach(o),Dt=p(t),S=n(t,"P",{});var Ie=i(S);vo=r(Ie,"The "),Te=n(Ie,"A",{href:!0});var ta=i(Te);_o=r(ta,"AudioLDMPipeline"),ta.forEach(o),bo=r(Ie," can be used to load pre-trained weights from "),de=n(Ie,"A",{href:!0,rel:!0});var oa=i(de);yo=r(oa,"cvssp/audioldm-s-full-v2"),oa.forEach(o),wo=r(Ie," and generate text-conditional audio outputs:"),Ie.forEach(o),Tt=p(t),y(ce.$$.fragment,t),Et=p(t),N=n(t,"H3",{class:!0});var Ct=i(N);H=n(Ct,"A",{id:!0,class:!0,href:!0});var sa=i(H);ze=n(sa,"SPAN",{});var aa=i(ze);y(pe.$$.fragment,aa),aa.forEach(o),sa.forEach(o),Mo=p(Ct),Qe=n(Ct,"SPAN",{});var na=i(Qe);Do=r(na,"Tips"),na.forEach(o),Ct.forEach(o),At=p(t),Ee=n(t,"P",{});var ra=i(Ee);To=r(ra,"Prompts:"),ra.forEach(o),$t=p(t),X=n(t,"UL",{});var Bt=i(X);Ye=n(Bt,"LI",{});var ia=i(Ye);Eo=r(ia,"Descriptive prompt inputs work best: you can use adjectives to describe the sound (e.g. \u201Chigh quality\u201D or \u201Cclear\u201D) and make the prompt context specific (e.g., \u201Cwater stream in a forest\u201D instead of \u201Cstream\u201D)."),ia.forEach(o),Ao=p(Bt),Oe=n(Bt,"LI",{});var la=i(Oe);$o=r(la,"It\u2019s best to use general terms like \u2018cat\u2019 or \u2018dog\u2019 instead of specific names or abstract objects that the model may not be familiar with."),la.forEach(o),Bt.forEach(o),Pt=p(t),Ae=n(t,"P",{});var da=i(Ae);Po=r(da,"Inference:"),da.forEach(o),xt=p(t),z=n(t,"UL",{});var Vt=i(z);Z=n(Vt,"LI",{});var Ne=i(Z);xo=r(Ne,"The "),Ke=n(Ne,"EM",{});var ca=i(Ke);Lo=r(ca,"quality"),ca.forEach(o),ko=r(Ne," of the predicted audio sample can be controlled by the "),et=n(Ne,"CODE",{});var pa=i(et);So=r(pa,"num_inference_steps"),pa.forEach(o),Uo=r(Ne," argument: higher steps give higher quality audio at the expense of slower inference."),Ne.forEach(o),Go=p(Vt),C=n(Vt,"LI",{});var Ze=i(C);Jo=r(Ze,"The "),tt=n(Ze,"EM",{});var ua=i(tt);jo=r(ua,"length"),ua.forEach(o),Io=r(Ze," of the predicted audio sample can be controlled by varying the "),ot=n(Ze,"CODE",{});var fa=i(ot);No=r(fa,"audio_length_in_s"),fa.forEach(o),Zo=r(Ze," argument."),Ze.forEach(o),Vt.forEach(o),Lt=p(t),B=n(t,"H3",{class:!0});var Rt=i(B);Q=n(Rt,"A",{id:!0,class:!0,href:!0});var ha=i(Q);st=n(ha,"SPAN",{});var ma=i(st);y(ue.$$.fragment,ma),ma.forEach(o),ha.forEach(o),Co=p(Rt),at=n(Rt,"SPAN",{});var ga=i(at);Bo=r(ga,"How to load and use different schedulers"),ga.forEach(o),Rt.forEach(o),kt=p(t),h=n(t,"P",{});var _=i(h);Vo=r(_,"The AudioLDM pipeline uses "),$e=n(_,"A",{href:!0});var va=i($e);Ro=r(va,"DDIMScheduler"),va.forEach(o),Wo=r(_," scheduler by default. But "),nt=n(_,"CODE",{});var _a=i(nt);Fo=r(_a,"diffusers"),_a.forEach(o),qo=r(_,` provides many other schedulers
that can be used with the AudioLDM pipeline such as `),Pe=n(_,"A",{href:!0});var ba=i(Pe);Ho=r(ba,"PNDMScheduler"),ba.forEach(o),Xo=r(_,", "),xe=n(_,"A",{href:!0});var ya=i(xe);zo=r(ya,"LMSDiscreteScheduler"),ya.forEach(o),Qo=r(_,", "),Le=n(_,"A",{href:!0});var wa=i(Le);Yo=r(wa,"EulerDiscreteScheduler"),wa.forEach(o),Oo=r(_,`,
`),ke=n(_,"A",{href:!0});var Ma=i(ke);Ko=r(Ma,"EulerAncestralDiscreteScheduler"),Ma.forEach(o),es=r(_," etc. We recommend using the "),Se=n(_,"A",{href:!0});var Da=i(Se);ts=r(Da,"DPMSolverMultistepScheduler"),Da.forEach(o),os=r(_,` as it\u2019s currently the fastest
scheduler there is.`),_.forEach(o),St=p(t),A=n(t,"P",{});var J=i(A);ss=r(J,"To use a different scheduler, you can either change it via the "),Ue=n(J,"A",{href:!0});var Ta=i(Ue);as=r(Ta,"ConfigMixin.from_config()"),Ta.forEach(o),ns=r(J,`
method, or pass the `),rt=n(J,"CODE",{});var Ea=i(rt);rs=r(Ea,"scheduler"),Ea.forEach(o),is=r(J," argument to the "),it=n(J,"CODE",{});var Aa=i(it);ls=r(Aa,"from_pretrained"),Aa.forEach(o),ds=r(J,` method of the pipeline. For example, to use the
`),Ge=n(J,"A",{href:!0});var $a=i(Ge);cs=r($a,"DPMSolverMultistepScheduler"),$a.forEach(o),ps=r(J,", you can do the following:"),J.forEach(o),Ut=p(t),y(fe.$$.fragment,t),Gt=p(t),V=n(t,"H2",{class:!0});var Wt=i(V);Y=n(Wt,"A",{id:!0,class:!0,href:!0});var Pa=i(Y);lt=n(Pa,"SPAN",{});var xa=i(lt);y(he.$$.fragment,xa),xa.forEach(o),Pa.forEach(o),us=p(Wt),dt=n(Wt,"SPAN",{});var La=i(dt);fs=r(La,"AudioLDMPipeline"),La.forEach(o),Wt.forEach(o),Jt=p(t),m=n(t,"DIV",{class:!0});var $=i(m);y(me.$$.fragment,$),hs=p($),ct=n($,"P",{});var ka=i(ct);ms=r(ka,"Pipeline for text-to-audio generation using AudioLDM."),ka.forEach(o),gs=p($),ge=n($,"P",{});var Ft=i(ge);vs=r(Ft,"This model inherits from "),Je=n(Ft,"A",{href:!0});var Sa=i(Je);_s=r(Sa,"DiffusionPipeline"),Sa.forEach(o),bs=r(Ft,`. 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.)`),Ft.forEach(o),ys=p($),U=n($,"DIV",{class:!0});var Ce=i(U);y(ve.$$.fragment,Ce),ws=p(Ce),pt=n(Ce,"P",{});var Ua=i(pt);Ms=r(Ua,"Function invoked when calling the pipeline for generation."),Ua.forEach(o),Ds=p(Ce),y(O.$$.fragment,Ce),Ce.forEach(o),Ts=p($),K=n($,"DIV",{class:!0});var qt=i(K);y(_e.$$.fragment,qt),Es=p(qt),be=n(qt,"P",{});var Ht=i(be);As=r(Ht,"Disable sliced VAE decoding. If "),ut=n(Ht,"CODE",{});var Ga=i(ut);$s=r(Ga,"enable_vae_slicing"),Ga.forEach(o),Ps=r(Ht,` was previously invoked, this method will go back to
computing decoding in one step.`),Ht.forEach(o),qt.forEach(o),xs=p($),ee=n($,"DIV",{class:!0});var Xt=i(ee);y(ye.$$.fragment,Xt),Ls=p(Xt),we=n(Xt,"P",{});var zt=i(we);ks=r(zt,`Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, unet,
text_encoder, vae and vocoder have their state dicts saved to CPU and then are moved to a `),ft=n(zt,"CODE",{});var Ja=i(ft);Ss=r(Ja,"torch.device('meta') and loaded to GPU only when their specific submodule has its "),Ja.forEach(o),Us=r(zt,"forward` method called."),zt.forEach(o),Xt.forEach(o),Gs=p($),G=n($,"DIV",{class:!0});var Be=i(G);y(Me.$$.fragment,Be),Js=p(Be),ht=n(Be,"P",{});var ja=i(ht);js=r(ja,"Enable sliced VAE decoding."),ja.forEach(o),Is=p(Be),mt=n(Be,"P",{});var Ia=i(mt);Ns=r(Ia,`When this option is enabled, the VAE will split the input tensor in slices to compute decoding in several
steps. This is useful to save some memory and allow larger batch sizes.`),Ia.forEach(o),Be.forEach(o),$.forEach(o),this.h()},h(){l(g,"name","hf:doc:metadata"),l(g,"content",JSON.stringify(Ha)),l(v,"id","audioldm"),l(v,"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"),l(v,"href","#audioldm"),l(E,"class","relative group"),l(W,"id","overview"),l(W,"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"),l(W,"href","#overview"),l(j,"class","relative group"),l(se,"href","https://arxiv.org/abs/2301.12503"),l(se,"rel","nofollow"),l(ae,"href","https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/overview"),l(ae,"rel","nofollow"),l(ne,"href","https://huggingface.co/docs/transformers/main/model_doc/clap"),l(ne,"rel","nofollow"),l(re,"href","https://huggingface.co/sanchit-gandhi"),l(re,"rel","nofollow"),l(ie,"href","https://github.com/haoheliu/AudioLDM"),l(ie,"rel","nofollow"),l(q,"id","texttoaudio"),l(q,"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"),l(q,"href","#texttoaudio"),l(I,"class","relative group"),l(Te,"href","/docs/diffusers/v0.18.2/en/api/pipelines/audioldm#diffusers.AudioLDMPipeline"),l(de,"href","https://huggingface.co/cvssp/audioldm-s-full-v2"),l(de,"rel","nofollow"),l(H,"id","tips"),l(H,"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"),l(H,"href","#tips"),l(N,"class","relative group"),l(Q,"id","how-to-load-and-use-different-schedulers"),l(Q,"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"),l(Q,"href","#how-to-load-and-use-different-schedulers"),l(B,"class","relative group"),l($e,"href","/docs/diffusers/v0.18.2/en/api/schedulers/ddim#diffusers.DDIMScheduler"),l(Pe,"href","/docs/diffusers/v0.18.2/en/api/schedulers/pndm#diffusers.PNDMScheduler"),l(xe,"href","/docs/diffusers/v0.18.2/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler"),l(Le,"href","/docs/diffusers/v0.18.2/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler"),l(ke,"href","/docs/diffusers/v0.18.2/en/api/schedulers/euler_ancestral#diffusers.EulerAncestralDiscreteScheduler"),l(Se,"href","/docs/diffusers/v0.18.2/en/api/schedulers/multistep_dpm_solver#diffusers.DPMSolverMultistepScheduler"),l(Ue,"href","/docs/diffusers/v0.18.2/en/api/configuration#diffusers.ConfigMixin.from_config"),l(Ge,"href","/docs/diffusers/v0.18.2/en/api/schedulers/multistep_dpm_solver#diffusers.DPMSolverMultistepScheduler"),l(Y,"id","diffusers.AudioLDMPipeline"),l(Y,"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"),l(Y,"href","#diffusers.AudioLDMPipeline"),l(V,"class","relative group"),l(Je,"href","/docs/diffusers/v0.18.2/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),l(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(m,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,d){e(document.head,g),u(t,R,d),u(t,E,d),e(E,v),e(v,x),w(f,x,null),e(E,L),e(E,Re),e(Re,Qt),u(t,_t,d),u(t,j,d),e(j,W),e(W,We),w(oe,We,null),e(j,Yt),e(j,Fe),e(Fe,Ot),u(t,bt,d),u(t,F,d),e(F,Kt),e(F,se),e(se,eo),e(F,to),u(t,yt,d),u(t,P,d),e(P,oo),e(P,ae),e(ae,so),e(P,ao),e(P,qe),e(qe,no),e(P,ro),e(P,ne),e(ne,io),e(P,lo),u(t,wt,d),u(t,k,d),e(k,co),e(k,re),e(re,po),e(k,uo),e(k,ie),e(ie,fo),e(k,ho),u(t,Mt,d),u(t,I,d),e(I,q),e(q,He),w(le,He,null),e(I,mo),e(I,Xe),e(Xe,go),u(t,Dt,d),u(t,S,d),e(S,vo),e(S,Te),e(Te,_o),e(S,bo),e(S,de),e(de,yo),e(S,wo),u(t,Tt,d),w(ce,t,d),u(t,Et,d),u(t,N,d),e(N,H),e(H,ze),w(pe,ze,null),e(N,Mo),e(N,Qe),e(Qe,Do),u(t,At,d),u(t,Ee,d),e(Ee,To),u(t,$t,d),u(t,X,d),e(X,Ye),e(Ye,Eo),e(X,Ao),e(X,Oe),e(Oe,$o),u(t,Pt,d),u(t,Ae,d),e(Ae,Po),u(t,xt,d),u(t,z,d),e(z,Z),e(Z,xo),e(Z,Ke),e(Ke,Lo),e(Z,ko),e(Z,et),e(et,So),e(Z,Uo),e(z,Go),e(z,C),e(C,Jo),e(C,tt),e(tt,jo),e(C,Io),e(C,ot),e(ot,No),e(C,Zo),u(t,Lt,d),u(t,B,d),e(B,Q),e(Q,st),w(ue,st,null),e(B,Co),e(B,at),e(at,Bo),u(t,kt,d),u(t,h,d),e(h,Vo),e(h,$e),e($e,Ro),e(h,Wo),e(h,nt),e(nt,Fo),e(h,qo),e(h,Pe),e(Pe,Ho),e(h,Xo),e(h,xe),e(xe,zo),e(h,Qo),e(h,Le),e(Le,Yo),e(h,Oo),e(h,ke),e(ke,Ko),e(h,es),e(h,Se),e(Se,ts),e(h,os),u(t,St,d),u(t,A,d),e(A,ss),e(A,Ue),e(Ue,as),e(A,ns),e(A,rt),e(rt,rs),e(A,is),e(A,it),e(it,ls),e(A,ds),e(A,Ge),e(Ge,cs),e(A,ps),u(t,Ut,d),w(fe,t,d),u(t,Gt,d),u(t,V,d),e(V,Y),e(Y,lt),w(he,lt,null),e(V,us),e(V,dt),e(dt,fs),u(t,Jt,d),u(t,m,d),w(me,m,null),e(m,hs),e(m,ct),e(ct,ms),e(m,gs),e(m,ge),e(ge,vs),e(ge,Je),e(Je,_s),e(ge,bs),e(m,ys),e(m,U),w(ve,U,null),e(U,ws),e(U,pt),e(pt,Ms),e(U,Ds),w(O,U,null),e(m,Ts),e(m,K),w(_e,K,null),e(K,Es),e(K,be),e(be,As),e(be,ut),e(ut,$s),e(be,Ps),e(m,xs),e(m,ee),w(ye,ee,null),e(ee,Ls),e(ee,we),e(we,ks),e(we,ft),e(ft,Ss),e(we,Us),e(m,Gs),e(m,G),w(Me,G,null),e(G,Js),e(G,ht),e(ht,js),e(G,Is),e(G,mt),e(mt,Ns),jt=!0},p(t,[d]){const De={};d&2&&(De.$$scope={dirty:d,ctx:t}),O.$set(De)},i(t){jt||(M(f.$$.fragment,t),M(oe.$$.fragment,t),M(le.$$.fragment,t),M(ce.$$.fragment,t),M(pe.$$.fragment,t),M(ue.$$.fragment,t),M(fe.$$.fragment,t),M(he.$$.fragment,t),M(me.$$.fragment,t),M(ve.$$.fragment,t),M(O.$$.fragment,t),M(_e.$$.fragment,t),M(ye.$$.fragment,t),M(Me.$$.fragment,t),jt=!0)},o(t){D(f.$$.fragment,t),D(oe.$$.fragment,t),D(le.$$.fragment,t),D(ce.$$.fragment,t),D(pe.$$.fragment,t),D(ue.$$.fragment,t),D(fe.$$.fragment,t),D(he.$$.fragment,t),D(me.$$.fragment,t),D(ve.$$.fragment,t),D(O.$$.fragment,t),D(_e.$$.fragment,t),D(ye.$$.fragment,t),D(Me.$$.fragment,t),jt=!1},d(t){o(g),t&&o(R),t&&o(E),T(f),t&&o(_t),t&&o(j),T(oe),t&&o(bt),t&&o(F),t&&o(yt),t&&o(P),t&&o(wt),t&&o(k),t&&o(Mt),t&&o(I),T(le),t&&o(Dt),t&&o(S),t&&o(Tt),T(ce,t),t&&o(Et),t&&o(N),T(pe),t&&o(At),t&&o(Ee),t&&o($t),t&&o(X),t&&o(Pt),t&&o(Ae),t&&o(xt),t&&o(z),t&&o(Lt),t&&o(B),T(ue),t&&o(kt),t&&o(h),t&&o(St),t&&o(A),t&&o(Ut),T(fe,t),t&&o(Gt),t&&o(V),T(he),t&&o(Jt),t&&o(m),T(me),T(ve),T(O),T(_e),T(ye),T(Me)}}}const Ha={local:"audioldm",sections:[{local:"overview",title:"Overview"},{local:"texttoaudio",sections:[{local:"tips",title:"Tips"},{local:"how-to-load-and-use-different-schedulers",title:"How to load and use different schedulers"}],title:"Text-to-Audio"},{local:"diffusers.AudioLDMPipeline",title:"AudioLDMPipeline"}],title:"AudioLDM"};function Xa(vt){return Va(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class en extends Na{constructor(g){super();Za(this,g,Xa,qa,Ca,{})}}export{en as default,Ha as metadata};
