import{s as L,n as M,o as z}from"../chunks/scheduler.8c3d61f6.js";import{S as R,i as q,g as f,s as r,r as k,A as j,h as g,f as a,c as d,j as O,u as N,x as G,k as E,y as I,a as n,v as w,d as U,t as x,w as D}from"../chunks/index.da70eac4.js";import{D as V}from"../chunks/Docstring.8332ccfe.js";import{H,E as F}from"../chunks/getInferenceSnippets.4986d68f.js";function J(P){let l,b,_,h,s,v,i,B='A UNet model from the <a href="../pipelines/stable_cascade.md">Stable Cascade pipeline</a>.',$,p,y,o,m,T,c,S,u,C;return s=new H({props:{title:"StableCascadeUNet",local:"stablecascadeunet",headingTag:"h1"}}),p=new H({props:{title:"StableCascadeUNet",local:"diffusers.models.StableCascadeUNet",headingTag:"h2"}}),m=new V({props:{name:"class diffusers.models.StableCascadeUNet",anchor:"diffusers.models.StableCascadeUNet",parameters:[{name:"in_channels",val:": int = 16"},{name:"out_channels",val:": int = 16"},{name:"timestep_ratio_embedding_dim",val:": int = 64"},{name:"patch_size",val:": int = 1"},{name:"conditioning_dim",val:": int = 2048"},{name:"block_out_channels",val:": typing.Tuple[int] = (2048, 2048)"},{name:"num_attention_heads",val:": typing.Tuple[int] = (32, 32)"},{name:"down_num_layers_per_block",val:": typing.Tuple[int] = (8, 24)"},{name:"up_num_layers_per_block",val:": typing.Tuple[int] = (24, 8)"},{name:"down_blocks_repeat_mappers",val:": typing.Optional[typing.Tuple[int]] = (1, 1)"},{name:"up_blocks_repeat_mappers",val:": typing.Optional[typing.Tuple[int]] = (1, 1)"},{name:"block_types_per_layer",val:": typing.Tuple[typing.Tuple[str]] = (('SDCascadeResBlock', 'SDCascadeTimestepBlock', 'SDCascadeAttnBlock'), ('SDCascadeResBlock', 'SDCascadeTimestepBlock', 'SDCascadeAttnBlock'))"},{name:"clip_text_in_channels",val:": typing.Optional[int] = None"},{name:"clip_text_pooled_in_channels",val:" = 1280"},{name:"clip_image_in_channels",val:": typing.Optional[int] = None"},{name:"clip_seq",val:" = 4"},{name:"effnet_in_channels",val:": typing.Optional[int] = None"},{name:"pixel_mapper_in_channels",val:": typing.Optional[int] = None"},{name:"kernel_size",val:" = 3"},{name:"dropout",val:": typing.Union[float, typing.Tuple[float]] = (0.1, 0.1)"},{name:"self_attn",val:": typing.Union[bool, typing.Tuple[bool]] = True"},{name:"timestep_conditioning_type",val:": typing.Tuple[str] = ('sca', 'crp')"},{name:"switch_level",val:": typing.Optional[typing.Tuple[bool]] = None"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unets/unet_stable_cascade.py#L137"}}),c=new F({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/stable_cascade_unet.md"}}),{c(){l=f("meta"),b=r(),_=f("p"),h=r(),k(s.$$.fragment),v=r(),i=f("p"),i.innerHTML=B,$=r(),k(p.$$.fragment),y=r(),o=f("div"),k(m.$$.fragment),T=r(),k(c.$$.fragment),S=r(),u=f("p"),this.h()},l(e){const t=j("svelte-u9bgzb",document.head);l=g(t,"META",{name:!0,content:!0}),t.forEach(a),b=d(e),_=g(e,"P",{}),O(_).forEach(a),h=d(e),N(s.$$.fragment,e),v=d(e),i=g(e,"P",{"data-svelte-h":!0}),G(i)!=="svelte-17ahoy1"&&(i.innerHTML=B),$=d(e),N(p.$$.fragment,e),y=d(e),o=g(e,"DIV",{class:!0});var A=O(o);N(m.$$.fragment,A),A.forEach(a),T=d(e),N(c.$$.fragment,e),S=d(e),u=g(e,"P",{}),O(u).forEach(a),this.h()},h(){E(l,"name","hf:doc:metadata"),E(l,"content",K),E(o,"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){I(document.head,l),n(e,b,t),n(e,_,t),n(e,h,t),w(s,e,t),n(e,v,t),n(e,i,t),n(e,$,t),w(p,e,t),n(e,y,t),n(e,o,t),w(m,o,null),n(e,T,t),w(c,e,t),n(e,S,t),n(e,u,t),C=!0},p:M,i(e){C||(U(s.$$.fragment,e),U(p.$$.fragment,e),U(m.$$.fragment,e),U(c.$$.fragment,e),C=!0)},o(e){x(s.$$.fragment,e),x(p.$$.fragment,e),x(m.$$.fragment,e),x(c.$$.fragment,e),C=!1},d(e){e&&(a(b),a(_),a(h),a(v),a(i),a($),a(y),a(o),a(T),a(S),a(u)),a(l),D(s,e),D(p,e),D(m),D(c,e)}}}const K='{"title":"StableCascadeUNet","local":"stablecascadeunet","sections":[{"title":"StableCascadeUNet","local":"diffusers.models.StableCascadeUNet","sections":[],"depth":2}],"depth":1}';function Q(P){return z(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ee extends R{constructor(l){super(),q(this,l,Q,J,L,{})}}export{ee as component};
