import{s as Qe,o as Le,n as De}from"../chunks/scheduler.182ea377.js";import{S as He,i as qe,g as a,s,r as c,A as Pe,h as o,f as l,c as i,j as Fe,u,x as m,k as ke,y as Ke,a as n,v as f,d as h,t as g,w as b,m as Ae,n as Oe}from"../chunks/index.abf12888.js";import{T as et}from"../chunks/Tip.230e2334.js";import{C as H}from"../chunks/CodeBlock.57fe6e13.js";import{D as tt}from"../chunks/DocNotebookDropdown.d9060979.js";import{H as q}from"../chunks/Heading.16916d63.js";function lt(P){let d,r,M='Additionally, we also use <a href="../../optimization/memory#model-offloading">model cpu offloading</a> to reduce the memory usage.';return{c(){d=Ae("Since generating videos is more memory intensive we can use the `decode_chunk_size` argument to control how many frames are decoded at once. This will reduce the memory usage. It's recommended to tweak this value based on your GPU memory.\nSetting `decode_chunk_size=1` will decode one frame at a time and will use the least amount of memory but the video might have some flickering.\n"),r=a("p"),r.innerHTML=M},l(p){d=Oe(p,"Since generating videos is more memory intensive we can use the `decode_chunk_size` argument to control how many frames are decoded at once. This will reduce the memory usage. It's recommended to tweak this value based on your GPU memory.\nSetting `decode_chunk_size=1` will decode one frame at a time and will use the least amount of memory but the video might have some flickering.\n"),r=o(p,"P",{"data-svelte-h":!0}),m(r)!=="svelte-dumqni"&&(r.innerHTML=M)},m(p,w){n(p,d,w),n(p,r,w)},p:De,d(p){p&&(l(d),l(r))}}}function nt(P){let d,r,M,p,w,K,Z,A,J,We='<a href="https://static1.squarespace.com/static/6213c340453c3f502425776e/t/655ce779b9d47d342a93c890/1700587395994/stable_video_diffusion.pdf" rel="nofollow">Stable Video Diffusion</a> is a powerful image-to-video generation model that can generate high resolution (576x1024) 2-4 second videos conditioned on the input image.',O,T,$e="This guide will show you how to use SVD to short generate videos from images.",ee,_,Ue="Before you begin, make sure you have the following libraries installed:",te,k,le,W,ne,$,je=`The are two variants of SVD. <a href="https://huggingface.co/stabilityai/stable-video-diffusion-img2vid" rel="nofollow">SVD</a>
and <a href="https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt" rel="nofollow">SVD-XT</a>. The svd checkpoint is trained to generate 14 frames and the svd-xt checkpoint is further
finetuned to generate 25 frames.`,se,U,Ve="We will use the <code>svd-xt</code> checkpoint for this guide.",ie,j,ae,v,Xe='<source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/svd/rocket_generated.webm" type="video/webm"/><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/svd/rocket_generated.mp4" type="video/mp4"/>',oe,V,Ge='<thead><tr><th align="center"><strong>Source Image</strong></th> <th align="center"><strong>Video</strong></th></tr></thead> <tbody><tr><td align="center"><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/svd/rocket.png"/></td> <td align="center"><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/svd/output_rocket.gif"/></td></tr></tbody>',me,y,de,X,re,G,Ce="You can achieve a 20-25% speed-up at the expense of slightly increased memory by compiling the UNet as follows:",pe,C,ce,x,ue,I,xe="Video generation is very memory intensive as we have to essentially generate <code>num_frames</code> all at once. The mechanism is very comparable to text-to-image generation with a high batch size. To reduce the memory requirement you have multiple options. The following options trade inference speed against lower memory requirement:",fe,B,Ie="<li>enable model offloading: Each component of the pipeline is offloaded to CPU once it’s not needed anymore.</li> <li>enable feed-forward chunking: The feed-forward layer runs in a loop instead of running with a single huge feed-forward batch size</li> <li>reduce <code>decode_chunk_size</code>: This means that the VAE decodes frames in chunks instead of decoding them all together. <strong>Note</strong>: In addition to leading to a small slowdown, this method also slightly leads to video quality deterioration</li>",he,S,Be="You can enable them as follows:",ge,Y,be,R,Se="Including all these tricks should lower the memory requirement to less than 8GB VRAM.",we,E,ve,N,Ye=`Along with conditioning image Stable Diffusion Video also allows providing micro-conditioning that allows more control over the generated video.
It accepts the following arguments:`,Me,z,Re="<li><code>fps</code>: The frames per second of the generated video.</li> <li><code>motion_bucket_id</code>: The motion bucket id to use for the generated video. This can be used to control the motion of the generated video. Increasing the motion bucket id will increase the motion of the generated video.</li> <li><code>noise_aug_strength</code>: The amount of noise added to the conditioning image. The higher the values the less the video will resemble the conditioning image. Increasing this value will also increase the motion of the generated video.</li>",ye,F,Ee="Here is an example of using micro-conditioning to generate a video with more motion.",Ze,Q,Je,L,Ne='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/svd/output_rocket_with_conditions.gif"/>',Te,D,_e;return w=new q({props:{title:"Stable Video Diffusion",local:"stable-video-diffusion",headingTag:"h1"}}),Z=new tt({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Mixed",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/en/svd.ipynb"},{label:"PyTorch",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/en/pytorch/svd.ipynb"},{label:"TensorFlow",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/en/tensorflow/svd.ipynb"},{label:"Mixed",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/en/svd.ipynb"},{label:"PyTorch",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/en/pytorch/svd.ipynb"},{label:"TensorFlow",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/en/tensorflow/svd.ipynb"}]}}),k=new H({props:{code:"IXBpcCUyMGluc3RhbGwlMjAtcSUyMC1VJTIwZGlmZnVzZXJzJTIwdHJhbnNmb3JtZXJzJTIwYWNjZWxlcmF0ZSUyMA==",highlighted:"!pip install -q -U diffusers transformers accelerate ",wrap:!1}}),W=new q({props:{title:"Image to Video Generation",local:"image-to-video-generation",headingTag:"h2"}}),j=new H({props:{code:"aW1wb3J0JTIwdG9yY2glMEElMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlVmlkZW9EaWZmdXNpb25QaXBlbGluZSUwQWZyb20lMjBkaWZmdXNlcnMudXRpbHMlMjBpbXBvcnQlMjBsb2FkX2ltYWdlJTJDJTIwZXhwb3J0X3RvX3ZpZGVvJTBBJTBBcGlwZSUyMCUzRCUyMFN0YWJsZVZpZGVvRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLXZpZGVvLWRpZmZ1c2lvbi1pbWcydmlkLXh0JTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMEEpJTBBcGlwZS5lbmFibGVfbW9kZWxfY3B1X29mZmxvYWQoKSUwQSUwQSUyMyUyMExvYWQlMjB0aGUlMjBjb25kaXRpb25pbmclMjBpbWFnZSUwQWltYWdlJTIwJTNEJTIwbG9hZF9pbWFnZSglMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZodWdnaW5nZmFjZSUyRmRvY3VtZW50YXRpb24taW1hZ2VzJTJGcmVzb2x2ZSUyRm1haW4lMkZkaWZmdXNlcnMlMkZzdmQlMkZyb2NrZXQucG5nJTIyKSUwQWltYWdlJTIwJTNEJTIwaW1hZ2UucmVzaXplKCgxMDI0JTJDJTIwNTc2KSklMEElMEFnZW5lcmF0b3IlMjAlM0QlMjB0b3JjaC5tYW51YWxfc2VlZCg0MiklMEFmcmFtZXMlMjAlM0QlMjBwaXBlKGltYWdlJTJDJTIwZGVjb2RlX2NodW5rX3NpemUlM0Q4JTJDJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yKS5mcmFtZXMlNUIwJTVEJTBBJTBBZXhwb3J0X3RvX3ZpZGVvKGZyYW1lcyUyQyUyMCUyMmdlbmVyYXRlZC5tcDQlMjIlMkMlMjBmcHMlM0Q3KQ==",highlighted:`<span class="hljs-keyword">import</span> torch

<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableVideoDiffusionPipeline
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image, export_to_video

pipe = StableVideoDiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;stabilityai/stable-video-diffusion-img2vid-xt&quot;</span>, torch_dtype=torch.float16, variant=<span class="hljs-string">&quot;fp16&quot;</span>
)
pipe.enable_model_cpu_offload()

<span class="hljs-comment"># Load the conditioning image</span>
image = load_image(<span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/svd/rocket.png&quot;</span>)
image = image.resize((<span class="hljs-number">1024</span>, <span class="hljs-number">576</span>))

generator = torch.manual_seed(<span class="hljs-number">42</span>)
frames = pipe(image, decode_chunk_size=<span class="hljs-number">8</span>, generator=generator).frames[<span class="hljs-number">0</span>]

export_to_video(frames, <span class="hljs-string">&quot;generated.mp4&quot;</span>, fps=<span class="hljs-number">7</span>)`,wrap:!1}}),y=new et({props:{$$slots:{default:[lt]},$$scope:{ctx:P}}}),X=new q({props:{title:"Torch.compile",local:"torchcompile",headingTag:"h3"}}),C=new H({props:{code:"LSUyMHBpcGUuZW5hYmxlX21vZGVsX2NwdV9vZmZsb2FkKCklMEElMkIlMjBwaXBlLnRvKCUyMmN1ZGElMjIpJTBBJTJCJTIwcGlwZS51bmV0JTIwJTNEJTIwdG9yY2guY29tcGlsZShwaXBlLnVuZXQlMkMlMjBtb2RlJTNEJTIycmVkdWNlLW92ZXJoZWFkJTIyJTJDJTIwZnVsbGdyYXBoJTNEVHJ1ZSk=",highlighted:`<span class="hljs-deletion">- pipe.enable_model_cpu_offload()</span>
<span class="hljs-addition">+ pipe.to(&quot;cuda&quot;)</span>
<span class="hljs-addition">+ pipe.unet = torch.compile(pipe.unet, mode=&quot;reduce-overhead&quot;, fullgraph=True)</span>`,wrap:!1}}),x=new q({props:{title:"Low-memory",local:"low-memory",headingTag:"h3"}}),Y=new H({props:{code:"LXBpcGUuZW5hYmxlX21vZGVsX2NwdV9vZmZsb2FkKCklMEEtZnJhbWVzJTIwJTNEJTIwcGlwZShpbWFnZSUyQyUyMGRlY29kZV9jaHVua19zaXplJTNEOCUyQyUyMGdlbmVyYXRvciUzRGdlbmVyYXRvcikuZnJhbWVzJTVCMCU1RCUwQSUyQnBpcGUuZW5hYmxlX21vZGVsX2NwdV9vZmZsb2FkKCklMEElMkJwaXBlLnVuZXQuZW5hYmxlX2ZvcndhcmRfY2h1bmtpbmcoKSUwQSUyQmZyYW1lcyUyMCUzRCUyMHBpcGUoaW1hZ2UlMkMlMjBkZWNvZGVfY2h1bmtfc2l6ZSUzRDIlMkMlMjBnZW5lcmF0b3IlM0RnZW5lcmF0b3IlMkMlMjBudW1fZnJhbWVzJTNEMjUpLmZyYW1lcyU1QjAlNUQ=",highlighted:`<span class="hljs-deletion">-pipe.enable_model_cpu_offload()</span>
<span class="hljs-deletion">-frames = pipe(image, decode_chunk_size=8, generator=generator).frames[0]</span>
<span class="hljs-addition">+pipe.enable_model_cpu_offload()</span>
<span class="hljs-addition">+pipe.unet.enable_forward_chunking()</span>
<span class="hljs-addition">+frames = pipe(image, decode_chunk_size=2, generator=generator, num_frames=25).frames[0]</span>`,wrap:!1}}),E=new q({props:{title:"Micro-conditioning",local:"micro-conditioning",headingTag:"h3"}}),Q=new H({props:{code:"aW1wb3J0JTIwdG9yY2glMEElMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlVmlkZW9EaWZmdXNpb25QaXBlbGluZSUwQWZyb20lMjBkaWZmdXNlcnMudXRpbHMlMjBpbXBvcnQlMjBsb2FkX2ltYWdlJTJDJTIwZXhwb3J0X3RvX3ZpZGVvJTBBJTBBcGlwZSUyMCUzRCUyMFN0YWJsZVZpZGVvRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLXZpZGVvLWRpZmZ1c2lvbi1pbWcydmlkLXh0JTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMEEpJTBBcGlwZS5lbmFibGVfbW9kZWxfY3B1X29mZmxvYWQoKSUwQSUwQSUyMyUyMExvYWQlMjB0aGUlMjBjb25kaXRpb25pbmclMjBpbWFnZSUwQWltYWdlJTIwJTNEJTIwbG9hZF9pbWFnZSglMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZodWdnaW5nZmFjZSUyRmRvY3VtZW50YXRpb24taW1hZ2VzJTJGcmVzb2x2ZSUyRm1haW4lMkZkaWZmdXNlcnMlMkZzdmQlMkZyb2NrZXQucG5nJTIyKSUwQWltYWdlJTIwJTNEJTIwaW1hZ2UucmVzaXplKCgxMDI0JTJDJTIwNTc2KSklMEElMEFnZW5lcmF0b3IlMjAlM0QlMjB0b3JjaC5tYW51YWxfc2VlZCg0MiklMEFmcmFtZXMlMjAlM0QlMjBwaXBlKGltYWdlJTJDJTIwZGVjb2RlX2NodW5rX3NpemUlM0Q4JTJDJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yJTJDJTIwbW90aW9uX2J1Y2tldF9pZCUzRDE4MCUyQyUyMG5vaXNlX2F1Z19zdHJlbmd0aCUzRDAuMSkuZnJhbWVzJTVCMCU1RCUwQWV4cG9ydF90b192aWRlbyhmcmFtZXMlMkMlMjAlMjJnZW5lcmF0ZWQubXA0JTIyJTJDJTIwZnBzJTNENyk=",highlighted:`<span class="hljs-keyword">import</span> torch

<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableVideoDiffusionPipeline
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image, export_to_video

pipe = StableVideoDiffusionPipeline.from_pretrained(
  <span class="hljs-string">&quot;stabilityai/stable-video-diffusion-img2vid-xt&quot;</span>, torch_dtype=torch.float16, variant=<span class="hljs-string">&quot;fp16&quot;</span>
)
pipe.enable_model_cpu_offload()

<span class="hljs-comment"># Load the conditioning image</span>
image = load_image(<span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/svd/rocket.png&quot;</span>)
image = image.resize((<span class="hljs-number">1024</span>, <span class="hljs-number">576</span>))

generator = torch.manual_seed(<span class="hljs-number">42</span>)
frames = pipe(image, decode_chunk_size=<span class="hljs-number">8</span>, generator=generator, motion_bucket_id=<span class="hljs-number">180</span>, noise_aug_strength=<span class="hljs-number">0.1</span>).frames[<span class="hljs-number">0</span>]
export_to_video(frames, <span class="hljs-string">&quot;generated.mp4&quot;</span>, fps=<span class="hljs-number">7</span>)`,wrap:!1}}),{c(){d=a("meta"),r=s(),M=a("p"),p=s(),c(w.$$.fragment),K=s(),c(Z.$$.fragment),A=s(),J=a("p"),J.innerHTML=We,O=s(),T=a("p"),T.textContent=$e,ee=s(),_=a("p"),_.textContent=Ue,te=s(),c(k.$$.fragment),le=s(),c(W.$$.fragment),ne=s(),$=a("p"),$.innerHTML=je,se=s(),U=a("p"),U.innerHTML=Ve,ie=s(),c(j.$$.fragment),ae=s(),v=a("video"),v.innerHTML=Xe,oe=s(),V=a("table"),V.innerHTML=Ge,me=s(),c(y.$$.fragment),de=s(),c(X.$$.fragment),re=s(),G=a("p"),G.textContent=Ce,pe=s(),c(C.$$.fragment),ce=s(),c(x.$$.fragment),ue=s(),I=a("p"),I.innerHTML=xe,fe=s(),B=a("ul"),B.innerHTML=Ie,he=s(),S=a("p"),S.textContent=Be,ge=s(),c(Y.$$.fragment),be=s(),R=a("p"),R.textContent=Se,we=s(),c(E.$$.fragment),ve=s(),N=a("p"),N.textContent=Ye,Me=s(),z=a("ul"),z.innerHTML=Re,ye=s(),F=a("p"),F.textContent=Ee,Ze=s(),c(Q.$$.fragment),Je=s(),L=a("p"),L.innerHTML=Ne,Te=s(),D=a("p"),this.h()},l(e){const t=Pe("svelte-u9bgzb",document.head);d=o(t,"META",{name:!0,content:!0}),t.forEach(l),r=i(e),M=o(e,"P",{}),Fe(M).forEach(l),p=i(e),u(w.$$.fragment,e),K=i(e),u(Z.$$.fragment,e),A=i(e),J=o(e,"P",{"data-svelte-h":!0}),m(J)!=="svelte-1vbef9r"&&(J.innerHTML=We),O=i(e),T=o(e,"P",{"data-svelte-h":!0}),m(T)!=="svelte-xwqusf"&&(T.textContent=$e),ee=i(e),_=o(e,"P",{"data-svelte-h":!0}),m(_)!=="svelte-cwruts"&&(_.textContent=Ue),te=i(e),u(k.$$.fragment,e),le=i(e),u(W.$$.fragment,e),ne=i(e),$=o(e,"P",{"data-svelte-h":!0}),m($)!=="svelte-d5kpr9"&&($.innerHTML=je),se=i(e),U=o(e,"P",{"data-svelte-h":!0}),m(U)!=="svelte-ovrr6i"&&(U.innerHTML=Ve),ie=i(e),u(j.$$.fragment,e),ae=i(e),v=o(e,"VIDEO",{width:!0,height:!0,"data-svelte-h":!0}),m(v)!=="svelte-etsswh"&&(v.innerHTML=Xe),oe=i(e),V=o(e,"TABLE",{"data-svelte-h":!0}),m(V)!=="svelte-n37d2y"&&(V.innerHTML=Ge),me=i(e),u(y.$$.fragment,e),de=i(e),u(X.$$.fragment,e),re=i(e),G=o(e,"P",{"data-svelte-h":!0}),m(G)!=="svelte-1avdrs5"&&(G.textContent=Ce),pe=i(e),u(C.$$.fragment,e),ce=i(e),u(x.$$.fragment,e),ue=i(e),I=o(e,"P",{"data-svelte-h":!0}),m(I)!=="svelte-19vtt0c"&&(I.innerHTML=xe),fe=i(e),B=o(e,"UL",{"data-svelte-h":!0}),m(B)!=="svelte-71ertv"&&(B.innerHTML=Ie),he=i(e),S=o(e,"P",{"data-svelte-h":!0}),m(S)!=="svelte-xt0ph2"&&(S.textContent=Be),ge=i(e),u(Y.$$.fragment,e),be=i(e),R=o(e,"P",{"data-svelte-h":!0}),m(R)!=="svelte-yldnwm"&&(R.textContent=Se),we=i(e),u(E.$$.fragment,e),ve=i(e),N=o(e,"P",{"data-svelte-h":!0}),m(N)!=="svelte-zhhgyp"&&(N.textContent=Ye),Me=i(e),z=o(e,"UL",{"data-svelte-h":!0}),m(z)!=="svelte-1tco7lo"&&(z.innerHTML=Re),ye=i(e),F=o(e,"P",{"data-svelte-h":!0}),m(F)!=="svelte-1vov4p7"&&(F.textContent=Ee),Ze=i(e),u(Q.$$.fragment,e),Je=i(e),L=o(e,"P",{"data-svelte-h":!0}),m(L)!=="svelte-19qaph4"&&(L.innerHTML=Ne),Te=i(e),D=o(e,"P",{}),Fe(D).forEach(l),this.h()},h(){ke(d,"name","hf:doc:metadata"),ke(d,"content",st),v.controls="",ke(v,"width","1024"),ke(v,"height","576")},m(e,t){Ke(document.head,d),n(e,r,t),n(e,M,t),n(e,p,t),f(w,e,t),n(e,K,t),f(Z,e,t),n(e,A,t),n(e,J,t),n(e,O,t),n(e,T,t),n(e,ee,t),n(e,_,t),n(e,te,t),f(k,e,t),n(e,le,t),f(W,e,t),n(e,ne,t),n(e,$,t),n(e,se,t),n(e,U,t),n(e,ie,t),f(j,e,t),n(e,ae,t),n(e,v,t),n(e,oe,t),n(e,V,t),n(e,me,t),f(y,e,t),n(e,de,t),f(X,e,t),n(e,re,t),n(e,G,t),n(e,pe,t),f(C,e,t),n(e,ce,t),f(x,e,t),n(e,ue,t),n(e,I,t),n(e,fe,t),n(e,B,t),n(e,he,t),n(e,S,t),n(e,ge,t),f(Y,e,t),n(e,be,t),n(e,R,t),n(e,we,t),f(E,e,t),n(e,ve,t),n(e,N,t),n(e,Me,t),n(e,z,t),n(e,ye,t),n(e,F,t),n(e,Ze,t),f(Q,e,t),n(e,Je,t),n(e,L,t),n(e,Te,t),n(e,D,t),_e=!0},p(e,[t]){const ze={};t&2&&(ze.$$scope={dirty:t,ctx:e}),y.$set(ze)},i(e){_e||(h(w.$$.fragment,e),h(Z.$$.fragment,e),h(k.$$.fragment,e),h(W.$$.fragment,e),h(j.$$.fragment,e),h(y.$$.fragment,e),h(X.$$.fragment,e),h(C.$$.fragment,e),h(x.$$.fragment,e),h(Y.$$.fragment,e),h(E.$$.fragment,e),h(Q.$$.fragment,e),_e=!0)},o(e){g(w.$$.fragment,e),g(Z.$$.fragment,e),g(k.$$.fragment,e),g(W.$$.fragment,e),g(j.$$.fragment,e),g(y.$$.fragment,e),g(X.$$.fragment,e),g(C.$$.fragment,e),g(x.$$.fragment,e),g(Y.$$.fragment,e),g(E.$$.fragment,e),g(Q.$$.fragment,e),_e=!1},d(e){e&&(l(r),l(M),l(p),l(K),l(A),l(J),l(O),l(T),l(ee),l(_),l(te),l(le),l(ne),l($),l(se),l(U),l(ie),l(ae),l(v),l(oe),l(V),l(me),l(de),l(re),l(G),l(pe),l(ce),l(ue),l(I),l(fe),l(B),l(he),l(S),l(ge),l(be),l(R),l(we),l(ve),l(N),l(Me),l(z),l(ye),l(F),l(Ze),l(Je),l(L),l(Te),l(D)),l(d),b(w,e),b(Z,e),b(k,e),b(W,e),b(j,e),b(y,e),b(X,e),b(C,e),b(x,e),b(Y,e),b(E,e),b(Q,e)}}}const st='{"title":"Stable Video Diffusion","local":"stable-video-diffusion","sections":[{"title":"Image to Video Generation","local":"image-to-video-generation","sections":[{"title":"Torch.compile","local":"torchcompile","sections":[],"depth":3},{"title":"Low-memory","local":"low-memory","sections":[],"depth":3},{"title":"Micro-conditioning","local":"micro-conditioning","sections":[],"depth":3}],"depth":2}],"depth":1}';function it(P){return Le(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ct extends He{constructor(d){super(),qe(this,d,it,nt,Qe,{})}}export{ct as component};
