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,V,de,H,ue,ae,$,b,L,A,pe,F,ve,se,x,me,D,_e,ge,ie,y,ne,E,P,B,k,Se,G,$e,oe,u,M,Ee,J,we,be,c,C,xe,ye,j,Pe,Ve,z,Ae,De,K,ke,Me,q,Ne,Oe,T,Ce,qe,I,Te,Ie,Re,R,Ue,N,He,Le,Q,Fe,le;return V=new Ge({}),A=new Ge({}),y=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.12.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(V.$$.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(A.$$.fragment),pe=m(),F=a("span"),ve=n("Overview"),se=m(),x=a("p"),me=n("Original paper can be found "),D=a("a"),_e=n("here"),ge=n("."),ie=m(),W(y.$$.fragment),ne=m(),E=a("h2"),P=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"),ye=n(" takes care of storing all config attributes that are passed in the scheduler\u2019s "),j=a("code"),Pe=n("__init__"),Ve=n(`
function, such as `),z=a("code"),Ae=n("num_train_timesteps"),De=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(V.$$.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(A.$$.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 "),D=s(fe,"A",{href:!0,rel:!0});var Xe=i(D);_e=o(Xe,"here"),Xe.forEach(t),ge=o(fe,"."),fe.forEach(t),ie=_(r),X(y.$$.fragment,r),ne=_(r),E=s(r,"H2",{class:!0});var he=i(E);P=s(he,"A",{id:!0,class:!0,href:!0});var Ye=i(P);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),ye=o(p," takes care of storing all config attributes that are passed in the scheduler\u2019s "),j=s(p,"CODE",{});var ar=i(j);Pe=o(ar,"__init__"),ar.forEach(t),Ve=o(p,`
function, such as `),z=s(p,"CODE",{});var sr=i(z);Ae=o(sr,"num_train_timesteps"),sr.forEach(t),De=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(D,"href","https://arxiv.org/abs/2011.13456"),l(D,"rel","nofollow"),l(P,"id","diffusers.schedulers.ScoreSdeVpScheduler"),l(P,"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(P,"href","#diffusers.schedulers.ScoreSdeVpScheduler"),l(E,"class","relative group"),l(C,"href","/docs/diffusers/v0.12.0/en/api/configuration#diffusers.ConfigMixin"),l(q,"href","/docs/diffusers/v0.12.0/en/api/schedulers/overview#diffusers.SchedulerMixin"),l(T,"href","/docs/diffusers/v0.12.0/en/api/schedulers/overview#diffusers.SchedulerMixin.save_pretrained"),l(I,"href","/docs/diffusers/v0.12.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(V,U,null),e(d,de),e(d,H),e(H,ue),g(r,ae,f),g(r,$,f),e($,b),e(b,L),Y(A,L,null),e($,pe),e($,F),e(F,ve),g(r,se,f),g(r,x,f),e(x,me),e(x,D),e(D,_e),e(x,ge),g(r,ie,f),Y(y,r,f),g(r,ne,f),g(r,E,f),e(E,P),e(P,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,ye),e(c,j),e(j,Pe),e(c,Ve),e(c,z),e(z,Ae),e(c,De),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}),y.$set(O)},i(r){le||(Z(V.$$.fragment,r),Z(A.$$.fragment,r),Z(y.$$.fragment,r),Z(k.$$.fragment,r),Z(M.$$.fragment,r),le=!0)},o(r){ee(V.$$.fragment,r),ee(A.$$.fragment,r),ee(y.$$.fragment,r),ee(k.$$.fragment,r),ee(M.$$.fragment,r),le=!1},d(r){t(h),r&&t(w),r&&t(d),re(V),r&&t(ae),r&&t($),re(A),r&&t(se),r&&t(x),r&&t(ie),re(y,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 Pr extends hr{constructor(h){super();dr(this,h,Er,Sr,ur,{})}}export{Pr as default,$r as metadata};
