import{s as Qe,o as ze,n as Se}from"../chunks/scheduler.53228c21.js";import{S as Le,i as $e,e as o,s,c as m,h as Ae,a as i,d as n,b as l,f as O,j as U,g as h,k as ee,w as De,l as d,m as a,n as u,t as M,o as g,p as y}from"../chunks/index.100fac89.js";import{D as Te}from"../chunks/Docstring.49101787.js";import{C as _e}from"../chunks/CodeBlock.d30a6509.js";import{E as Pe}from"../chunks/ExampleCodeBlock.4a9effb9.js";import{H as ne,E as qe}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.4d82655d.js";function Ke(ae){let r,C="Examples:",J,w,f;return w=new _e({props:{code:"aW1wb3J0JTIwdG9yY2glMEFpbXBvcnQlMjBudW1weSUyMGFzJTIwbnAlMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQXV0b2VuY29kZXJLTFdhbiUyQyUyMENocm9ub0VkaXRUcmFuc2Zvcm1lcjNETW9kZWwlMkMlMjBDaHJvbm9FZGl0UGlwZWxpbmUlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwZXhwb3J0X3RvX3ZpZGVvJTJDJTIwbG9hZF9pbWFnZSUwQWZyb20lMjB0cmFuc2Zvcm1lcnMlMjBpbXBvcnQlMjBDTElQVmlzaW9uTW9kZWwlMEElMEElMjMlMjBBdmFpbGFibGUlMjBtb2RlbHMlM0ElMjBudmlkaWElMkZDaHJvbm9FZGl0LTE0Qi1EaWZmdXNlcnMlMEFtb2RlbF9pZCUyMCUzRCUyMCUyMm52aWRpYSUyRkNocm9ub0VkaXQtMTRCLURpZmZ1c2VycyUyMiUwQWltYWdlX2VuY29kZXIlMjAlM0QlMjBDTElQVmlzaW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMG1vZGVsX2lkJTJDJTIwc3ViZm9sZGVyJTNEJTIyaW1hZ2VfZW5jb2RlciUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQzMiUwQSklM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yMCUyMCUyMCUyMG51bV90ZW1wb3JhbF9yZWFzb25pbmdfc3RlcHMlM0QwJTJDJTBBKS5mcmFtZXMlNUIwJTVEJTBBZXhwb3J0X3RvX3ZpZGVvKG91dHB1dCUyQyUyMCUyMm91dHB1dC5tcDQlMjIlMkMlMjBmcHMlM0QxNik=",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">import</span> numpy <span class="hljs-keyword">as</span> np
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoencoderKLWan, ChronoEditTransformer3DModel, ChronoEditPipeline
<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, load_image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPVisionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Available models: nvidia/ChronoEdit-14B-Diffusers</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model_id = <span class="hljs-string">&quot;nvidia/ChronoEdit-14B-Diffusers&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image_encoder = CLIPVisionModel.from_pretrained(
<span class="hljs-meta">... </span>    model_id, subfolder=<span class="hljs-string">&quot;image_encoder&quot;</span>, torch_dtype=torch.float32
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>vae = AutoencoderKLWan.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;vae&quot;</span>, torch_dtype=torch.float32)
<span class="hljs-meta">&gt;&gt;&gt; </span>transformer = ChronoEditTransformer3DModel.from_pretrained(
<span class="hljs-meta">... </span>    model_id, subfolder=<span class="hljs-string">&quot;transformer&quot;</span>, torch_dtype=torch.bfloat16
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = ChronoEditPipeline.from_pretrained(
<span class="hljs-meta">... </span>    model_id, vae=vae, image_encoder=image_encoder, transformer=transformer, torch_dtype=torch.bfloat16
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>image = load_image(<span class="hljs-string">&quot;https://huggingface.co/spaces/nvidia/ChronoEdit/resolve/main/examples/3.png&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>max_area = <span class="hljs-number">720</span> * <span class="hljs-number">1280</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>aspect_ratio = image.height / image.width
<span class="hljs-meta">&gt;&gt;&gt; </span>mod_value = pipe.vae_scale_factor_spatial * pipe.transformer.config.patch_size[<span class="hljs-number">1</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>height = <span class="hljs-built_in">round</span>(np.sqrt(max_area * aspect_ratio)) // mod_value * mod_value
<span class="hljs-meta">&gt;&gt;&gt; </span>width = <span class="hljs-built_in">round</span>(np.sqrt(max_area / aspect_ratio)) // mod_value * mod_value
<span class="hljs-meta">&gt;&gt;&gt; </span>image = image.resize((width, height))
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = (
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;The user wants to transform the image by adding a small, cute mouse sitting inside the floral teacup, enjoying a spa bath. The mouse should appear relaxed and cheerful, with a tiny white bath towel draped over its head like a turban. It should be positioned comfortably in the cup’s liquid, with gentle steam rising around it to blend with the cozy atmosphere. &quot;</span>
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;The mouse’s pose should be natural—perhaps sitting upright with paws resting lightly on the rim or submerged in the tea. The teacup’s floral design, gold trim, and warm lighting must remain unchanged to preserve the original aesthetic. The steam should softly swirl around the mouse, enhancing the spa-like, whimsical mood.&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>output = pipe(
<span class="hljs-meta">... </span>    image=image,
<span class="hljs-meta">... </span>    prompt=prompt,
<span class="hljs-meta">... </span>    height=height,
<span class="hljs-meta">... </span>    width=width,
<span class="hljs-meta">... </span>    num_frames=<span class="hljs-number">5</span>,
<span class="hljs-meta">... </span>    guidance_scale=<span class="hljs-number">5.0</span>,
<span class="hljs-meta">... </span>    enable_temporal_reasoning=<span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    num_temporal_reasoning_steps=<span class="hljs-number">0</span>,
<span class="hljs-meta">... </span>).frames[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>export_to_video(output, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">16</span>)`,wrap:!1}}),{c(){r=o("p"),r.textContent=C,J=s(),m(w.$$.fragment)},l(p){r=i(p,"P",{"data-svelte-h":!0}),U(r)!=="svelte-kvfsh7"&&(r.textContent=C),J=l(p),h(w.$$.fragment,p)},m(p,j){a(p,r,j),a(p,J,j),u(w,p,j),f=!0},p:Se,i(p){f||(M(w.$$.fragment,p),f=!0)},o(p){g(w.$$.fragment,p),f=!1},d(p){p&&(n(r),n(J)),y(w,p)}}}function Oe(ae){let r,C,J,w,f,p='<div class="flex flex-wrap space-x-1"><a href="https://huggingface.co/docs/diffusers/main/en/tutorials/using_peft_for_inference" target="_blank" rel="noopener"><img alt="LoRA" src="https://img.shields.io/badge/LoRA-d8b4fe?style=flat"/></a></div>',j,W,se,I,ke='<a href="https://huggingface.co/papers/2510.04290" rel="nofollow">ChronoEdit: Towards Temporal Reasoning for Image Editing and World Simulation</a> from NVIDIA and University of Toronto, by Jay Zhangjie Wu, Xuanchi Ren, Tianchang Shen, Tianshi Cao, Kai He, Yifan Lu, Ruiyuan Gao, Enze Xie, Shiyi Lan, Jose M. Alvarez, Jun Gao, Sanja Fidler, Zian Wang, Huan Ling.',le,G,Ee="<p><strong>TL;DR:</strong> ChronoEdit reframes image editing as a video generation task, using input and edited images as start/end frames to leverage pretrained video models with temporal consistency. A temporal reasoning stage introduces reasoning tokens to ensure physically plausible edits and visualize the editing trajectory.</p>",oe,B,Re='<em>Recent advances in large generative models have greatly enhanced both image editing and in-context image generation, yet a critical gap remains in ensuring physical consistency, where edited objects must remain coherent. This capability is especially vital for world simulation related tasks. In this paper, we present ChronoEdit, a framework that reframes image editing as a video generation problem. First, ChronoEdit treats the input and edited images as the first and last frames of a video, allowing it to leverage large pretrained video generative models that capture not only object appearance but also the implicit physics of motion and interaction through learned temporal consistency. Second, ChronoEdit introduces a temporal reasoning stage that explicitly performs editing at inference time. Under this setting, target frame is jointly denoised with reasoning tokens to imagine a plausible editing trajectory that constrains the solution space to physically viable transformations. The reasoning tokens are then dropped after a few steps to avoid the high computational cost of rendering a full video. To validate ChronoEdit, we introduce PBench-Edit, a new benchmark of image-prompt pairs for contexts that require physical consistency, and demonstrate that ChronoEdit surpasses state-of-the-art baselines in both visual fidelity and physical plausibility. Project page for code and models: <a href="https://research.nvidia.com/labs/toronto-ai/chronoedit" rel="nofollow">this https URL</a>.</em>',ie,k,Ve='The ChronoEdit pipeline is developed by the ChronoEdit Team. The original code is available on <a href="https://github.com/nv-tlabs/ChronoEdit" rel="nofollow">GitHub</a>, and pretrained models can be found in the <a href="https://huggingface.co/collections/nvidia/chronoedit" rel="nofollow">nvidia/ChronoEdit</a> collection on Hugging Face.',re,E,pe,R,de,V,Xe="Optionally, enable <strong>temporal reasoning</strong> for improved physical consistency:",ce,X,me,F,he,x,ue,H,Me,c,N,je,$,Fe="Pipeline for image-to-video generation using Wan.",Ze,A,xe=`This model inherits from <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`,ve,T,Y,Ce,D,He="The call function to the pipeline for generation.",We,Z,Ie,v,Q,Ge,P,Ne="Encodes the prompt into text encoder hidden states.",ge,z,ye,_,S,Be,q,Ye="Output class for ChronoEdit pipelines.",fe,L,be,te,we;return W=new ne({props:{title:"ChronoEdit",local:"chronoedit",headingTag:"h1"}}),E=new ne({props:{title:"Image Editing",local:"image-editing",headingTag:"h3"}}),R=new _e({props:{code:" ",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoencoderKLWan, ChronoEditTransformer3DModel, ChronoEditPipeline
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video, load_image
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPVisionModel
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image

model_id = <span class="hljs-string">&quot;nvidia/ChronoEdit-14B-Diffusers&quot;</span>
image_encoder = CLIPVisionModel.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;image_encoder&quot;</span>, torch_dtype=torch.float32)
vae = AutoencoderKLWan.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;vae&quot;</span>, torch_dtype=torch.float32)
transformer = ChronoEditTransformer3DModel.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;transformer&quot;</span>, torch_dtype=torch.bfloat16)
pipe = ChronoEditPipeline.from_pretrained(model_id, image_encoder=image_encoder, transformer=transformer, vae=vae, torch_dtype=torch.bfloat16)
pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

image = load_image(
    <span class="hljs-string">&quot;https://huggingface.co/spaces/nvidia/ChronoEdit/resolve/main/examples/3.png&quot;</span>
)
max_area = <span class="hljs-number">720</span> * <span class="hljs-number">1280</span>
aspect_ratio = image.height / image.width
mod_value = pipe.vae_scale_factor_spatial * pipe.transformer.config.patch_size[<span class="hljs-number">1</span>]
height = <span class="hljs-built_in">round</span>(np.sqrt(max_area * aspect_ratio)) // mod_value * mod_value
width = <span class="hljs-built_in">round</span>(np.sqrt(max_area / aspect_ratio)) // mod_value * mod_value
<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;width&quot;</span>, width, <span class="hljs-string">&quot;height&quot;</span>, height)
image = image.resize((width, height))
prompt = (
    <span class="hljs-string">&quot;The user wants to transform the image by adding a small, cute mouse sitting inside the floral teacup, enjoying a spa bath. The mouse should appear relaxed and cheerful, with a tiny white bath towel draped over its head like a turban. It should be positioned comfortably in the cup’s liquid, with gentle steam rising around it to blend with the cozy atmosphere. &quot;</span>
    <span class="hljs-string">&quot;The mouse’s pose should be natural—perhaps sitting upright with paws resting lightly on the rim or submerged in the tea. The teacup’s floral design, gold trim, and warm lighting must remain unchanged to preserve the original aesthetic. The steam should softly swirl around the mouse, enhancing the spa-like, whimsical mood.&quot;</span>
)

output = pipe(
    image=image,
    prompt=prompt,
    height=height,
    width=width,
    num_frames=<span class="hljs-number">5</span>,
    num_inference_steps=<span class="hljs-number">50</span>,
    guidance_scale=<span class="hljs-number">5.0</span>,
    enable_temporal_reasoning=<span class="hljs-literal">False</span>,
    num_temporal_reasoning_steps=<span class="hljs-number">0</span>,
).frames[<span class="hljs-number">0</span>]
Image.fromarray((output[-<span class="hljs-number">1</span>] * <span class="hljs-number">255</span>).clip(<span class="hljs-number">0</span>, <span class="hljs-number">255</span>).astype(<span class="hljs-string">&quot;uint8&quot;</span>)).save(<span class="hljs-string">&quot;output.png&quot;</span>)`,wrap:!1}}),X=new _e({props:{code:"b3V0cHV0JTIwJTNEJTIwcGlwZSglMEElMjAlMjAlMjAlMjBpbWFnZSUzRGltYWdlJTJDJTBBJTIwJTIwJTIwJTIwcHJvbXB0JTNEcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwaGVpZ2h0JTNEaGVpZ2h0JTJDJTBBJTIwJTIwJTIwJTIwd2lkdGglM0R3aWR0aCUyQyUwQSUyMCUyMCUyMCUyMG51bV9mcmFtZXMlM0QyOSUyQyUwQSUyMCUyMCUyMCUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0Q1MCUyQyUwQSUyMCUyMCUyMCUyMGd1aWRhbmNlX3NjYWxlJTNENS4wJTJDJTBBJTIwJTIwJTIwJTIwZW5hYmxlX3RlbXBvcmFsX3JlYXNvbmluZyUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBudW1fdGVtcG9yYWxfcmVhc29uaW5nX3N0ZXBzJTNENTAlMkMlMEEpLmZyYW1lcyU1QjAlNUQlMEFleHBvcnRfdG9fdmlkZW8ob3V0cHV0JTJDJTIwJTIyb3V0cHV0Lm1wNCUyMiUyQyUyMGZwcyUzRDE2KSUwQUltYWdlLmZyb21hcnJheSgob3V0cHV0JTVCLTElNUQlMjAqJTIwMjU1KS5jbGlwKDAlMkMlMjAyNTUpLmFzdHlwZSglMjJ1aW50OCUyMikpLnNhdmUoJTIyb3V0cHV0LnBuZyUyMik=",highlighted:`output = pipe(
    image=image,
    prompt=prompt,
    height=height,
    width=width,
    num_frames=<span class="hljs-number">29</span>,
    num_inference_steps=<span class="hljs-number">50</span>,
    guidance_scale=<span class="hljs-number">5.0</span>,
    enable_temporal_reasoning=<span class="hljs-literal">True</span>,
    num_temporal_reasoning_steps=<span class="hljs-number">50</span>,
).frames[<span class="hljs-number">0</span>]
export_to_video(output, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">16</span>)
Image.fromarray((output[-<span class="hljs-number">1</span>] * <span class="hljs-number">255</span>).clip(<span class="hljs-number">0</span>, <span class="hljs-number">255</span>).astype(<span class="hljs-string">&quot;uint8&quot;</span>)).save(<span class="hljs-string">&quot;output.png&quot;</span>)`,wrap:!1}}),F=new ne({props:{title:"Inference with 8-Step Distillation Lora",local:"inference-with-8-step-distillation-lora",headingTag:"h3"}}),x=new _e({props:{code:" ",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoencoderKLWan, ChronoEditTransformer3DModel, ChronoEditPipeline
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video, load_image
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CLIPVisionModel
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image

model_id = <span class="hljs-string">&quot;nvidia/ChronoEdit-14B-Diffusers&quot;</span>
image_encoder = CLIPVisionModel.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;image_encoder&quot;</span>, torch_dtype=torch.float32)
vae = AutoencoderKLWan.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;vae&quot;</span>, torch_dtype=torch.float32)
transformer = ChronoEditTransformer3DModel.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;transformer&quot;</span>, torch_dtype=torch.bfloat16)
pipe = ChronoEditPipeline.from_pretrained(model_id, image_encoder=image_encoder, transformer=transformer, vae=vae, torch_dtype=torch.bfloat16)
lora_path = hf_hub_download(repo_id=model_id, filename=<span class="hljs-string">&quot;lora/chronoedit_distill_lora.safetensors&quot;</span>)
pipe.load_lora_weights(lora_path)
pipe.fuse_lora(lora_scale=<span class="hljs-number">1.0</span>)
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=<span class="hljs-number">2.0</span>)
pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

image = load_image(
    <span class="hljs-string">&quot;https://huggingface.co/spaces/nvidia/ChronoEdit/resolve/main/examples/3.png&quot;</span>
)
max_area = <span class="hljs-number">720</span> * <span class="hljs-number">1280</span>
aspect_ratio = image.height / image.width
mod_value = pipe.vae_scale_factor_spatial * pipe.transformer.config.patch_size[<span class="hljs-number">1</span>]
height = <span class="hljs-built_in">round</span>(np.sqrt(max_area * aspect_ratio)) // mod_value * mod_value
width = <span class="hljs-built_in">round</span>(np.sqrt(max_area / aspect_ratio)) // mod_value * mod_value
<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;width&quot;</span>, width, <span class="hljs-string">&quot;height&quot;</span>, height)
image = image.resize((width, height))
prompt = (
    <span class="hljs-string">&quot;The user wants to transform the image by adding a small, cute mouse sitting inside the floral teacup, enjoying a spa bath. The mouse should appear relaxed and cheerful, with a tiny white bath towel draped over its head like a turban. It should be positioned comfortably in the cup’s liquid, with gentle steam rising around it to blend with the cozy atmosphere. &quot;</span>
    <span class="hljs-string">&quot;The mouse’s pose should be natural—perhaps sitting upright with paws resting lightly on the rim or submerged in the tea. The teacup’s floral design, gold trim, and warm lighting must remain unchanged to preserve the original aesthetic. The steam should softly swirl around the mouse, enhancing the spa-like, whimsical mood.&quot;</span>
)

output = pipe(
    image=image,
    prompt=prompt,
    height=height,
    width=width,
    num_frames=<span class="hljs-number">5</span>,
    num_inference_steps=<span class="hljs-number">8</span>,
    guidance_scale=<span class="hljs-number">1.0</span>,
    enable_temporal_reasoning=<span class="hljs-literal">False</span>,
    num_temporal_reasoning_steps=<span class="hljs-number">0</span>,
).frames[<span class="hljs-number">0</span>]
export_to_video(output, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">16</span>)
Image.fromarray((output[-<span class="hljs-number">1</span>] * <span class="hljs-number">255</span>).clip(<span class="hljs-number">0</span>, <span class="hljs-number">255</span>).astype(<span class="hljs-string">&quot;uint8&quot;</span>)).save(<span class="hljs-string">&quot;output.png&quot;</span>)`,wrap:!1}}),H=new ne({props:{title:"ChronoEditPipeline",local:"diffusers.ChronoEditPipeline",headingTag:"h2"}}),N=new Te({props:{name:"class diffusers.ChronoEditPipeline",anchor:"diffusers.ChronoEditPipeline",parameters:[{name:"tokenizer",val:": AutoTokenizer"},{name:"text_encoder",val:": UMT5EncoderModel"},{name:"image_encoder",val:": CLIPVisionModel"},{name:"image_processor",val:": CLIPImageProcessor"},{name:"transformer",val:": ChronoEditTransformer3DModel"},{name:"vae",val:": AutoencoderKLWan"},{name:"scheduler",val:": FlowMatchEulerDiscreteScheduler"}],parametersDescription:[{anchor:"diffusers.ChronoEditPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>T5Tokenizer</code>) &#x2014;
Tokenizer from <a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5Tokenizer" rel="nofollow">T5</a>,
specifically the <a href="https://huggingface.co/google/umt5-xxl" rel="nofollow">google/umt5-xxl</a> variant.`,name:"tokenizer"},{anchor:"diffusers.ChronoEditPipeline.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/umt5-xxl" rel="nofollow">google/umt5-xxl</a> variant.`,name:"text_encoder"},{anchor:"diffusers.ChronoEditPipeline.image_encoder",description:`<strong>image_encoder</strong> (<code>CLIPVisionModel</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPVisionModel" rel="nofollow">CLIP</a>, specifically
the
<a href="https://github.com/mlfoundations/open_clip/blob/main/docs/PRETRAINED.md#vit-h14-xlm-roberta-large" rel="nofollow">clip-vit-huge-patch14</a>
variant.`,name:"image_encoder"},{anchor:"diffusers.ChronoEditPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/main/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>) &#x2014;
Conditional Transformer to denoise the input latents.`,name:"transformer"},{anchor:"diffusers.ChronoEditPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/en/api/schedulers/unipc#diffusers.UniPCMultistepScheduler">UniPCMultistepScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>transformer</code> to denoise the encoded image latents.`,name:"scheduler"},{anchor:"diffusers.ChronoEditPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/main/en/api/models/autoencoder_kl_wan#diffusers.AutoencoderKLWan">AutoencoderKLWan</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode videos to and from latent representations.`,name:"vae"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py#L128"}}),Y=new Te({props:{name:"__call__",anchor:"diffusers.ChronoEditPipeline.__call__",parameters:[{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]]"},{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"height",val:": int = 480"},{name:"width",val:": int = 832"},{name:"num_frames",val:": int = 81"},{name:"num_inference_steps",val:": int = 50"},{name:"guidance_scale",val:": float = 5.0"},{name:"num_videos_per_prompt",val:": typing.Optional[int] = 1"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",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:"image_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'np'"},{name:"return_dict",val:": bool = True"},{name:"attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"callback_on_step_end",val:": typing.Union[typing.Callable[[int, int, typing.Dict], NoneType], diffusers.callbacks.PipelineCallback, diffusers.callbacks.MultiPipelineCallbacks, NoneType] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['latents']"},{name:"max_sequence_length",val:": int = 512"},{name:"enable_temporal_reasoning",val:": bool = False"},{name:"num_temporal_reasoning_steps",val:": int = 0"}],parametersDescription:[{anchor:"diffusers.ChronoEditPipeline.__call__.image",description:`<strong>image</strong> (<code>PipelineImageInput</code>) &#x2014;
The input image to condition the generation on. Must be an image, a list of images or a <code>torch.Tensor</code>.`,name:"image"},{anchor:"diffusers.ChronoEditPipeline.__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.ChronoEditPipeline.__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 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.ChronoEditPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, defaults to <code>480</code>) &#x2014;
The height of the generated video.`,name:"height"},{anchor:"diffusers.ChronoEditPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, defaults to <code>832</code>) &#x2014;
The width of the generated video.`,name:"width"},{anchor:"diffusers.ChronoEditPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, defaults to <code>81</code>) &#x2014;
The number of frames in the generated video.`,name:"num_frames"},{anchor:"diffusers.ChronoEditPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, defaults to <code>50</code>) &#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.ChronoEditPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>5.0</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.ChronoEditPipeline.__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 images to generate per prompt.`,name:"num_videos_per_prompt"},{anchor:"diffusers.ChronoEditPipeline.__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.ChronoEditPipeline.__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 is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.ChronoEditPipeline.__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 (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.ChronoEditPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs (prompt weighting). If not
provided, text embeddings are generated from the <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.ChronoEditPipeline.__call__.image_embeds",description:`<strong>image_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated image embeddings. Can be used to easily tweak image inputs (weighting). If not provided,
image embeddings are generated from the <code>image</code> input argument.`,name:"image_embeds"},{anchor:"diffusers.ChronoEditPipeline.__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 generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.ChronoEditPipeline.__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>ChronoEditPipelineOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.ChronoEditPipeline.__call__.attention_kwargs",description:`<strong>attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"attention_kwargs"},{anchor:"diffusers.ChronoEditPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <code>PipelineCallback</code>, <code>MultiPipelineCallbacks</code>, <em>optional</em>) &#x2014;
A function or a subclass of <code>PipelineCallback</code> or <code>MultiPipelineCallbacks</code> that is called at the end of
each denoising step during the inference. 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.ChronoEditPipeline.__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.ChronoEditPipeline.__call__.max_sequence_length",description:`<strong>max_sequence_length</strong> (<code>int</code>, defaults to <code>512</code>) &#x2014;
The maximum sequence length of the text encoder. If the prompt is longer than this, it will be
truncated. If the prompt is shorter, it will be padded to this length.`,name:"max_sequence_length"},{anchor:"diffusers.ChronoEditPipeline.__call__.enable_temporal_reasoning",description:`<strong>enable_temporal_reasoning</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to enable temporal reasoning.`,name:"enable_temporal_reasoning"},{anchor:"diffusers.ChronoEditPipeline.__call__.num_temporal_reasoning_steps",description:`<strong>num_temporal_reasoning_steps</strong> (<code>int</code>, <em>optional</em>, defaults to <code>0</code>) &#x2014;
The number of steps to enable temporal reasoning.`,name:"num_temporal_reasoning_steps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py#L467",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <code>ChronoEditPipelineOutput</code> is returned, otherwise a <code>tuple</code> is returned
where the first element is a list with the generated images and the second element is a list of <code>bool</code>s
indicating whether the corresponding generated image contains “not-safe-for-work” (nsfw) content.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>~ChronoEditPipelineOutput</code> or <code>tuple</code></p>
`}}),Z=new Pe({props:{anchor:"diffusers.ChronoEditPipeline.__call__.example",$$slots:{default:[Ke]},$$scope:{ctx:ae}}}),Q=new Te({props:{name:"encode_prompt",anchor:"diffusers.ChronoEditPipeline.encode_prompt",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"num_videos_per_prompt",val:": int = 1"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"max_sequence_length",val:": int = 226"},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"dtype",val:": typing.Optional[torch.dtype] = None"}],parametersDescription:[{anchor:"diffusers.ChronoEditPipeline.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.ChronoEditPipeline.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.ChronoEditPipeline.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.ChronoEditPipeline.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.ChronoEditPipeline.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.ChronoEditPipeline.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.`,name:"negative_prompt_embeds"},{anchor:"diffusers.ChronoEditPipeline.encode_prompt.device",description:`<strong>device</strong> &#x2014; (<code>torch.device</code>, <em>optional</em>):
torch device`,name:"device"},{anchor:"diffusers.ChronoEditPipeline.encode_prompt.dtype",description:`<strong>dtype</strong> &#x2014; (<code>torch.dtype</code>, <em>optional</em>):
torch dtype`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py#L239"}}),z=new ne({props:{title:"ChronoEditPipelineOutput",local:"diffusers.pipelines.chronoedit.pipeline_output.ChronoEditPipelineOutput",headingTag:"h2"}}),S=new Te({props:{name:"class diffusers.pipelines.chronoedit.pipeline_output.ChronoEditPipelineOutput",anchor:"diffusers.pipelines.chronoedit.pipeline_output.ChronoEditPipelineOutput",parameters:[{name:"frames",val:": Tensor"}],parametersDescription:[{anchor:"diffusers.pipelines.chronoedit.pipeline_output.ChronoEditPipelineOutput.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/chronoedit/pipeline_output.py#L9"}}),L=new qe({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/chronoedit.md"}}),{c(){r=o("meta"),C=s(),J=o("p"),w=s(),f=o("div"),f.innerHTML=p,j=s(),m(W.$$.fragment),se=s(),I=o("p"),I.innerHTML=ke,le=s(),G=o("blockquote"),G.innerHTML=Ee,oe=s(),B=o("p"),B.innerHTML=Re,ie=s(),k=o("p"),k.innerHTML=Ve,re=s(),m(E.$$.fragment),pe=s(),m(R.$$.fragment),de=s(),V=o("p"),V.innerHTML=Xe,ce=s(),m(X.$$.fragment),me=s(),m(F.$$.fragment),he=s(),m(x.$$.fragment),ue=s(),m(H.$$.fragment),Me=s(),c=o("div"),m(N.$$.fragment),je=s(),$=o("p"),$.textContent=Fe,Ze=s(),A=o("p"),A.innerHTML=xe,ve=s(),T=o("div"),m(Y.$$.fragment),Ce=s(),D=o("p"),D.textContent=He,We=s(),m(Z.$$.fragment),Ie=s(),v=o("div"),m(Q.$$.fragment),Ge=s(),P=o("p"),P.textContent=Ne,ge=s(),m(z.$$.fragment),ye=s(),_=o("div"),m(S.$$.fragment),Be=s(),q=o("p"),q.textContent=Ye,fe=s(),m(L.$$.fragment),be=s(),te=o("p"),this.h()},l(e){const t=Ae("svelte-u9bgzb",document.head);r=i(t,"META",{name:!0,content:!0}),t.forEach(n),C=l(e),J=i(e,"P",{}),O(J).forEach(n),w=l(e),f=i(e,"DIV",{style:!0,"data-svelte-h":!0}),U(f)!=="svelte-p206qu"&&(f.innerHTML=p),j=l(e),h(W.$$.fragment,e),se=l(e),I=i(e,"P",{"data-svelte-h":!0}),U(I)!=="svelte-1dvtxmf"&&(I.innerHTML=ke),le=l(e),G=i(e,"BLOCKQUOTE",{"data-svelte-h":!0}),U(G)!=="svelte-1yp7b2h"&&(G.innerHTML=Ee),oe=l(e),B=i(e,"P",{"data-svelte-h":!0}),U(B)!=="svelte-8qdjm1"&&(B.innerHTML=Re),ie=l(e),k=i(e,"P",{"data-svelte-h":!0}),U(k)!=="svelte-11jfrc"&&(k.innerHTML=Ve),re=l(e),h(E.$$.fragment,e),pe=l(e),h(R.$$.fragment,e),de=l(e),V=i(e,"P",{"data-svelte-h":!0}),U(V)!=="svelte-1p5i0kh"&&(V.innerHTML=Xe),ce=l(e),h(X.$$.fragment,e),me=l(e),h(F.$$.fragment,e),he=l(e),h(x.$$.fragment,e),ue=l(e),h(H.$$.fragment,e),Me=l(e),c=i(e,"DIV",{class:!0});var b=O(c);h(N.$$.fragment,b),je=l(b),$=i(b,"P",{"data-svelte-h":!0}),U($)!=="svelte-1u5shki"&&($.textContent=Fe),Ze=l(b),A=i(b,"P",{"data-svelte-h":!0}),U(A)!=="svelte-496sm0"&&(A.innerHTML=xe),ve=l(b),T=i(b,"DIV",{class:!0});var K=O(T);h(Y.$$.fragment,K),Ce=l(K),D=i(K,"P",{"data-svelte-h":!0}),U(D)!=="svelte-50j04k"&&(D.textContent=He),We=l(K),h(Z.$$.fragment,K),K.forEach(n),Ie=l(b),v=i(b,"DIV",{class:!0});var Ue=O(v);h(Q.$$.fragment,Ue),Ge=l(Ue),P=i(Ue,"P",{"data-svelte-h":!0}),U(P)!=="svelte-16q0ax1"&&(P.textContent=Ne),Ue.forEach(n),b.forEach(n),ge=l(e),h(z.$$.fragment,e),ye=l(e),_=i(e,"DIV",{class:!0});var Je=O(_);h(S.$$.fragment,Je),Be=l(Je),q=i(Je,"P",{"data-svelte-h":!0}),U(q)!=="svelte-r1dxuk"&&(q.textContent=Ye),Je.forEach(n),fe=l(e),h(L.$$.fragment,e),be=l(e),te=i(e,"P",{}),O(te).forEach(n),this.h()},h(){ee(r,"name","hf:doc:metadata"),ee(r,"content",et),De(f,"float","right"),ee(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ee(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ee(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ee(_,"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,r),a(e,C,t),a(e,J,t),a(e,w,t),a(e,f,t),a(e,j,t),u(W,e,t),a(e,se,t),a(e,I,t),a(e,le,t),a(e,G,t),a(e,oe,t),a(e,B,t),a(e,ie,t),a(e,k,t),a(e,re,t),u(E,e,t),a(e,pe,t),u(R,e,t),a(e,de,t),a(e,V,t),a(e,ce,t),u(X,e,t),a(e,me,t),u(F,e,t),a(e,he,t),u(x,e,t),a(e,ue,t),u(H,e,t),a(e,Me,t),a(e,c,t),u(N,c,null),d(c,je),d(c,$),d(c,Ze),d(c,A),d(c,ve),d(c,T),u(Y,T,null),d(T,Ce),d(T,D),d(T,We),u(Z,T,null),d(c,Ie),d(c,v),u(Q,v,null),d(v,Ge),d(v,P),a(e,ge,t),u(z,e,t),a(e,ye,t),a(e,_,t),u(S,_,null),d(_,Be),d(_,q),a(e,fe,t),u(L,e,t),a(e,be,t),a(e,te,t),we=!0},p(e,[t]){const b={};t&2&&(b.$$scope={dirty:t,ctx:e}),Z.$set(b)},i(e){we||(M(W.$$.fragment,e),M(E.$$.fragment,e),M(R.$$.fragment,e),M(X.$$.fragment,e),M(F.$$.fragment,e),M(x.$$.fragment,e),M(H.$$.fragment,e),M(N.$$.fragment,e),M(Y.$$.fragment,e),M(Z.$$.fragment,e),M(Q.$$.fragment,e),M(z.$$.fragment,e),M(S.$$.fragment,e),M(L.$$.fragment,e),we=!0)},o(e){g(W.$$.fragment,e),g(E.$$.fragment,e),g(R.$$.fragment,e),g(X.$$.fragment,e),g(F.$$.fragment,e),g(x.$$.fragment,e),g(H.$$.fragment,e),g(N.$$.fragment,e),g(Y.$$.fragment,e),g(Z.$$.fragment,e),g(Q.$$.fragment,e),g(z.$$.fragment,e),g(S.$$.fragment,e),g(L.$$.fragment,e),we=!1},d(e){e&&(n(C),n(J),n(w),n(f),n(j),n(se),n(I),n(le),n(G),n(oe),n(B),n(ie),n(k),n(re),n(pe),n(de),n(V),n(ce),n(me),n(he),n(ue),n(Me),n(c),n(ge),n(ye),n(_),n(fe),n(be),n(te)),n(r),y(W,e),y(E,e),y(R,e),y(X,e),y(F,e),y(x,e),y(H,e),y(N),y(Y),y(Z),y(Q),y(z,e),y(S),y(L,e)}}}const et='{"title":"ChronoEdit","local":"chronoedit","sections":[{"title":"Image Editing","local":"image-editing","sections":[],"depth":3},{"title":"Inference with 8-Step Distillation Lora","local":"inference-with-8-step-distillation-lora","sections":[],"depth":3},{"title":"ChronoEditPipeline","local":"diffusers.ChronoEditPipeline","sections":[],"depth":2},{"title":"ChronoEditPipelineOutput","local":"diffusers.pipelines.chronoedit.pipeline_output.ChronoEditPipelineOutput","sections":[],"depth":2}],"depth":1}';function tt(ae){return ze(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class rt extends Le{constructor(r){super(),$e(this,r,tt,Oe,Qe,{})}}export{rt as component};
