Buckets:
| import{s as Yt,o as er,n as Qt}from"../chunks/scheduler.182ea377.js";import{S as tr,i as rr,g as s,s as n,p as v,A as sr,h as o,f as t,c as a,j as p,q as b,m as c,k as l,v as r,a as d,r as M,d as x,t as y,u as w}from"../chunks/index.008d68e4.js";import{T as or}from"../chunks/Tip.4f096367.js";import{D as Pe}from"../chunks/Docstring.7aec8b85.js";import{C as ir}from"../chunks/CodeBlock.5ed6eb7b.js";import{I as Le}from"../chunks/IconCopyLink.96bbb92b.js";import{E as nr}from"../chunks/ExampleCodeBlock.23e54afe.js";function ar(ae){let u,$=`To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated models</a>, log-in with | |
| <code>huggingface-cli login</code>. You can also activate the special | |
| <a href="https://huggingface.co/diffusers/installation.html#offline-mode" rel="nofollow">“offline-mode”</a> to use this method in a | |
| firewalled environment.`;return{c(){u=s("p"),u.innerHTML=$},l(m){u=o(m,"P",{"data-svelte-h":!0}),c(u)!=="svelte-19a77yg"&&(u.innerHTML=$)},m(m,g){d(m,u,g)},p:Qt,d(m){m&&t(u)}}}function dr(ae){let u,$="Examples:",m,g,P;return g=new ir({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24tMiUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnVuZXQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMCU2MHVuZXQlNjAlMjB0byUyMHlvdXIlMjBuYW1lc3BhY2UlMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC11bmV0JTIyLiUwQXVuZXQucHVzaF90b19odWIoJTIybXktZmluZXR1bmVkLXVuZXQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMCU2MHVuZXQlNjAlMjB0byUyMGFuJTIwb3JnYW5pemF0aW9uJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtdW5ldCUyMi4lMEF1bmV0LnB1c2hfdG9faHViKCUyMnlvdXItb3JnJTJGbXktZmluZXR1bmVkLXVuZXQlMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel | |
| unet = UNet2DConditionModel.from_pretrained(<span class="hljs-string">"stabilityai/stable-diffusion-2"</span>, subfolder=<span class="hljs-string">"unet"</span>) | |
| <span class="hljs-comment"># Push the \`unet\` to your namespace with the name "my-finetuned-unet".</span> | |
| unet.push_to_hub(<span class="hljs-string">"my-finetuned-unet"</span>) | |
| <span class="hljs-comment"># Push the \`unet\` to an organization with the name "my-finetuned-unet".</span> | |
| unet.push_to_hub(<span class="hljs-string">"your-org/my-finetuned-unet"</span>)`}}),{c(){u=s("p"),u.textContent=$,m=n(),v(g.$$.fragment)},l(h){u=o(h,"P",{"data-svelte-h":!0}),c(u)!=="svelte-kvfsh7"&&(u.textContent=$),m=a(h),b(g.$$.fragment,h)},m(h,j){d(h,u,j),d(h,m,j),M(g,h,j),P=!0},p:Qt,i(h){P||(x(g.$$.fragment,h),P=!0)},o(h){y(g.$$.fragment,h),P=!1},d(h){h&&(t(u),t(m)),w(g,h)}}}function lr(ae){let u,$,m,g,P,h,j,de,Mt="Schedulers",Ae,V,xt="🤗 Diffusers provides many scheduler functions for the diffusion process. A scheduler takes a model’s output (the sample which the diffusion process is iterating on) and a timestep to return a denoised sample. The timestep is important because it dictates where in the diffusion process the step is; data is generated by iterating forward <em>n</em> timesteps and inference occurs by propagating backward through the timesteps. Based on the timestep, a scheduler may be <em>discrete</em> in which case the timestep is an <code>int</code> or <em>continuous</em> in which case the timestep is a <code>float</code>.",Ue,z,yt="Depending on the context, a scheduler defines how to iteratively add noise to an image or how to update a sample based on a model’s output:",Ee,B,wt="<li>during <em>training</em>, a scheduler adds noise (there are different algorithms for how to add noise) to a sample to train a diffusion model</li> <li>during <em>inference</em>, a scheduler defines how to update a sample based on a pretrained model’s output</li>",Ne,F,St='Many schedulers are implemented from the <a href="https://github.com/crowsonkb/k-diffusion" rel="nofollow">k-diffusion</a> library by <a href="https://github.com/crowsonkb/" rel="nofollow">Katherine Crowson</a>, and they’re also widely used in A1111. To help you map the schedulers from k-diffusion and A1111 to the schedulers in 🤗 Diffusers, take a look at the table below:',Ie,W,$t='<thead><tr><th>A1111/k-diffusion</th> <th>🤗 Diffusers</th> <th>Usage</th></tr></thead> <tbody><tr><td>DPM++ 2M</td> <td><a href="/docs/diffusers/main/en/api/schedulers/multistep_dpm_solver#diffusers.DPMSolverMultistepScheduler">DPMSolverMultistepScheduler</a></td> <td></td></tr> <tr><td>DPM++ 2M Karras</td> <td><a href="/docs/diffusers/main/en/api/schedulers/multistep_dpm_solver#diffusers.DPMSolverMultistepScheduler">DPMSolverMultistepScheduler</a></td> <td>init with <code>use_karras_sigmas=True</code></td></tr> <tr><td>DPM++ 2M SDE</td> <td><a href="/docs/diffusers/main/en/api/schedulers/multistep_dpm_solver#diffusers.DPMSolverMultistepScheduler">DPMSolverMultistepScheduler</a></td> <td>init with <code>algorithm_type="sde-dpmsolver++"</code></td></tr> <tr><td>DPM++ 2M SDE Karras</td> <td><a href="/docs/diffusers/main/en/api/schedulers/multistep_dpm_solver#diffusers.DPMSolverMultistepScheduler">DPMSolverMultistepScheduler</a></td> <td>init with <code>use_karras_sigmas=True</code> and <code>algorithm_type="sde-dpmsolver++"</code></td></tr> <tr><td>DPM++ 2S a</td> <td>N/A</td> <td>very similar to <code>DPMSolverSinglestepScheduler</code></td></tr> <tr><td>DPM++ 2S a Karras</td> <td>N/A</td> <td>very similar to <code>DPMSolverSinglestepScheduler(use_karras_sigmas=True, ...)</code></td></tr> <tr><td>DPM++ SDE</td> <td><a href="/docs/diffusers/main/en/api/schedulers/singlestep_dpm_solver#diffusers.DPMSolverSinglestepScheduler">DPMSolverSinglestepScheduler</a></td> <td></td></tr> <tr><td>DPM++ SDE Karras</td> <td><a href="/docs/diffusers/main/en/api/schedulers/singlestep_dpm_solver#diffusers.DPMSolverSinglestepScheduler">DPMSolverSinglestepScheduler</a></td> <td>init with <code>use_karras_sigmas=True</code></td></tr> <tr><td>DPM2</td> <td><a href="/docs/diffusers/main/en/api/schedulers/dpm_discrete#diffusers.KDPM2DiscreteScheduler">KDPM2DiscreteScheduler</a></td> <td></td></tr> <tr><td>DPM2 Karras</td> <td><a href="/docs/diffusers/main/en/api/schedulers/dpm_discrete#diffusers.KDPM2DiscreteScheduler">KDPM2DiscreteScheduler</a></td> <td>init with <code>use_karras_sigmas=True</code></td></tr> <tr><td>DPM2 a</td> <td><a href="/docs/diffusers/main/en/api/schedulers/dpm_discrete_ancestral#diffusers.KDPM2AncestralDiscreteScheduler">KDPM2AncestralDiscreteScheduler</a></td> <td></td></tr> <tr><td>DPM2 a Karras</td> <td><a href="/docs/diffusers/main/en/api/schedulers/dpm_discrete_ancestral#diffusers.KDPM2AncestralDiscreteScheduler">KDPM2AncestralDiscreteScheduler</a></td> <td>init with <code>use_karras_sigmas=True</code></td></tr> <tr><td>DPM adaptive</td> <td>N/A</td> <td></td></tr> <tr><td>DPM fast</td> <td>N/A</td> <td></td></tr> <tr><td>Euler</td> <td><a href="/docs/diffusers/main/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler">EulerDiscreteScheduler</a></td> <td></td></tr> <tr><td>Euler a</td> <td><a href="/docs/diffusers/main/en/api/schedulers/euler_ancestral#diffusers.EulerAncestralDiscreteScheduler">EulerAncestralDiscreteScheduler</a></td> <td></td></tr> <tr><td>Heun</td> <td><a href="/docs/diffusers/main/en/api/schedulers/heun#diffusers.HeunDiscreteScheduler">HeunDiscreteScheduler</a></td> <td></td></tr> <tr><td>LMS</td> <td><a href="/docs/diffusers/main/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a></td> <td></td></tr> <tr><td>LMS Karras</td> <td><a href="/docs/diffusers/main/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a></td> <td>init with <code>use_karras_sigmas=True</code></td></tr> <tr><td>N/A</td> <td><a href="/docs/diffusers/main/en/api/schedulers/deis#diffusers.DEISMultistepScheduler">DEISMultistepScheduler</a></td> <td></td></tr> <tr><td>N/A</td> <td><a href="/docs/diffusers/main/en/api/schedulers/unipc#diffusers.UniPCMultistepScheduler">UniPCMultistepScheduler</a></td> <td></td></tr></tbody>',qe,K,Pt='All schedulers are built from the base <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a> class which implements low level utilities shared by all schedulers.',Je,k,U,Te,O,tt,le,Tt="SchedulerMixin",Ze,f,X,rt,ue,Dt="Base class for all schedulers.",st,ce,kt=`<a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a> contains common functions shared by all schedulers such as general loading and saving | |
| functionalities.`,ot,he,Ct=`<a href="/docs/diffusers/main/en/api/configuration#diffusers.ConfigMixin">ConfigMixin</a> takes care of storing the configuration attributes (like <code>num_train_timesteps</code>) that are passed to | |
| the scheduler’s <code>__init__</code> function, and the attributes can be accessed by <code>scheduler.config.num_train_timesteps</code>.`,it,fe,Ht="Class attributes:",nt,pe,Lt=`<li><strong>_compatibles</strong> (<code>List[str]</code>) — A list of scheduler classes that are compatible with the parent scheduler | |
| class. Use <a href="/docs/diffusers/main/en/api/configuration#diffusers.ConfigMixin.from_config">from_config()</a> to load a different compatible scheduler class (should be overridden | |
| by parent class).</li>`,at,T,R,dt,me,At="Instantiate a scheduler from a pre-defined JSON configuration file in a local directory or Hub repository.",lt,E,ut,N,G,ct,ge,Ut=`Save a scheduler configuration object to a directory so that it can be reloaded using the | |
| <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.SchedulerMixin.from_pretrained">from_pretrained()</a> class method.`,je,C,I,De,Q,ht,_e,Et="SchedulerOutput",Ve,H,Y,ft,ve,Nt="Base class for the output of a scheduler’s <code>step</code> function.",ze,L,q,ke,ee,pt,be,It="KarrasDiffusionSchedulers",Be,te,qt="<code>KarrasDiffusionSchedulers</code> are a broad generalization of schedulers in 🤗 Diffusers. The schedulers in this class are distinguished at a high level by their noise sampling strategy, the type of network and scaling, the training strategy, and how the loss is weighed.",Fe,re,Jt='The different schedulers in this class, depending on the ordinary differential equations (ODE) solver type, fall into the above taxonomy and provide a good abstraction for the design of the main schedulers implemented in 🤗 Diffusers. The schedulers in this class are given <a href="https://github.com/huggingface/diffusers/blob/a69754bb879ed55b9b6dc9dd0b3cf4fa4124c765/src/diffusers/schedulers/scheduling_utils.py#L32" rel="nofollow">here</a>.',We,A,J,Ce,se,mt,Me,Zt="PushToHubMixin",Ke,S,oe,gt,xe,jt="A Mixin to push a model, scheduler, or pipeline to the Hugging Face Hub.",_t,D,ie,vt,ye,Vt="Upload model, scheduler, or pipeline files to the 🤗 Hugging Face Hub.",bt,Z,Oe;return h=new Le({}),O=new Le({}),X=new Pe({props:{name:"class diffusers.SchedulerMixin",anchor:"diffusers.SchedulerMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_utils.py#L64"}}),R=new Pe({props:{name:"from_pretrained",anchor:"diffusers.SchedulerMixin.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Union = None"},{name:"subfolder",val:": Optional = None"},{name:"return_unused_kwargs",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.SchedulerMixin.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the scheduler | |
| configuration saved with <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.SchedulerMixin.save_pretrained">save_pretrained()</a>.</li> | |
| </ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.SchedulerMixin.from_pretrained.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.SchedulerMixin.from_pretrained.return_unused_kwargs",description:`<strong>return_unused_kwargs</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether kwargs that are not consumed by the Python class should be returned or not.`,name:"return_unused_kwargs"},{anchor:"diffusers.SchedulerMixin.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.SchedulerMixin.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force the (re-)download of the model weights and configuration files, overriding the | |
| cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.SchedulerMixin.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any | |
| incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.SchedulerMixin.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.SchedulerMixin.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.SchedulerMixin.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only(bool,"},{anchor:"diffusers.SchedulerMixin.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.SchedulerMixin.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_utils.py#L84"}}),E=new or({props:{$$slots:{default:[ar]},$$scope:{ctx:ae}}}),G=new Pe({props:{name:"save_pretrained",anchor:"diffusers.SchedulerMixin.save_pretrained",parameters:[{name:"save_directory",val:": Union"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.SchedulerMixin.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory where the configuration JSON file will be saved (will be created if it does not exist).`,name:"save_directory"},{anchor:"diffusers.SchedulerMixin.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to push your model to the Hugging Face Hub after saving it. You can specify the | |
| repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your | |
| namespace).`,name:"push_to_hub"},{anchor:"diffusers.SchedulerMixin.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) — | |
| Additional keyword arguments passed along to the <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_utils.py#L151"}}),Q=new Le({}),Y=new Pe({props:{name:"class diffusers.schedulers.scheduling_utils.SchedulerOutput",anchor:"diffusers.schedulers.scheduling_utils.SchedulerOutput",parameters:[{name:"prev_sample",val:": FloatTensor"}],parametersDescription:[{anchor:"diffusers.schedulers.scheduling_utils.SchedulerOutput.prev_sample",description:`<strong>prev_sample</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code> for images) — | |
| Computed sample <code>(x_{t-1})</code> of previous timestep. <code>prev_sample</code> should be used as next model input in the | |
| denoising loop.`,name:"prev_sample"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_utils.py#L50"}}),ee=new Le({}),se=new Le({}),oe=new Pe({props:{name:"class diffusers.utils.PushToHubMixin",anchor:"diffusers.utils.PushToHubMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/hub_utils.py#L361"}}),ie=new Pe({props:{name:"push_to_hub",anchor:"diffusers.utils.PushToHubMixin.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"commit_message",val:": Optional = None"},{name:"private",val:": Optional = None"},{name:"token",val:": Optional = None"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"variant",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) — | |
| The name of the repository you want to push your model, scheduler, or pipeline files to. It should | |
| contain your organization name when pushing to an organization. <code>repo_id</code> can also be a path to a local | |
| directory.`,name:"repo_id"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) — | |
| Message to commit while pushing. Default to <code>"Upload {object}"</code>.`,name:"commit_message"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) — | |
| Whether or not the repository created should be private.`,name:"private"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. The token generated when running | |
| <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether or not to convert the model weights to the <code>safetensors</code> format.`,name:"safe_serialization"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) — | |
| If specified, weights are saved in the format <code>pytorch_model.<variant>.bin</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/hub_utils.py#L390"}}),Z=new nr({props:{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.example",$$slots:{default:[dr]},$$scope:{ctx:ae}}}),{c(){u=s("meta"),$=n(),m=s("h1"),g=s("a"),P=s("span"),v(h.$$.fragment),j=n(),de=s("span"),de.textContent=Mt,Ae=n(),V=s("p"),V.innerHTML=xt,Ue=n(),z=s("p"),z.textContent=yt,Ee=n(),B=s("ul"),B.innerHTML=wt,Ne=n(),F=s("p"),F.innerHTML=St,Ie=n(),W=s("table"),W.innerHTML=$t,qe=n(),K=s("p"),K.innerHTML=Pt,Je=n(),k=s("h2"),U=s("a"),Te=s("span"),v(O.$$.fragment),tt=n(),le=s("span"),le.textContent=Tt,Ze=n(),f=s("div"),v(X.$$.fragment),rt=n(),ue=s("p"),ue.textContent=Dt,st=n(),ce=s("p"),ce.innerHTML=kt,ot=n(),he=s("p"),he.innerHTML=Ct,it=n(),fe=s("p"),fe.textContent=Ht,nt=n(),pe=s("ul"),pe.innerHTML=Lt,at=n(),T=s("div"),v(R.$$.fragment),dt=n(),me=s("p"),me.textContent=At,lt=n(),v(E.$$.fragment),ut=n(),N=s("div"),v(G.$$.fragment),ct=n(),ge=s("p"),ge.innerHTML=Ut,je=n(),C=s("h2"),I=s("a"),De=s("span"),v(Q.$$.fragment),ht=n(),_e=s("span"),_e.textContent=Et,Ve=n(),H=s("div"),v(Y.$$.fragment),ft=n(),ve=s("p"),ve.innerHTML=Nt,ze=n(),L=s("h2"),q=s("a"),ke=s("span"),v(ee.$$.fragment),pt=n(),be=s("span"),be.textContent=It,Be=n(),te=s("p"),te.innerHTML=qt,Fe=n(),re=s("p"),re.innerHTML=Jt,We=n(),A=s("h2"),J=s("a"),Ce=s("span"),v(se.$$.fragment),mt=n(),Me=s("span"),Me.textContent=Zt,Ke=n(),S=s("div"),v(oe.$$.fragment),gt=n(),xe=s("p"),xe.textContent=jt,_t=n(),D=s("div"),v(ie.$$.fragment),vt=n(),ye=s("p"),ye.textContent=Vt,bt=n(),v(Z.$$.fragment),this.h()},l(e){const i=sr("svelte-1phssyn",document.head);u=o(i,"META",{name:!0,content:!0}),i.forEach(t),$=a(e),m=o(e,"H1",{class:!0});var ne=p(m);g=o(ne,"A",{id:!0,class:!0,href:!0});var He=p(g);P=o(He,"SPAN",{});var zt=p(P);b(h.$$.fragment,zt),zt.forEach(t),He.forEach(t),j=a(ne),de=o(ne,"SPAN",{"data-svelte-h":!0}),c(de)!=="svelte-1mh2qlv"&&(de.textContent=Mt),ne.forEach(t),Ae=a(e),V=o(e,"P",{"data-svelte-h":!0}),c(V)!=="svelte-1lgybvx"&&(V.innerHTML=xt),Ue=a(e),z=o(e,"P",{"data-svelte-h":!0}),c(z)!=="svelte-9ndbal"&&(z.textContent=yt),Ee=a(e),B=o(e,"UL",{"data-svelte-h":!0}),c(B)!=="svelte-1n3qq9y"&&(B.innerHTML=wt),Ne=a(e),F=o(e,"P",{"data-svelte-h":!0}),c(F)!=="svelte-1ph3rhz"&&(F.innerHTML=St),Ie=a(e),W=o(e,"TABLE",{"data-svelte-h":!0}),c(W)!=="svelte-j0ll4v"&&(W.innerHTML=$t),qe=a(e),K=o(e,"P",{"data-svelte-h":!0}),c(K)!=="svelte-ta0lmu"&&(K.innerHTML=Pt),Je=a(e),k=o(e,"H2",{class:!0});var Xe=p(k);U=o(Xe,"A",{id:!0,class:!0,href:!0});var Bt=p(U);Te=o(Bt,"SPAN",{});var Ft=p(Te);b(O.$$.fragment,Ft),Ft.forEach(t),Bt.forEach(t),tt=a(Xe),le=o(Xe,"SPAN",{"data-svelte-h":!0}),c(le)!=="svelte-h5tmcr"&&(le.textContent=Tt),Xe.forEach(t),Ze=a(e),f=o(e,"DIV",{class:!0});var _=p(f);b(X.$$.fragment,_),rt=a(_),ue=o(_,"P",{"data-svelte-h":!0}),c(ue)!=="svelte-vehnxn"&&(ue.textContent=Dt),st=a(_),ce=o(_,"P",{"data-svelte-h":!0}),c(ce)!=="svelte-1r3aj0s"&&(ce.innerHTML=kt),ot=a(_),he=o(_,"P",{"data-svelte-h":!0}),c(he)!=="svelte-zbfzbj"&&(he.innerHTML=Ct),it=a(_),fe=o(_,"P",{"data-svelte-h":!0}),c(fe)!=="svelte-wz8va1"&&(fe.textContent=Ht),nt=a(_),pe=o(_,"UL",{"data-svelte-h":!0}),c(pe)!=="svelte-csf69p"&&(pe.innerHTML=Lt),at=a(_),T=o(_,"DIV",{class:!0});var we=p(T);b(R.$$.fragment,we),dt=a(we),me=o(we,"P",{"data-svelte-h":!0}),c(me)!=="svelte-ekqb0i"&&(me.textContent=At),lt=a(we),b(E.$$.fragment,we),we.forEach(t),ut=a(_),N=o(_,"DIV",{class:!0});var Re=p(N);b(G.$$.fragment,Re),ct=a(Re),ge=o(Re,"P",{"data-svelte-h":!0}),c(ge)!=="svelte-qowt52"&&(ge.innerHTML=Ut),Re.forEach(t),_.forEach(t),je=a(e),C=o(e,"H2",{class:!0});var Ge=p(C);I=o(Ge,"A",{id:!0,class:!0,href:!0});var Wt=p(I);De=o(Wt,"SPAN",{});var Kt=p(De);b(Q.$$.fragment,Kt),Kt.forEach(t),Wt.forEach(t),ht=a(Ge),_e=o(Ge,"SPAN",{"data-svelte-h":!0}),c(_e)!=="svelte-1qoi9nz"&&(_e.textContent=Et),Ge.forEach(t),Ve=a(e),H=o(e,"DIV",{class:!0});var Qe=p(H);b(Y.$$.fragment,Qe),ft=a(Qe),ve=o(Qe,"P",{"data-svelte-h":!0}),c(ve)!=="svelte-6ojmkw"&&(ve.innerHTML=Nt),Qe.forEach(t),ze=a(e),L=o(e,"H2",{class:!0});var Ye=p(L);q=o(Ye,"A",{id:!0,class:!0,href:!0});var Ot=p(q);ke=o(Ot,"SPAN",{});var Xt=p(ke);b(ee.$$.fragment,Xt),Xt.forEach(t),Ot.forEach(t),pt=a(Ye),be=o(Ye,"SPAN",{"data-svelte-h":!0}),c(be)!=="svelte-1tbjoim"&&(be.textContent=It),Ye.forEach(t),Be=a(e),te=o(e,"P",{"data-svelte-h":!0}),c(te)!=="svelte-1hq6rpu"&&(te.innerHTML=qt),Fe=a(e),re=o(e,"P",{"data-svelte-h":!0}),c(re)!=="svelte-1lt2uhz"&&(re.innerHTML=Jt),We=a(e),A=o(e,"H2",{class:!0});var et=p(A);J=o(et,"A",{id:!0,class:!0,href:!0});var Rt=p(J);Ce=o(Rt,"SPAN",{});var Gt=p(Ce);b(se.$$.fragment,Gt),Gt.forEach(t),Rt.forEach(t),mt=a(et),Me=o(et,"SPAN",{"data-svelte-h":!0}),c(Me)!=="svelte-2a7r8a"&&(Me.textContent=Zt),et.forEach(t),Ke=a(e),S=o(e,"DIV",{class:!0});var Se=p(S);b(oe.$$.fragment,Se),gt=a(Se),xe=o(Se,"P",{"data-svelte-h":!0}),c(xe)!=="svelte-7y8zei"&&(xe.textContent=jt),_t=a(Se),D=o(Se,"DIV",{class:!0});var $e=p(D);b(ie.$$.fragment,$e),vt=a($e),ye=o($e,"P",{"data-svelte-h":!0}),c(ye)!=="svelte-5nfhmh"&&(ye.textContent=Vt),bt=a($e),b(Z.$$.fragment,$e),$e.forEach(t),Se.forEach(t),this.h()},h(){l(u,"name","hf:doc:metadata"),l(u,"content",JSON.stringify(ur)),l(g,"id","schedulers"),l(g,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),l(g,"href","#schedulers"),l(m,"class","relative group"),l(U,"id","diffusers.SchedulerMixin"),l(U,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),l(U,"href","#diffusers.SchedulerMixin"),l(k,"class","relative group"),l(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(f,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(I,"id","diffusers.schedulers.scheduling_utils.SchedulerOutput"),l(I,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),l(I,"href","#diffusers.schedulers.scheduling_utils.SchedulerOutput"),l(C,"class","relative group"),l(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(q,"id","karrasdiffusionschedulers"),l(q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),l(q,"href","#karrasdiffusionschedulers"),l(L,"class","relative group"),l(J,"id","diffusers.utils.PushToHubMixin"),l(J,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),l(J,"href","#diffusers.utils.PushToHubMixin"),l(A,"class","relative group"),l(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),l(S,"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,i){r(document.head,u),d(e,$,i),d(e,m,i),r(m,g),r(g,P),M(h,P,null),r(m,j),r(m,de),d(e,Ae,i),d(e,V,i),d(e,Ue,i),d(e,z,i),d(e,Ee,i),d(e,B,i),d(e,Ne,i),d(e,F,i),d(e,Ie,i),d(e,W,i),d(e,qe,i),d(e,K,i),d(e,Je,i),d(e,k,i),r(k,U),r(U,Te),M(O,Te,null),r(k,tt),r(k,le),d(e,Ze,i),d(e,f,i),M(X,f,null),r(f,rt),r(f,ue),r(f,st),r(f,ce),r(f,ot),r(f,he),r(f,it),r(f,fe),r(f,nt),r(f,pe),r(f,at),r(f,T),M(R,T,null),r(T,dt),r(T,me),r(T,lt),M(E,T,null),r(f,ut),r(f,N),M(G,N,null),r(N,ct),r(N,ge),d(e,je,i),d(e,C,i),r(C,I),r(I,De),M(Q,De,null),r(C,ht),r(C,_e),d(e,Ve,i),d(e,H,i),M(Y,H,null),r(H,ft),r(H,ve),d(e,ze,i),d(e,L,i),r(L,q),r(q,ke),M(ee,ke,null),r(L,pt),r(L,be),d(e,Be,i),d(e,te,i),d(e,Fe,i),d(e,re,i),d(e,We,i),d(e,A,i),r(A,J),r(J,Ce),M(se,Ce,null),r(A,mt),r(A,Me),d(e,Ke,i),d(e,S,i),M(oe,S,null),r(S,gt),r(S,xe),r(S,_t),r(S,D),M(ie,D,null),r(D,vt),r(D,ye),r(D,bt),M(Z,D,null),Oe=!0},p(e,[i]){const ne={};i&2&&(ne.$$scope={dirty:i,ctx:e}),E.$set(ne);const He={};i&2&&(He.$$scope={dirty:i,ctx:e}),Z.$set(He)},i(e){Oe||(x(h.$$.fragment,e),x(O.$$.fragment,e),x(X.$$.fragment,e),x(R.$$.fragment,e),x(E.$$.fragment,e),x(G.$$.fragment,e),x(Q.$$.fragment,e),x(Y.$$.fragment,e),x(ee.$$.fragment,e),x(se.$$.fragment,e),x(oe.$$.fragment,e),x(ie.$$.fragment,e),x(Z.$$.fragment,e),Oe=!0)},o(e){y(h.$$.fragment,e),y(O.$$.fragment,e),y(X.$$.fragment,e),y(R.$$.fragment,e),y(E.$$.fragment,e),y(G.$$.fragment,e),y(Q.$$.fragment,e),y(Y.$$.fragment,e),y(ee.$$.fragment,e),y(se.$$.fragment,e),y(oe.$$.fragment,e),y(ie.$$.fragment,e),y(Z.$$.fragment,e),Oe=!1},d(e){e&&(t($),t(m),t(Ae),t(V),t(Ue),t(z),t(Ee),t(B),t(Ne),t(F),t(Ie),t(W),t(qe),t(K),t(Je),t(k),t(Ze),t(f),t(je),t(C),t(Ve),t(H),t(ze),t(L),t(Be),t(te),t(Fe),t(re),t(We),t(A),t(Ke),t(S)),t(u),w(h),w(O),w(X),w(R),w(E),w(G),w(Q),w(Y),w(ee),w(se),w(oe),w(ie),w(Z)}}}const ur={local:"schedulers",sections:[{local:"diffusers.SchedulerMixin",title:"SchedulerMixin"},{local:"diffusers.schedulers.scheduling_utils.SchedulerOutput",title:"SchedulerOutput"},{local:"karrasdiffusionschedulers",title:"KarrasDiffusionSchedulers"},{local:"diffusers.utils.PushToHubMixin",title:"PushToHubMixin"}],title:"Schedulers"};function cr(ae){return er(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class br extends tr{constructor(u){super(),rr(this,u,cr,lr,Yt,{})}}export{br as component}; | |
Xet Storage Details
- Size:
- 30.2 kB
- Xet hash:
- 69114f78443d63c92f97aca196dfaca583ba7fe5458d1605888a43fc082b9daf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.