import{s as H,n as R,o as q}from"../chunks/scheduler.53228c21.js";import{S as j,i as G,e as g,s as i,c as $,h as I,a as b,d as a,b as s,f as P,g as h,j as V,k as B,l as F,m as n,n as y,t as v,o as T,p as C}from"../chunks/index.100fac89.js";import{C as J}from"../chunks/CopyLLMTxtMenu.fb2ec027.js";import{D as K}from"../chunks/Docstring.86a664ae.js";import{H as A,E as Q}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.09d4dba9.js";function W(L){let l,S,u,k,p,N,m,x,o,M='A UNet model from the <a href="../pipelines/stable_cascade.md">Stable Cascade pipeline</a>.',w,r,U,c,d,D,_,O,f,E;return p=new J({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),m=new A({props:{title:"StableCascadeUNet",local:"stablecascadeunet",headingTag:"h1"}}),r=new A({props:{title:"StableCascadeUNet",local:"diffusers.models.StableCascadeUNet",headingTag:"h2"}}),d=new K({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"}}),_=new Q({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/stable_cascade_unet.md"}}),{c(){l=g("meta"),S=i(),u=g("p"),k=i(),$(p.$$.fragment),N=i(),$(m.$$.fragment),x=i(),o=g("p"),o.innerHTML=M,w=i(),$(r.$$.fragment),U=i(),c=g("div"),$(d.$$.fragment),D=i(),$(_.$$.fragment),O=i(),f=g("p"),this.h()},l(e){const t=I("svelte-u9bgzb",document.head);l=b(t,"META",{name:!0,content:!0}),t.forEach(a),S=s(e),u=b(e,"P",{}),P(u).forEach(a),k=s(e),h(p.$$.fragment,e),N=s(e),h(m.$$.fragment,e),x=s(e),o=b(e,"P",{"data-svelte-h":!0}),V(o)!=="svelte-17ahoy1"&&(o.innerHTML=M),w=s(e),h(r.$$.fragment,e),U=s(e),c=b(e,"DIV",{class:!0});var z=P(c);h(d.$$.fragment,z),z.forEach(a),D=s(e),h(_.$$.fragment,e),O=s(e),f=b(e,"P",{}),P(f).forEach(a),this.h()},h(){B(l,"name","hf:doc:metadata"),B(l,"content",X),B(c,"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){F(document.head,l),n(e,S,t),n(e,u,t),n(e,k,t),y(p,e,t),n(e,N,t),y(m,e,t),n(e,x,t),n(e,o,t),n(e,w,t),y(r,e,t),n(e,U,t),n(e,c,t),y(d,c,null),n(e,D,t),y(_,e,t),n(e,O,t),n(e,f,t),E=!0},p:R,i(e){E||(v(p.$$.fragment,e),v(m.$$.fragment,e),v(r.$$.fragment,e),v(d.$$.fragment,e),v(_.$$.fragment,e),E=!0)},o(e){T(p.$$.fragment,e),T(m.$$.fragment,e),T(r.$$.fragment,e),T(d.$$.fragment,e),T(_.$$.fragment,e),E=!1},d(e){e&&(a(S),a(u),a(k),a(N),a(x),a(o),a(w),a(U),a(c),a(D),a(O),a(f)),a(l),C(p,e),C(m,e),C(r,e),C(d),C(_,e)}}}const X='{"title":"StableCascadeUNet","local":"stablecascadeunet","sections":[{"title":"StableCascadeUNet","local":"diffusers.models.StableCascadeUNet","sections":[],"depth":2}],"depth":1}';function Y(L){return q(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class le extends j{constructor(l){super(),G(this,l,Y,W,H,{})}}export{le as component};
