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