import{S as hr,i as dr,s as ur,e as a,k as m,w as W,t as n,M as pr,c as s,d as t,m as _,a as i,x as X,h as o,b as l,G as e,g,y as Y,q as Z,o as ee,B as re,v as vr}from"../../../chunks/vendor-hf-doc-builder.js";import{T as mr}from"../../../chunks/Tip-hf-doc-builder.js";import{D as _r}from"../../../chunks/Docstring-hf-doc-builder.js";import{I as Ge}from"../../../chunks/IconCopyLink-hf-doc-builder.js";function gr(te){let h,w;return{c(){h=a("p"),w=n("Score SDE-VP is under construction.")},l(d){h=s(d,"P",{});var v=i(h);w=o(v,"Score SDE-VP is under construction."),v.forEach(t)},m(d,v){g(d,h,v),e(h,w)},d(d){d&&t(h)}}}function Sr(te){let h,w,d,v,U,D,de,H,ue,ae,$,b,L,V,pe,F,ve,se,x,me,A,_e,ge,ie,P,ne,E,y,B,k,Se,G,$e,oe,u,M,Ee,J,we,be,c,C,xe,Pe,j,ye,De,z,Ve,Ae,K,ke,Me,q,Ne,Oe,T,Ce,qe,I,Te,Ie,Re,R,Ue,N,He,Le,Q,Fe,le;return D=new Ge({}),V=new Ge({}),P=new mr({props:{warning:!0,$$slots:{default:[gr]},$$scope:{ctx:te}}}),k=new Ge({}),M=new _r({props:{name:"class diffusers.schedulers.ScoreSdeVpScheduler",anchor:"diffusers.schedulers.ScoreSdeVpScheduler",parameters:[{name:"num_train_timesteps",val:" = 2000"},{name:"beta_min",val:" = 0.1"},{name:"beta_max",val:" = 20"},{name:"sampling_eps",val:" = 0.001"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/schedulers/scheduling_sde_vp.py#L27"}}),{c(){h=a("meta"),w=m(),d=a("h1"),v=a("a"),U=a("span"),W(D.$$.fragment),de=m(),H=a("span"),ue=n("Variance Preserving Stochastic Differential Equation (VP-SDE) scheduler"),ae=m(),$=a("h2"),b=a("a"),L=a("span"),W(V.$$.fragment),pe=m(),F=a("span"),ve=n("Overview"),se=m(),x=a("p"),me=n("Original paper can be found "),A=a("a"),_e=n("here"),ge=n("."),ie=m(),W(P.$$.fragment),ne=m(),E=a("h2"),y=a("a"),B=a("span"),W(k.$$.fragment),Se=m(),G=a("span"),$e=n("ScoreSdeVpScheduler"),oe=m(),u=a("div"),W(M.$$.fragment),Ee=m(),J=a("p"),we=n("The variance preserving stochastic differential equation (SDE) scheduler."),be=m(),c=a("p"),C=a("a"),xe=n("~ConfigMixin"),Pe=n(" takes care of storing all config attributes that are passed in the scheduler\u2019s "),j=a("code"),ye=n("__init__"),De=n(`
function, such as `),z=a("code"),Ve=n("num_train_timesteps"),Ae=n(". They can be accessed via "),K=a("code"),ke=n("scheduler.config.num_train_timesteps"),Me=n(`.
`),q=a("a"),Ne=n("SchedulerMixin"),Oe=n(" provides general loading and saving functionality via the "),T=a("a"),Ce=n("SchedulerMixin.save_pretrained()"),qe=n(` and
`),I=a("a"),Te=n("from_pretrained()"),Ie=n(" functions."),Re=m(),R=a("p"),Ue=n("For more information, see the original paper: "),N=a("a"),He=n("https://arxiv.org/abs/2011.13456"),Le=m(),Q=a("p"),Fe=n("UNDER CONSTRUCTION"),this.h()},l(r){const f=pr('[data-svelte="svelte-1phssyn"]',document.head);h=s(f,"META",{name:!0,content:!0}),f.forEach(t),w=_(r),d=s(r,"H1",{class:!0});var O=i(d);v=s(O,"A",{id:!0,class:!0,href:!0});var Je=i(v);U=s(Je,"SPAN",{});var je=i(U);X(D.$$.fragment,je),je.forEach(t),Je.forEach(t),de=_(O),H=s(O,"SPAN",{});var ze=i(H);ue=o(ze,"Variance Preserving Stochastic Differential Equation (VP-SDE) scheduler"),ze.forEach(t),O.forEach(t),ae=_(r),$=s(r,"H2",{class:!0});var ce=i($);b=s(ce,"A",{id:!0,class:!0,href:!0});var Ke=i(b);L=s(Ke,"SPAN",{});var Qe=i(L);X(V.$$.fragment,Qe),Qe.forEach(t),Ke.forEach(t),pe=_(ce),F=s(ce,"SPAN",{});var We=i(F);ve=o(We,"Overview"),We.forEach(t),ce.forEach(t),se=_(r),x=s(r,"P",{});var fe=i(x);me=o(fe,"Original paper can be found "),A=s(fe,"A",{href:!0,rel:!0});var Xe=i(A);_e=o(Xe,"here"),Xe.forEach(t),ge=o(fe,"."),fe.forEach(t),ie=_(r),X(P.$$.fragment,r),ne=_(r),E=s(r,"H2",{class:!0});var he=i(E);y=s(he,"A",{id:!0,class:!0,href:!0});var Ye=i(y);B=s(Ye,"SPAN",{});var Ze=i(B);X(k.$$.fragment,Ze),Ze.forEach(t),Ye.forEach(t),Se=_(he),G=s(he,"SPAN",{});var er=i(G);$e=o(er,"ScoreSdeVpScheduler"),er.forEach(t),he.forEach(t),oe=_(r),u=s(r,"DIV",{class:!0});var S=i(u);X(M.$$.fragment,S),Ee=_(S),J=s(S,"P",{});var rr=i(J);we=o(rr,"The variance preserving stochastic differential equation (SDE) scheduler."),rr.forEach(t),be=_(S),c=s(S,"P",{});var p=i(c);C=s(p,"A",{href:!0});var tr=i(C);xe=o(tr,"~ConfigMixin"),tr.forEach(t),Pe=o(p," takes care of storing all config attributes that are passed in the scheduler\u2019s "),j=s(p,"CODE",{});var ar=i(j);ye=o(ar,"__init__"),ar.forEach(t),De=o(p,`
function, such as `),z=s(p,"CODE",{});var sr=i(z);Ve=o(sr,"num_train_timesteps"),sr.forEach(t),Ae=o(p,". They can be accessed via "),K=s(p,"CODE",{});var ir=i(K);ke=o(ir,"scheduler.config.num_train_timesteps"),ir.forEach(t),Me=o(p,`.
`),q=s(p,"A",{href:!0});var nr=i(q);Ne=o(nr,"SchedulerMixin"),nr.forEach(t),Oe=o(p," provides general loading and saving functionality via the "),T=s(p,"A",{href:!0});var or=i(T);Ce=o(or,"SchedulerMixin.save_pretrained()"),or.forEach(t),qe=o(p,` and
`),I=s(p,"A",{href:!0});var lr=i(I);Te=o(lr,"from_pretrained()"),lr.forEach(t),Ie=o(p," functions."),p.forEach(t),Re=_(S),R=s(S,"P",{});var Be=i(R);Ue=o(Be,"For more information, see the original paper: "),N=s(Be,"A",{href:!0,rel:!0});var cr=i(N);He=o(cr,"https://arxiv.org/abs/2011.13456"),cr.forEach(t),Be.forEach(t),Le=_(S),Q=s(S,"P",{});var fr=i(Q);Fe=o(fr,"UNDER CONSTRUCTION"),fr.forEach(t),S.forEach(t),this.h()},h(){l(h,"name","hf:doc:metadata"),l(h,"content",JSON.stringify($r)),l(v,"id","variance-preserving-stochastic-differential-equation-vpsde-scheduler"),l(v,"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(v,"href","#variance-preserving-stochastic-differential-equation-vpsde-scheduler"),l(d,"class","relative group"),l(b,"id","overview"),l(b,"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(b,"href","#overview"),l($,"class","relative group"),l(A,"href","https://arxiv.org/abs/2011.13456"),l(A,"rel","nofollow"),l(y,"id","diffusers.schedulers.ScoreSdeVpScheduler"),l(y,"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(y,"href","#diffusers.schedulers.ScoreSdeVpScheduler"),l(E,"class","relative group"),l(C,"href","/docs/diffusers/v0.19.0/en/api/configuration#diffusers.ConfigMixin"),l(q,"href","/docs/diffusers/v0.19.0/en/api/schedulers/overview#diffusers.SchedulerMixin"),l(T,"href","/docs/diffusers/v0.19.0/en/api/schedulers/overview#diffusers.SchedulerMixin.save_pretrained"),l(I,"href","/docs/diffusers/v0.19.0/en/api/schedulers/overview#diffusers.SchedulerMixin.from_pretrained"),l(N,"href","https://arxiv.org/abs/2011.13456"),l(N,"rel","nofollow"),l(u,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(r,f){e(document.head,h),g(r,w,f),g(r,d,f),e(d,v),e(v,U),Y(D,U,null),e(d,de),e(d,H),e(H,ue),g(r,ae,f),g(r,$,f),e($,b),e(b,L),Y(V,L,null),e($,pe),e($,F),e(F,ve),g(r,se,f),g(r,x,f),e(x,me),e(x,A),e(A,_e),e(x,ge),g(r,ie,f),Y(P,r,f),g(r,ne,f),g(r,E,f),e(E,y),e(y,B),Y(k,B,null),e(E,Se),e(E,G),e(G,$e),g(r,oe,f),g(r,u,f),Y(M,u,null),e(u,Ee),e(u,J),e(J,we),e(u,be),e(u,c),e(c,C),e(C,xe),e(c,Pe),e(c,j),e(j,ye),e(c,De),e(c,z),e(z,Ve),e(c,Ae),e(c,K),e(K,ke),e(c,Me),e(c,q),e(q,Ne),e(c,Oe),e(c,T),e(T,Ce),e(c,qe),e(c,I),e(I,Te),e(c,Ie),e(u,Re),e(u,R),e(R,Ue),e(R,N),e(N,He),e(u,Le),e(u,Q),e(Q,Fe),le=!0},p(r,[f]){const O={};f&2&&(O.$$scope={dirty:f,ctx:r}),P.$set(O)},i(r){le||(Z(D.$$.fragment,r),Z(V.$$.fragment,r),Z(P.$$.fragment,r),Z(k.$$.fragment,r),Z(M.$$.fragment,r),le=!0)},o(r){ee(D.$$.fragment,r),ee(V.$$.fragment,r),ee(P.$$.fragment,r),ee(k.$$.fragment,r),ee(M.$$.fragment,r),le=!1},d(r){t(h),r&&t(w),r&&t(d),re(D),r&&t(ae),r&&t($),re(V),r&&t(se),r&&t(x),r&&t(ie),re(P,r),r&&t(ne),r&&t(E),re(k),r&&t(oe),r&&t(u),re(M)}}}const $r={local:"variance-preserving-stochastic-differential-equation-vpsde-scheduler",sections:[{local:"overview",title:"Overview"},{local:"diffusers.schedulers.ScoreSdeVpScheduler",title:"ScoreSdeVpScheduler"}],title:"Variance Preserving Stochastic Differential Equation (VP-SDE) scheduler"};function Er(te){return vr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class yr extends hr{constructor(h){super();dr(this,h,Er,Sr,ur,{})}}export{yr as default,$r as metadata};
