import{s as Qe,o as Re,n as Ye}from"../chunks/scheduler.8c3d61f6.js";import{S as Ke,i as et,g as a,s as i,r as u,A as tt,h as l,f as n,c as s,j as y,u as h,x as w,k,y as t,a as p,v as g,d as _,t as b,w as v}from"../chunks/index.da70eac4.js";import{T as nt}from"../chunks/Tip.1d9b8c37.js";import{D as z}from"../chunks/Docstring.6b390b9a.js";import{C as ot}from"../chunks/CodeBlock.00a903b3.js";import{E as it}from"../chunks/ExampleCodeBlock.db12be95.js";import{H as Ze,E as st}from"../chunks/EditOnGithub.1e64e623.js";function rt(Y){let r,T='Make sure to check out the Schedulers <a href="../../using-diffusers/schedulers.md">guide</a> to learn how to explore the tradeoff between scheduler speed and quality, and see the <a href="../../using-diffusers/loading.md#reuse-a-pipeline">reuse components across pipelines</a> section to learn how to efficiently load the same components into multiple pipelines.';return{c(){r=a("p"),r.innerHTML=T},l(f){r=l(f,"P",{"data-svelte-h":!0}),w(r)!=="svelte-w7r39y"&&(r.innerHTML=T)},m(f,$){p(f,r,$)},p:Ye,d(f){f&&n(r)}}}function at(Y){let r,T="Examples:",f,$,x;return $=new ot({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTW9jaGlQaXBlbGluZSUwQWZyb20lMjBkaWZmdXNlcnMudXRpbHMlMjBpbXBvcnQlMjBleHBvcnRfdG9fdmlkZW8lMEElMEFwaXBlJTIwJTNEJTIwTW9jaGlQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIyZ2VubW8lMkZtb2NoaS0xLXByZXZpZXclMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmJmbG9hdDE2KSUwQXBpcGUuZW5hYmxlX21vZGVsX2NwdV9vZmZsb2FkKCklMEFwaXBlLmVuYWJsZV92YWVfdGlsaW5nKCklMEFwcm9tcHQlMjAlM0QlMjAlMjJDbG9zZS11cCUyMG9mJTIwYSUyMGNoYW1lbGVvbidzJTIwZXllJTJDJTIwd2l0aCUyMGl0cyUyMHNjYWx5JTIwc2tpbiUyMGNoYW5naW5nJTIwY29sb3IuJTIwVWx0cmElMjBoaWdoJTIwcmVzb2x1dGlvbiUyMDRrLiUyMiUwQWZyYW1lcyUyMCUzRCUyMHBpcGUocHJvbXB0JTJDJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUzRDI4JTJDJTIwZ3VpZGFuY2Vfc2NhbGUlM0QzLjUpLmZyYW1lcyU1QjAlNUQlMEFleHBvcnRfdG9fdmlkZW8oZnJhbWVzJTJDJTIwJTIybW9jaGkubXA0JTIyKQ==",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> MochiPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = MochiPipeline.from_pretrained(<span class="hljs-string">&quot;genmo/mochi-1-preview&quot;</span>, torch_dtype=torch.bfloat16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.enable_model_cpu_offload()
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.enable_vae_tiling()
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;Close-up of a chameleon&#x27;s eye, with its scaly skin changing color. Ultra high resolution 4k.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>frames = pipe(prompt, num_inference_steps=<span class="hljs-number">28</span>, guidance_scale=<span class="hljs-number">3.5</span>).frames[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>export_to_video(frames, <span class="hljs-string">&quot;mochi.mp4&quot;</span>)`,wrap:!1}}),{c(){r=a("p"),r.textContent=T,f=i(),u($.$$.fragment)},l(m){r=l(m,"P",{"data-svelte-h":!0}),w(r)!=="svelte-kvfsh7"&&(r.textContent=T),f=s(m),h($.$$.fragment,m)},m(m,M){p(m,r,M),p(m,f,M),g($,m,M),x=!0},p:Ye,i(m){x||(_($.$$.fragment,m),x=!0)},o(m){b($.$$.fragment,m),x=!1},d(m){m&&(n(r),n(f)),v($,m)}}}function lt(Y){let r,T,f,$,x,m,M,Ne='<a href="https://huggingface.co/genmo/mochi-1-preview" rel="nofollow">Mochi 1 Preview</a> from Genmo.',ae,Z,We="<em>Mochi 1 preview is an open state-of-the-art video generation model with high-fidelity motion and strong prompt adherence in preliminary evaluation. This model dramatically closes the gap between closed and open video generation systems. The model is released under a permissive Apache 2.0 license.</em>",le,L,de,N,ce,d,W,xe,Q,Oe="The mochi pipeline for text-to-video generation.",Me,R,Ue='Reference: <a href="https://github.com/genmoai/models" rel="nofollow">https://github.com/genmoai/models</a>',Te,P,O,Pe,K,qe="Function invoked when calling the pipeline for generation.",ye,E,ke,j,U,Ie,ee,He=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,Ce,J,q,Le,te,Ae=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to
computing decoding in one step.`,Ee,D,H,je,ne,Fe=`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.`,Je,V,A,De,oe,Xe=`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow
processing larger images.`,Ve,G,F,Ge,ie,Be="Encodes the prompt into text encoder hidden states.",pe,X,me,I,B,ze,se,Se="Output class for CogVideo pipelines.",fe,S,ue,re,he;return x=new Ze({props:{title:"Mochi",local:"mochi",headingTag:"h1"}}),L=new nt({props:{$$slots:{default:[rt]},$$scope:{ctx:Y}}}),N=new Ze({props:{title:"MochiPipeline",local:"diffusers.MochiPipeline",headingTag:"h2"}}),W=new z({props:{name:"class diffusers.MochiPipeline",anchor:"diffusers.MochiPipeline",parameters:[{name:"scheduler",val:": FlowMatchEulerDiscreteScheduler"},{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": T5EncoderModel"},{name:"tokenizer",val:": T5TokenizerFast"},{name:"transformer",val:": MochiTransformer3DModel"}],parametersDescription:[{anchor:"diffusers.MochiPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/main/en/api/models/mochi_transformer3d#diffusers.MochiTransformer3DModel">MochiTransformer3DModel</a>) &#x2014;
Conditional Transformer architecture to denoise the encoded video latents.`,name:"transformer"},{anchor:"diffusers.MochiPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/en/api/schedulers/flow_match_euler_discrete#diffusers.FlowMatchEulerDiscreteScheduler">FlowMatchEulerDiscreteScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>transformer</code> to denoise the encoded image latents.`,name:"scheduler"},{anchor:"diffusers.MochiPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/main/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.MochiPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>T5EncoderModel</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5EncoderModel" rel="nofollow">T5</a>, specifically
the <a href="https://huggingface.co/google/t5-v1_1-xxl" rel="nofollow">google/t5-v1_1-xxl</a> variant.`,name:"text_encoder"},{anchor:"diffusers.MochiPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/docs/transformers/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.MochiPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>T5TokenizerFast</code>) &#x2014;
Second Tokenizer of class
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5TokenizerFast" rel="nofollow">T5TokenizerFast</a>.`,name:"tokenizer"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/mochi/pipeline_mochi.py#L155"}}),O=new z({props:{name:"__call__",anchor:"diffusers.MochiPipeline.__call__",parameters:[{name:"prompt",val:": Union = None"},{name:"negative_prompt",val:": Union = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_frames",val:": int = 19"},{name:"num_inference_steps",val:": int = 28"},{name:"timesteps",val:": List = None"},{name:"guidance_scale",val:": float = 4.5"},{name:"num_videos_per_prompt",val:": Optional = 1"},{name:"generator",val:": Union = None"},{name:"latents",val:": Optional = None"},{name:"prompt_embeds",val:": Optional = None"},{name:"prompt_attention_mask",val:": Optional = None"},{name:"negative_prompt_embeds",val:": Optional = None"},{name:"negative_prompt_attention_mask",val:": Optional = None"},{name:"output_type",val:": Optional = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback_on_step_end",val:": Optional = None"},{name:"callback_on_step_end_tensor_inputs",val:": List = ['latents']"},{name:"max_sequence_length",val:": int = 256"}],parametersDescription:[{anchor:"diffusers.MochiPipeline.__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 image generation. If not defined, one has to pass <code>prompt_embeds</code>.
instead.`,name:"prompt"},{anchor:"diffusers.MochiPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.default_height</code>) &#x2014;
The height in pixels of the generated image. This is set to 480 by default for the best results.`,name:"height"},{anchor:"diffusers.MochiPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.default_width</code>) &#x2014;
The width in pixels of the generated image. This is set to 848 by default for the best results.`,name:"width"},{anchor:"diffusers.MochiPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, defaults to <code>19</code>) &#x2014;
The number of video frames to generate`,name:"num_frames"},{anchor:"diffusers.MochiPipeline.__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.MochiPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Custom timesteps to use for the denoising process with schedulers which support a <code>timesteps</code> argument
in their <code>set_timesteps</code> method. If not defined, the default behavior when <code>num_inference_steps</code> is
passed will be used. Must be in descending order.`,name:"timesteps"},{anchor:"diffusers.MochiPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>4.5</code>) &#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 images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"diffusers.MochiPipeline.__call__.num_videos_per_prompt",description:`<strong>num_videos_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of videos to generate per prompt.`,name:"num_videos_per_prompt"},{anchor:"diffusers.MochiPipeline.__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.MochiPipeline.__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 sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.MochiPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</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.MochiPipeline.__call__.prompt_attention_mask",description:`<strong>prompt_attention_mask</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated attention mask for text embeddings.`,name:"prompt_attention_mask"},{anchor:"diffusers.MochiPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. For PixArt-Sigma this negative prompt should be &quot;&quot;. If not
provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.MochiPipeline.__call__.negative_prompt_attention_mask",description:`<strong>negative_prompt_attention_mask</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated attention mask for negative text embeddings.`,name:"negative_prompt_attention_mask"},{anchor:"diffusers.MochiPipeline.__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
<a href="https://pillow.readthedocs.io/en/stable/" rel="nofollow">PIL</a>: <code>PIL.Image.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.MochiPipeline.__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 <code>~pipelines.mochi.MochiPipelineOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.MochiPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls at the end of each denoising steps during the inference. The function is called
with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: Dict)</code>. <code>callback_kwargs</code> will include a list of all tensors as specified by
<code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"diffusers.MochiPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List</code>, <em>optional</em>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"},{anchor:"diffusers.MochiPipeline.__call__.max_sequence_length",description:`<strong>max_sequence_length</strong> (<code>int</code> defaults to <code>256</code>) &#x2014;
Maximum sequence length to use with the <code>prompt</code>.`,name:"max_sequence_length"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/mochi/pipeline_mochi.py#L472",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <code>~pipelines.mochi.MochiPipelineOutput</code> is returned, otherwise a <code>tuple</code>
is returned where the first element is a list with the generated images.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>~pipelines.mochi.MochiPipelineOutput</code> or <code>tuple</code></p>
`}}),E=new it({props:{anchor:"diffusers.MochiPipeline.__call__.example",$$slots:{default:[at]},$$scope:{ctx:Y}}}),U=new z({props:{name:"disable_vae_slicing",anchor:"diffusers.MochiPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/mochi/pipeline_mochi.py#L405"}}),q=new z({props:{name:"disable_vae_tiling",anchor:"diffusers.MochiPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/mochi/pipeline_mochi.py#L420"}}),H=new z({props:{name:"enable_vae_slicing",anchor:"diffusers.MochiPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/mochi/pipeline_mochi.py#L398"}}),A=new z({props:{name:"enable_vae_tiling",anchor:"diffusers.MochiPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/mochi/pipeline_mochi.py#L412"}}),F=new z({props:{name:"encode_prompt",anchor:"diffusers.MochiPipeline.encode_prompt",parameters:[{name:"prompt",val:": Union"},{name:"negative_prompt",val:": Union = None"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"num_videos_per_prompt",val:": int = 1"},{name:"prompt_embeds",val:": Optional = None"},{name:"negative_prompt_embeds",val:": Optional = None"},{name:"prompt_attention_mask",val:": Optional = None"},{name:"negative_prompt_attention_mask",val:": Optional = None"},{name:"max_sequence_length",val:": int = 256"},{name:"device",val:": Optional = None"},{name:"dtype",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.MochiPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded`,name:"prompt"},{anchor:"diffusers.MochiPipeline.encode_prompt.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 image 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.MochiPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use classifier free guidance or not.`,name:"do_classifier_free_guidance"},{anchor:"diffusers.MochiPipeline.encode_prompt.num_videos_per_prompt",description:`<strong>num_videos_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of videos that should be generated per prompt. torch device to place the resulting embeddings on`,name:"num_videos_per_prompt"},{anchor:"diffusers.MochiPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</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.MochiPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</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.
device &#x2014; (<code>torch.device</code>, <em>optional</em>):
torch device
dtype &#x2014; (<code>torch.dtype</code>, <em>optional</em>):
torch dtype`,name:"negative_prompt_embeds"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/mochi/pipeline_mochi.py#L262"}}),X=new Ze({props:{title:"MochiPipelineOutput",local:"diffusers.pipelines.mochi.pipeline_output.MochiPipelineOutput",headingTag:"h2"}}),B=new z({props:{name:"class diffusers.pipelines.mochi.pipeline_output.MochiPipelineOutput",anchor:"diffusers.pipelines.mochi.pipeline_output.MochiPipelineOutput",parameters:[{name:"frames",val:": Tensor"}],parametersDescription:[{anchor:"diffusers.pipelines.mochi.pipeline_output.MochiPipelineOutput.frames",description:`<strong>frames</strong> (<code>torch.Tensor</code>, <code>np.ndarray</code>, or List[List[PIL.Image.Image]]) &#x2014;
List of video outputs - It can be a nested list of length <code>batch_size,</code> with each sub-list containing
denoised PIL image sequences of length <code>num_frames.</code> It can also be a NumPy array or Torch tensor of shape
<code>(batch_size, num_frames, channels, height, width)</code>.`,name:"frames"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/mochi/pipeline_output.py#L8"}}),S=new st({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/mochi.md"}}),{c(){r=a("meta"),T=i(),f=a("p"),$=i(),u(x.$$.fragment),m=i(),M=a("p"),M.innerHTML=Ne,ae=i(),Z=a("p"),Z.innerHTML=We,le=i(),u(L.$$.fragment),de=i(),u(N.$$.fragment),ce=i(),d=a("div"),u(W.$$.fragment),xe=i(),Q=a("p"),Q.textContent=Oe,Me=i(),R=a("p"),R.innerHTML=Ue,Te=i(),P=a("div"),u(O.$$.fragment),Pe=i(),K=a("p"),K.textContent=qe,ye=i(),u(E.$$.fragment),ke=i(),j=a("div"),u(U.$$.fragment),Ie=i(),ee=a("p"),ee.innerHTML=He,Ce=i(),J=a("div"),u(q.$$.fragment),Le=i(),te=a("p"),te.innerHTML=Ae,Ee=i(),D=a("div"),u(H.$$.fragment),je=i(),ne=a("p"),ne.textContent=Fe,Je=i(),V=a("div"),u(A.$$.fragment),De=i(),oe=a("p"),oe.textContent=Xe,Ve=i(),G=a("div"),u(F.$$.fragment),Ge=i(),ie=a("p"),ie.textContent=Be,pe=i(),u(X.$$.fragment),me=i(),I=a("div"),u(B.$$.fragment),ze=i(),se=a("p"),se.textContent=Se,fe=i(),u(S.$$.fragment),ue=i(),re=a("p"),this.h()},l(e){const o=tt("svelte-u9bgzb",document.head);r=l(o,"META",{name:!0,content:!0}),o.forEach(n),T=s(e),f=l(e,"P",{}),y(f).forEach(n),$=s(e),h(x.$$.fragment,e),m=s(e),M=l(e,"P",{"data-svelte-h":!0}),w(M)!=="svelte-1w3beu"&&(M.innerHTML=Ne),ae=s(e),Z=l(e,"P",{"data-svelte-h":!0}),w(Z)!=="svelte-16aanyn"&&(Z.innerHTML=We),le=s(e),h(L.$$.fragment,e),de=s(e),h(N.$$.fragment,e),ce=s(e),d=l(e,"DIV",{class:!0});var c=y(d);h(W.$$.fragment,c),xe=s(c),Q=l(c,"P",{"data-svelte-h":!0}),w(Q)!=="svelte-11luvqp"&&(Q.textContent=Oe),Me=s(c),R=l(c,"P",{"data-svelte-h":!0}),w(R)!=="svelte-1br2zew"&&(R.innerHTML=Ue),Te=s(c),P=l(c,"DIV",{class:!0});var C=y(P);h(O.$$.fragment,C),Pe=s(C),K=l(C,"P",{"data-svelte-h":!0}),w(K)!=="svelte-v78lg8"&&(K.textContent=qe),ye=s(C),h(E.$$.fragment,C),C.forEach(n),ke=s(c),j=l(c,"DIV",{class:!0});var ge=y(j);h(U.$$.fragment,ge),Ie=s(ge),ee=l(ge,"P",{"data-svelte-h":!0}),w(ee)!=="svelte-1s3c06i"&&(ee.innerHTML=He),ge.forEach(n),Ce=s(c),J=l(c,"DIV",{class:!0});var _e=y(J);h(q.$$.fragment,_e),Le=s(_e),te=l(_e,"P",{"data-svelte-h":!0}),w(te)!=="svelte-pkn4ui"&&(te.innerHTML=Ae),_e.forEach(n),Ee=s(c),D=l(c,"DIV",{class:!0});var be=y(D);h(H.$$.fragment,be),je=s(be),ne=l(be,"P",{"data-svelte-h":!0}),w(ne)!=="svelte-14bnrb6"&&(ne.textContent=Fe),be.forEach(n),Je=s(c),V=l(c,"DIV",{class:!0});var ve=y(V);h(A.$$.fragment,ve),De=s(ve),oe=l(ve,"P",{"data-svelte-h":!0}),w(oe)!=="svelte-1xwrf7t"&&(oe.textContent=Xe),ve.forEach(n),Ve=s(c),G=l(c,"DIV",{class:!0});var $e=y(G);h(F.$$.fragment,$e),Ge=s($e),ie=l($e,"P",{"data-svelte-h":!0}),w(ie)!=="svelte-16q0ax1"&&(ie.textContent=Be),$e.forEach(n),c.forEach(n),pe=s(e),h(X.$$.fragment,e),me=s(e),I=l(e,"DIV",{class:!0});var we=y(I);h(B.$$.fragment,we),ze=s(we),se=l(we,"P",{"data-svelte-h":!0}),w(se)!=="svelte-1qnvsrt"&&(se.textContent=Se),we.forEach(n),fe=s(e),h(S.$$.fragment,e),ue=s(e),re=l(e,"P",{}),y(re).forEach(n),this.h()},h(){k(r,"name","hf:doc:metadata"),k(r,"content",dt),k(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(d,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(I,"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,o){t(document.head,r),p(e,T,o),p(e,f,o),p(e,$,o),g(x,e,o),p(e,m,o),p(e,M,o),p(e,ae,o),p(e,Z,o),p(e,le,o),g(L,e,o),p(e,de,o),g(N,e,o),p(e,ce,o),p(e,d,o),g(W,d,null),t(d,xe),t(d,Q),t(d,Me),t(d,R),t(d,Te),t(d,P),g(O,P,null),t(P,Pe),t(P,K),t(P,ye),g(E,P,null),t(d,ke),t(d,j),g(U,j,null),t(j,Ie),t(j,ee),t(d,Ce),t(d,J),g(q,J,null),t(J,Le),t(J,te),t(d,Ee),t(d,D),g(H,D,null),t(D,je),t(D,ne),t(d,Je),t(d,V),g(A,V,null),t(V,De),t(V,oe),t(d,Ve),t(d,G),g(F,G,null),t(G,Ge),t(G,ie),p(e,pe,o),g(X,e,o),p(e,me,o),p(e,I,o),g(B,I,null),t(I,ze),t(I,se),p(e,fe,o),g(S,e,o),p(e,ue,o),p(e,re,o),he=!0},p(e,[o]){const c={};o&2&&(c.$$scope={dirty:o,ctx:e}),L.$set(c);const C={};o&2&&(C.$$scope={dirty:o,ctx:e}),E.$set(C)},i(e){he||(_(x.$$.fragment,e),_(L.$$.fragment,e),_(N.$$.fragment,e),_(W.$$.fragment,e),_(O.$$.fragment,e),_(E.$$.fragment,e),_(U.$$.fragment,e),_(q.$$.fragment,e),_(H.$$.fragment,e),_(A.$$.fragment,e),_(F.$$.fragment,e),_(X.$$.fragment,e),_(B.$$.fragment,e),_(S.$$.fragment,e),he=!0)},o(e){b(x.$$.fragment,e),b(L.$$.fragment,e),b(N.$$.fragment,e),b(W.$$.fragment,e),b(O.$$.fragment,e),b(E.$$.fragment,e),b(U.$$.fragment,e),b(q.$$.fragment,e),b(H.$$.fragment,e),b(A.$$.fragment,e),b(F.$$.fragment,e),b(X.$$.fragment,e),b(B.$$.fragment,e),b(S.$$.fragment,e),he=!1},d(e){e&&(n(T),n(f),n($),n(m),n(M),n(ae),n(Z),n(le),n(de),n(ce),n(d),n(pe),n(me),n(I),n(fe),n(ue),n(re)),n(r),v(x,e),v(L,e),v(N,e),v(W),v(O),v(E),v(U),v(q),v(H),v(A),v(F),v(X,e),v(B),v(S,e)}}}const dt='{"title":"Mochi","local":"mochi","sections":[{"title":"MochiPipeline","local":"diffusers.MochiPipeline","sections":[],"depth":2},{"title":"MochiPipelineOutput","local":"diffusers.pipelines.mochi.pipeline_output.MochiPipelineOutput","sections":[],"depth":2}],"depth":1}';function ct(Y){return Re(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class bt extends Ke{constructor(r){super(),et(this,r,ct,lt,Qe,{})}}export{bt as component};
