import{s as He,o as Ze,n as Ve}from"../chunks/scheduler.8c3d61f6.js";import{S as Xe,i as qe,g as i,s as a,r as v,A as We,h as r,f as n,c as s,j as Q,u as y,x as m,k as Y,y as d,a as o,v as w,d as T,t as M,w as x}from"../chunks/index.da70eac4.js";import{D as ge}from"../chunks/Docstring.6b390b9a.js";import{C as Re}from"../chunks/CodeBlock.00a903b3.js";import{E as Oe}from"../chunks/ExampleCodeBlock.db12be95.js";import{H as Ce,E as Ne}from"../chunks/EditOnGithub.1e64e623.js";function Qe(K){let p,$="Examples:",_,f,h;return f=new Re({props:{code:"aW1wb3J0JTIwc2NpcHklMEFpbXBvcnQlMjB0b3JjaCUwQWltcG9ydCUyMHNvdW5kZmlsZSUyMGFzJTIwc2YlMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlQXVkaW9QaXBlbGluZSUwQSUwQXJlcG9faWQlMjAlM0QlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1hdWRpby1vcGVuLTEuMCUyMiUwQXBpcGUlMjAlM0QlMjBTdGFibGVBdWRpb1BpcGVsaW5lLmZyb21fcHJldHJhaW5lZChyZXBvX2lkJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQXBpcGUlMjAlM0QlMjBwaXBlLnRvKCUyMmN1ZGElMjIpJTBBJTBBJTIzJTIwZGVmaW5lJTIwdGhlJTIwcHJvbXB0cyUwQXByb21wdCUyMCUzRCUyMCUyMlRoZSUyMHNvdW5kJTIwb2YlMjBhJTIwaGFtbWVyJTIwaGl0dGluZyUyMGElMjB3b29kZW4lMjBzdXJmYWNlLiUyMiUwQW5lZ2F0aXZlX3Byb21wdCUyMCUzRCUyMCUyMkxvdyUyMHF1YWxpdHkuJTIyJTBBJTBBJTIzJTIwc2V0JTIwdGhlJTIwc2VlZCUyMGZvciUyMGdlbmVyYXRvciUwQWdlbmVyYXRvciUyMCUzRCUyMHRvcmNoLkdlbmVyYXRvciglMjJjdWRhJTIyKS5tYW51YWxfc2VlZCgwKSUwQSUwQSUyMyUyMHJ1biUyMHRoZSUyMGdlbmVyYXRpb24lMEFhdWRpbyUyMCUzRCUyMHBpcGUoJTBBJTIwJTIwJTIwJTIwcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNEbmVnYXRpdmVfcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUzRDIwMCUyQyUwQSUyMCUyMCUyMCUyMGF1ZGlvX2VuZF9pbl9zJTNEMTAuMCUyQyUwQSUyMCUyMCUyMCUyMG51bV93YXZlZm9ybXNfcGVyX3Byb21wdCUzRDMlMkMlMEElMjAlMjAlMjAlMjBnZW5lcmF0b3IlM0RnZW5lcmF0b3IlMkMlMEEpLmF1ZGlvcyUwQSUwQW91dHB1dCUyMCUzRCUyMGF1ZGlvJTVCMCU1RC5ULmZsb2F0KCkuY3B1KCkubnVtcHkoKSUwQXNmLndyaXRlKCUyMmhhbW1lci53YXYlMjIlMkMlMjBvdXRwdXQlMkMlMjBwaXBlLnZhZS5zYW1wbGluZ19yYXRlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> scipy
<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">import</span> soundfile <span class="hljs-keyword">as</span> sf
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableAudioPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>repo_id = <span class="hljs-string">&quot;stabilityai/stable-audio-open-1.0&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableAudioPipeline.from_pretrained(repo_id, 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><span class="hljs-comment"># define the prompts</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;The sound of a hammer hitting a wooden surface.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>negative_prompt = <span class="hljs-string">&quot;Low quality.&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># set the seed for generator</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generator = torch.Generator(<span class="hljs-string">&quot;cuda&quot;</span>).manual_seed(<span class="hljs-number">0</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># run the generation</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio = pipe(
<span class="hljs-meta">... </span>    prompt,
<span class="hljs-meta">... </span>    negative_prompt=negative_prompt,
<span class="hljs-meta">... </span>    num_inference_steps=<span class="hljs-number">200</span>,
<span class="hljs-meta">... </span>    audio_end_in_s=<span class="hljs-number">10.0</span>,
<span class="hljs-meta">... </span>    num_waveforms_per_prompt=<span class="hljs-number">3</span>,
<span class="hljs-meta">... </span>    generator=generator,
<span class="hljs-meta">... </span>).audios

<span class="hljs-meta">&gt;&gt;&gt; </span>output = audio[<span class="hljs-number">0</span>].T.<span class="hljs-built_in">float</span>().cpu().numpy()
<span class="hljs-meta">&gt;&gt;&gt; </span>sf.write(<span class="hljs-string">&quot;hammer.wav&quot;</span>, output, pipe.vae.sampling_rate)`,wrap:!1}}),{c(){p=i("p"),p.textContent=$,_=a(),v(f.$$.fragment)},l(l){p=r(l,"P",{"data-svelte-h":!0}),m(p)!=="svelte-kvfsh7"&&(p.textContent=$),_=s(l),y(f.$$.fragment,l)},m(l,g){o(l,p,g),o(l,_,g),w(f,l,g),h=!0},p:Ve,i(l){h||(T(f.$$.fragment,l),h=!0)},o(l){M(f.$$.fragment,l),h=!1},d(l){l&&(n(p),n(_)),x(f,l)}}}function Ye(K){let p,$,_,f,h,l,g,Se='Stable Audio was proposed in <a href="https://arxiv.org/abs/2407.14358" rel="nofollow">Stable Audio Open</a> by Zach Evans et al. . it takes a text prompt as input and predicts the corresponding sound or music sample.',ee,A,$e="Stable Audio Open generates variable-length (up to 47s) stereo audio at 44.1kHz from text prompts. It comprises three components: an autoencoder that compresses waveforms into a manageable sequence length, a T5-based text embedding for text conditioning, and a transformer-based diffusion (DiT) model that operates in the latent space of the autoencoder.",te,j,Ae="Stable Audio is trained on a corpus of around 48k audio recordings, where around 47k are from Freesound and the rest are from the Free Music Archive (FMA). All audio files are licensed under CC0, CC BY, or CC Sampling+. This data is used to train the autoencoder and the DiT.",ne,P,je=`The abstract of the paper is the following:
<em>Open generative models are vitally important for the community, allowing for fine-tunes and serving as baselines when presenting new models. However, most current text-to-audio models are private and not accessible for artists and researchers to build upon. Here we describe the architecture and training process of a new open-weights text-to-audio model trained with Creative Commons data. Our evaluation shows that the model’s performance is competitive with the state-of-the-art across various metrics. Notably, the reported FDopenl3 results (measuring the realism of the generations) showcase its potential for high-quality stereo sound synthesis at 44.1kHz.</em>`,oe,U,Pe='This pipeline was contributed by <a href="https://huggingface.co/ylacombe" rel="nofollow">Yoach Lacombe</a>. The original codebase can be found at <a href="https://github.com/Stability-AI/stable-audio-tools" rel="nofollow">Stability-AI/stable-audio-tools</a>.',ae,J,se,I,Ue="When constructing a prompt, keep in mind:",ie,B,Je="<li>Descriptive prompt inputs work best; use adjectives to describe the sound (for example, “high quality” or “clear”) and make the prompt context specific where possible (e.g. “melodic techno with a fast beat and synths” works better than “techno”).</li> <li>Using a <em>negative prompt</em> can significantly improve the quality of the generated audio. Try using a negative prompt of “low quality, average quality”.</li>",re,D,Ie="During inference:",le,G,Be="<li>The <em>quality</em> of the generated audio sample can be controlled by the <code>num_inference_steps</code> argument; higher steps give higher quality audio at the expense of slower inference.</li> <li>Multiple waveforms can be generated in one go: set <code>num_waveforms_per_prompt</code> to a value greater than 1 to enable. Automatic scoring will be performed between the generated waveforms and prompt text, and the audios ranked from best to worst accordingly.</li>",de,L,pe,c,E,_e,X,De="Pipeline for text-to-audio generation using StableAudio.",be,q,Ge=`This model inherits from <a href="/docs/diffusers/pr_10126/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`,ve,b,z,ye,W,Le="The call function to the pipeline for generation.",we,k,Te,C,H,Me,R,Ee=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,xe,S,Z,ke,O,ze=`Enable sliced VAE decoding. 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.`,ce,V,ue,F,me;return h=new Ce({props:{title:"Stable Audio",local:"stable-audio",headingTag:"h1"}}),J=new Ce({props:{title:"Tips",local:"tips",headingTag:"h2"}}),L=new Ce({props:{title:"StableAudioPipeline",local:"diffusers.StableAudioPipeline",headingTag:"h2"}}),E=new ge({props:{name:"class diffusers.StableAudioPipeline",anchor:"diffusers.StableAudioPipeline",parameters:[{name:"vae",val:": AutoencoderOobleck"},{name:"text_encoder",val:": T5EncoderModel"},{name:"projection_model",val:": StableAudioProjectionModel"},{name:"tokenizer",val:": typing.Union[transformers.models.t5.tokenization_t5.T5Tokenizer, transformers.models.t5.tokenization_t5_fast.T5TokenizerFast]"},{name:"transformer",val:": StableAudioDiTModel"},{name:"scheduler",val:": EDMDPMSolverMultistepScheduler"}],parametersDescription:[{anchor:"diffusers.StableAudioPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_10126/en/api/models/autoencoder_oobleck#diffusers.AutoencoderOobleck">AutoencoderOobleck</a>) &#x2014;
Variational Auto-Encoder (VAE) model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.StableAudioPipeline.text_encoder",description:`<strong>text_encoder</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/t5#transformers.T5EncoderModel" rel="nofollow">T5EncoderModel</a>) &#x2014;
Frozen text-encoder. StableAudio uses the encoder of
<a href="https://huggingface.co/docs/transformers/model_doc/t5#transformers.T5EncoderModel" rel="nofollow">T5</a>, specifically the
<a href="https://huggingface.co/google-t5/t5-base" rel="nofollow">google-t5/t5-base</a> variant.`,name:"text_encoder"},{anchor:"diffusers.StableAudioPipeline.projection_model",description:`<strong>projection_model</strong> (<code>StableAudioProjectionModel</code>) &#x2014;
A trained model used to linearly project the hidden-states from the text encoder model and the start and
end seconds. The projected hidden-states from the encoder and the conditional seconds are concatenated to
give the input to the transformer model.`,name:"projection_model"},{anchor:"diffusers.StableAudioPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/mt5#transformers.T5Tokenizer" rel="nofollow">T5Tokenizer</a>) &#x2014;
Tokenizer to tokenize text for the frozen text-encoder.`,name:"tokenizer"},{anchor:"diffusers.StableAudioPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/pr_10126/en/api/models/stable_audio_transformer#diffusers.StableAudioDiTModel">StableAudioDiTModel</a>) &#x2014;
A <code>StableAudioDiTModel</code> to denoise the encoded audio latents.`,name:"transformer"},{anchor:"diffusers.StableAudioPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_10126/en/api/schedulers/edm_multistep_dpm_solver#diffusers.EDMDPMSolverMultistepScheduler">EDMDPMSolverMultistepScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>transformer</code> to denoise the encoded audio latents.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/vr_10126/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py#L82"}}),z=new ge({props:{name:"__call__",anchor:"diffusers.StableAudioPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"audio_end_in_s",val:": typing.Optional[float] = None"},{name:"audio_start_in_s",val:": typing.Optional[float] = 0.0"},{name:"num_inference_steps",val:": int = 100"},{name:"guidance_scale",val:": float = 7.0"},{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.Tensor] = None"},{name:"initial_audio_waveforms",val:": typing.Optional[torch.Tensor] = None"},{name:"initial_audio_sampling_rate",val:": typing.Optional[torch.Tensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"negative_attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Optional[typing.Callable[[int, int, torch.Tensor], NoneType]] = None"},{name:"callback_steps",val:": typing.Optional[int] = 1"},{name:"output_type",val:": typing.Optional[str] = 'pt'"}],parametersDescription:[{anchor:"diffusers.StableAudioPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide audio generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"diffusers.StableAudioPipeline.__call__.audio_end_in_s",description:`<strong>audio_end_in_s</strong> (<code>float</code>, <em>optional</em>, defaults to 47.55) &#x2014;
Audio end index in seconds.`,name:"audio_end_in_s"},{anchor:"diffusers.StableAudioPipeline.__call__.audio_start_in_s",description:`<strong>audio_start_in_s</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
Audio start index in seconds.`,name:"audio_start_in_s"},{anchor:"diffusers.StableAudioPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#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.StableAudioPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.0) &#x2014;
A higher guidance scale value encourages the model to generate audio that is closely linked to the text
<code>prompt</code> at the expense of lower sound quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"diffusers.StableAudioPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide what to not include in audio generation. If not defined, you need to
pass <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (<code>guidance_scale &lt; 1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableAudioPipeline.__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.StableAudioPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) from the <a href="https://arxiv.org/abs/2010.02502" rel="nofollow">DDIM</a> paper. Only applies
to the <a href="/docs/diffusers/pr_10126/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, and is ignored in other schedulers.`,name:"eta"},{anchor:"diffusers.StableAudioPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.StableAudioPipeline.__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 audio
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.StableAudioPipeline.__call__.initial_audio_waveforms",description:`<strong>initial_audio_waveforms</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Optional initial audio waveforms to use as the initial audio waveform for generation. Must be of shape
<code>(batch_size, num_channels, audio_length)</code> or <code>(batch_size, audio_length)</code>, where <code>batch_size</code>
corresponds to the number of prompts passed to the model.`,name:"initial_audio_waveforms"},{anchor:"diffusers.StableAudioPipeline.__call__.initial_audio_sampling_rate",description:`<strong>initial_audio_sampling_rate</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Sampling rate of the <code>initial_audio_waveforms</code>, if they are provided. Must be the same as the model.`,name:"initial_audio_sampling_rate"},{anchor:"diffusers.StableAudioPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-computed text embeddings from the text encoder model. Can be used to easily tweak text inputs,
<em>e.g.</em> prompt weighting. If not provided, text embeddings will be computed from <code>prompt</code> input
argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableAudioPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-computed negative text embeddings from the text encoder model. Can be used to easily tweak text
inputs, <em>e.g.</em> prompt weighting. If not provided, negative_prompt_embeds will be computed from
<code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableAudioPipeline.__call__.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</code>, <em>optional</em>) &#x2014;
Pre-computed attention mask to be applied to the <code>prompt_embeds</code>. If not provided, attention mask will
be computed from <code>prompt</code> input argument.`,name:"attention_mask"},{anchor:"diffusers.StableAudioPipeline.__call__.negative_attention_mask",description:`<strong>negative_attention_mask</strong> (<code>torch.LongTensor</code>, <em>optional</em>) &#x2014;
Pre-computed attention mask to be applied to the <code>negative_text_audio_duration_embeds</code>.`,name:"negative_attention_mask"},{anchor:"diffusers.StableAudioPipeline.__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/pr_10126/en/api/pipelines/stable_diffusion/inpaint#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableAudioPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls every <code>callback_steps</code> steps during inference. The function is called with the
following arguments: <code>callback(step: int, timestep: int, latents: torch.Tensor)</code>.`,name:"callback"},{anchor:"diffusers.StableAudioPipeline.__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 is called. If not specified, the callback is called at
every step.`,name:"callback_steps"},{anchor:"diffusers.StableAudioPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pt&quot;</code>) &#x2014;
The output format of the generated audio. Choose between <code>&quot;np&quot;</code> to return a NumPy <code>np.ndarray</code> or
<code>&quot;pt&quot;</code> to return a PyTorch <code>torch.Tensor</code> object. Set to <code>&quot;latent&quot;</code> to return the latent diffusion
model (LDM) output.`,name:"output_type"}],source:"https://github.com/huggingface/diffusers/blob/vr_10126/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py#L482",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/pr_10126/en/api/pipelines/stable_diffusion/inpaint#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> is returned,
otherwise a <code>tuple</code> is returned where the first element is a list with the generated audio.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/pr_10126/en/api/pipelines/stable_diffusion/inpaint#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),k=new Oe({props:{anchor:"diffusers.StableAudioPipeline.__call__.example",$$slots:{default:[Qe]},$$scope:{ctx:K}}}),H=new ge({props:{name:"disable_vae_slicing",anchor:"diffusers.StableAudioPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10126/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py#L140"}}),Z=new ge({props:{name:"enable_vae_slicing",anchor:"diffusers.StableAudioPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10126/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py#L132"}}),V=new Ne({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/stable_audio.md"}}),{c(){p=i("meta"),$=a(),_=i("p"),f=a(),v(h.$$.fragment),l=a(),g=i("p"),g.innerHTML=Se,ee=a(),A=i("p"),A.textContent=$e,te=a(),j=i("p"),j.textContent=Ae,ne=a(),P=i("p"),P.innerHTML=je,oe=a(),U=i("p"),U.innerHTML=Pe,ae=a(),v(J.$$.fragment),se=a(),I=i("p"),I.textContent=Ue,ie=a(),B=i("ul"),B.innerHTML=Je,re=a(),D=i("p"),D.textContent=Ie,le=a(),G=i("ul"),G.innerHTML=Be,de=a(),v(L.$$.fragment),pe=a(),c=i("div"),v(E.$$.fragment),_e=a(),X=i("p"),X.textContent=De,be=a(),q=i("p"),q.innerHTML=Ge,ve=a(),b=i("div"),v(z.$$.fragment),ye=a(),W=i("p"),W.textContent=Le,we=a(),v(k.$$.fragment),Te=a(),C=i("div"),v(H.$$.fragment),Me=a(),R=i("p"),R.innerHTML=Ee,xe=a(),S=i("div"),v(Z.$$.fragment),ke=a(),O=i("p"),O.textContent=ze,ce=a(),v(V.$$.fragment),ue=a(),F=i("p"),this.h()},l(e){const t=We("svelte-u9bgzb",document.head);p=r(t,"META",{name:!0,content:!0}),t.forEach(n),$=s(e),_=r(e,"P",{}),Q(_).forEach(n),f=s(e),y(h.$$.fragment,e),l=s(e),g=r(e,"P",{"data-svelte-h":!0}),m(g)!=="svelte-9nasxf"&&(g.innerHTML=Se),ee=s(e),A=r(e,"P",{"data-svelte-h":!0}),m(A)!=="svelte-1fkqtr3"&&(A.textContent=$e),te=s(e),j=r(e,"P",{"data-svelte-h":!0}),m(j)!=="svelte-1di6p47"&&(j.textContent=Ae),ne=s(e),P=r(e,"P",{"data-svelte-h":!0}),m(P)!=="svelte-lksd8b"&&(P.innerHTML=je),oe=s(e),U=r(e,"P",{"data-svelte-h":!0}),m(U)!=="svelte-1kn7isa"&&(U.innerHTML=Pe),ae=s(e),y(J.$$.fragment,e),se=s(e),I=r(e,"P",{"data-svelte-h":!0}),m(I)!=="svelte-1dvtu0c"&&(I.textContent=Ue),ie=s(e),B=r(e,"UL",{"data-svelte-h":!0}),m(B)!=="svelte-1gnv7ni"&&(B.innerHTML=Je),re=s(e),D=r(e,"P",{"data-svelte-h":!0}),m(D)!=="svelte-1g0t9wk"&&(D.textContent=Ie),le=s(e),G=r(e,"UL",{"data-svelte-h":!0}),m(G)!=="svelte-1xz0ikc"&&(G.innerHTML=Be),de=s(e),y(L.$$.fragment,e),pe=s(e),c=r(e,"DIV",{class:!0});var u=Q(c);y(E.$$.fragment,u),_e=s(u),X=r(u,"P",{"data-svelte-h":!0}),m(X)!=="svelte-vd0h2c"&&(X.textContent=De),be=s(u),q=r(u,"P",{"data-svelte-h":!0}),m(q)!=="svelte-18mkhlk"&&(q.innerHTML=Ge),ve=s(u),b=r(u,"DIV",{class:!0});var N=Q(b);y(z.$$.fragment,N),ye=s(N),W=r(N,"P",{"data-svelte-h":!0}),m(W)!=="svelte-50j04k"&&(W.textContent=Le),we=s(N),y(k.$$.fragment,N),N.forEach(n),Te=s(u),C=r(u,"DIV",{class:!0});var fe=Q(C);y(H.$$.fragment,fe),Me=s(fe),R=r(fe,"P",{"data-svelte-h":!0}),m(R)!=="svelte-1s3c06i"&&(R.innerHTML=Ee),fe.forEach(n),xe=s(u),S=r(u,"DIV",{class:!0});var he=Q(S);y(Z.$$.fragment,he),ke=s(he),O=r(he,"P",{"data-svelte-h":!0}),m(O)!=="svelte-14bnrb6"&&(O.textContent=ze),he.forEach(n),u.forEach(n),ce=s(e),y(V.$$.fragment,e),ue=s(e),F=r(e,"P",{}),Q(F).forEach(n),this.h()},h(){Y(p,"name","hf:doc:metadata"),Y(p,"content",Fe),Y(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y(c,"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){d(document.head,p),o(e,$,t),o(e,_,t),o(e,f,t),w(h,e,t),o(e,l,t),o(e,g,t),o(e,ee,t),o(e,A,t),o(e,te,t),o(e,j,t),o(e,ne,t),o(e,P,t),o(e,oe,t),o(e,U,t),o(e,ae,t),w(J,e,t),o(e,se,t),o(e,I,t),o(e,ie,t),o(e,B,t),o(e,re,t),o(e,D,t),o(e,le,t),o(e,G,t),o(e,de,t),w(L,e,t),o(e,pe,t),o(e,c,t),w(E,c,null),d(c,_e),d(c,X),d(c,be),d(c,q),d(c,ve),d(c,b),w(z,b,null),d(b,ye),d(b,W),d(b,we),w(k,b,null),d(c,Te),d(c,C),w(H,C,null),d(C,Me),d(C,R),d(c,xe),d(c,S),w(Z,S,null),d(S,ke),d(S,O),o(e,ce,t),w(V,e,t),o(e,ue,t),o(e,F,t),me=!0},p(e,[t]){const u={};t&2&&(u.$$scope={dirty:t,ctx:e}),k.$set(u)},i(e){me||(T(h.$$.fragment,e),T(J.$$.fragment,e),T(L.$$.fragment,e),T(E.$$.fragment,e),T(z.$$.fragment,e),T(k.$$.fragment,e),T(H.$$.fragment,e),T(Z.$$.fragment,e),T(V.$$.fragment,e),me=!0)},o(e){M(h.$$.fragment,e),M(J.$$.fragment,e),M(L.$$.fragment,e),M(E.$$.fragment,e),M(z.$$.fragment,e),M(k.$$.fragment,e),M(H.$$.fragment,e),M(Z.$$.fragment,e),M(V.$$.fragment,e),me=!1},d(e){e&&(n($),n(_),n(f),n(l),n(g),n(ee),n(A),n(te),n(j),n(ne),n(P),n(oe),n(U),n(ae),n(se),n(I),n(ie),n(B),n(re),n(D),n(le),n(G),n(de),n(pe),n(c),n(ce),n(ue),n(F)),n(p),x(h,e),x(J,e),x(L,e),x(E),x(z),x(k),x(H),x(Z),x(V,e)}}}const Fe='{"title":"Stable Audio","local":"stable-audio","sections":[{"title":"Tips","local":"tips","sections":[],"depth":2},{"title":"StableAudioPipeline","local":"diffusers.StableAudioPipeline","sections":[],"depth":2}],"depth":1}';function Ke(K){return Ze(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class it extends Xe{constructor(p){super(),qe(this,p,Ke,Ye,He,{})}}export{it as component};
