Buckets:
| import{s as W,n as G,o as R}from"../chunks/scheduler.53228c21.js";import{S as J,i as K,e as h,s as a,c as g,h as Q,a as b,d as n,b as i,f as A,g as T,j as X,k as C,l as H,m as t,n as $,t as v,o as D,p as x}from"../chunks/index.100fac89.js";import{C as Y}from"../chunks/CopyLLMTxtMenu.af3e1493.js";import{D as U}from"../chunks/Docstring.147b33f1.js";import{H as V,E as Z}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.b5eefd91.js";function ee(O){let r,w,M,B,d,y,m,j,c,S='A modified flux Transformer model from <a href="https://huggingface.co/briaai/FIBO" rel="nofollow">Bria</a>',z,l,N,s,f,I,_,p,k,u,E,F,L;return d=new Y({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),m=new V({props:{title:"BriaFiboTransformer2DModel",local:"briafibotransformer2dmodel",headingTag:"h1"}}),l=new V({props:{title:"BriaFiboTransformer2DModel",local:"diffusers.BriaFiboTransformer2DModel",headingTag:"h2"}}),f=new U({props:{name:"class diffusers.BriaFiboTransformer2DModel",anchor:"diffusers.BriaFiboTransformer2DModel",parameters:[{name:"patch_size",val:": int = 1"},{name:"in_channels",val:": int = 64"},{name:"num_layers",val:": int = 19"},{name:"num_single_layers",val:": int = 38"},{name:"attention_head_dim",val:": int = 128"},{name:"num_attention_heads",val:": int = 24"},{name:"joint_attention_dim",val:": int = 4096"},{name:"pooled_projection_dim",val:": int = None"},{name:"guidance_embeds",val:": bool = False"},{name:"axes_dims_rope",val:": list = [16, 56, 56]"},{name:"rope_theta",val:" = 10000"},{name:"time_theta",val:" = 10000"},{name:"text_encoder_dim",val:": int = 2048"}],parametersDescription:[{anchor:"diffusers.BriaFiboTransformer2DModel.patch_size",description:"<strong>patch_size</strong> (<code>int</code>) — Patch size to turn the input data into small patches.",name:"patch_size"},{anchor:"diffusers.BriaFiboTransformer2DModel.in_channels",description:"<strong>in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 16) — The number of channels in the input.",name:"in_channels"},{anchor:"diffusers.BriaFiboTransformer2DModel.num_layers",description:"<strong>num_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 18) — The number of layers of MMDiT blocks to use.",name:"num_layers"},{anchor:"diffusers.BriaFiboTransformer2DModel.num_single_layers",description:"<strong>num_single_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 18) — The number of layers of single DiT blocks to use.",name:"num_single_layers"},{anchor:"diffusers.BriaFiboTransformer2DModel.attention_head_dim",description:"<strong>attention_head_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 64) — The number of channels in each head.",name:"attention_head_dim"},{anchor:"diffusers.BriaFiboTransformer2DModel.num_attention_heads",description:"<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 18) — The number of heads to use for multi-head attention.",name:"num_attention_heads"},{anchor:"diffusers.BriaFiboTransformer2DModel.joint_attention_dim",description:"<strong>joint_attention_dim</strong> (<code>int</code>, <em>optional</em>) — The number of <code>encoder_hidden_states</code> dimensions to use.",name:"joint_attention_dim"},{anchor:"diffusers.BriaFiboTransformer2DModel.pooled_projection_dim",description:"<strong>pooled_projection_dim</strong> (<code>int</code>) — Number of dimensions to use when projecting the <code>pooled_projections</code>.",name:"pooled_projection_dim"},{anchor:"diffusers.BriaFiboTransformer2DModel.guidance_embeds",description:"<strong>guidance_embeds</strong> (<code>bool</code>, defaults to False) — Whether to use guidance embeddings.",name:"guidance_embeds"},{anchor:"diffusers.BriaFiboTransformer2DModel.…",description:"<strong>…</strong> —",name:"…"}],source:"https://github.com/huggingface/diffusers/blob/vr_13751/src/diffusers/models/transformers/transformer_bria_fibo.py#L430"}}),p=new U({props:{name:"forward",anchor:"diffusers.BriaFiboTransformer2DModel.forward",parameters:[{name:"hidden_states",val:": Tensor"},{name:"encoder_hidden_states",val:": Tensor = None"},{name:"text_encoder_layers",val:": list = None"},{name:"pooled_projections",val:": Tensor = None"},{name:"timestep",val:": LongTensor = None"},{name:"img_ids",val:": Tensor = None"},{name:"txt_ids",val:": Tensor = None"},{name:"guidance",val:": Tensor = None"},{name:"joint_attention_kwargs",val:": dict[str, typing.Any] | None = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.BriaFiboTransformer2DModel.forward.hidden_states",description:`<strong>hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch size, channel, height, width)</code>) — | |
| Input <code>hidden_states</code>.`,name:"hidden_states"},{anchor:"diffusers.BriaFiboTransformer2DModel.forward.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch size, sequence_len, embed_dims)</code>) — | |
| Conditional embeddings (embeddings computed from the input conditions such as prompts) to use.`,name:"encoder_hidden_states"},{anchor:"diffusers.BriaFiboTransformer2DModel.forward.pooled_projections",description:`<strong>pooled_projections</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, projection_dim)</code>) — Embeddings projected | |
| from the embeddings of input conditions.`,name:"pooled_projections"},{anchor:"diffusers.BriaFiboTransformer2DModel.forward.timestep",description:`<strong>timestep</strong> ( <code>torch.LongTensor</code>) — | |
| Used to indicate denoising step.`,name:"timestep"},{anchor:"diffusers.BriaFiboTransformer2DModel.forward.joint_attention_kwargs",description:`<strong>joint_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under | |
| <code>self.processor</code> in | |
| <a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"joint_attention_kwargs"},{anchor:"diffusers.BriaFiboTransformer2DModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether or not to return a <code>~models.transformer_2d.Transformer2DModelOutput</code> instead of a plain | |
| tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/vr_13751/src/diffusers/models/transformers/transformer_bria_fibo.py#L511",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>If <code>return_dict</code> is True, an <code>~models.transformer_2d.Transformer2DModelOutput</code> is returned, otherwise a | |
| <code>tuple</code> where the first element is the sample tensor.</p> | |
| `}}),u=new Z({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/transformer_bria_fibo.md"}}),{c(){r=h("meta"),w=a(),M=h("p"),B=a(),g(d.$$.fragment),y=a(),g(m.$$.fragment),j=a(),c=h("p"),c.innerHTML=S,z=a(),g(l.$$.fragment),N=a(),s=h("div"),g(f.$$.fragment),I=a(),_=h("div"),g(p.$$.fragment),k=a(),g(u.$$.fragment),E=a(),F=h("p"),this.h()},l(e){const o=Q("svelte-u9bgzb",document.head);r=b(o,"META",{name:!0,content:!0}),o.forEach(n),w=i(e),M=b(e,"P",{}),A(M).forEach(n),B=i(e),T(d.$$.fragment,e),y=i(e),T(m.$$.fragment,e),j=i(e),c=b(e,"P",{"data-svelte-h":!0}),X(c)!=="svelte-1fklpkz"&&(c.innerHTML=S),z=i(e),T(l.$$.fragment,e),N=i(e),s=b(e,"DIV",{class:!0});var P=A(s);T(f.$$.fragment,P),I=i(P),_=b(P,"DIV",{class:!0});var q=A(_);T(p.$$.fragment,q),q.forEach(n),P.forEach(n),k=i(e),T(u.$$.fragment,e),E=i(e),F=b(e,"P",{}),A(F).forEach(n),this.h()},h(){C(r,"name","hf:doc:metadata"),C(r,"content",oe),C(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(s,"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,o){H(document.head,r),t(e,w,o),t(e,M,o),t(e,B,o),$(d,e,o),t(e,y,o),$(m,e,o),t(e,j,o),t(e,c,o),t(e,z,o),$(l,e,o),t(e,N,o),t(e,s,o),$(f,s,null),H(s,I),H(s,_),$(p,_,null),t(e,k,o),$(u,e,o),t(e,E,o),t(e,F,o),L=!0},p:G,i(e){L||(v(d.$$.fragment,e),v(m.$$.fragment,e),v(l.$$.fragment,e),v(f.$$.fragment,e),v(p.$$.fragment,e),v(u.$$.fragment,e),L=!0)},o(e){D(d.$$.fragment,e),D(m.$$.fragment,e),D(l.$$.fragment,e),D(f.$$.fragment,e),D(p.$$.fragment,e),D(u.$$.fragment,e),L=!1},d(e){e&&(n(w),n(M),n(B),n(y),n(j),n(c),n(z),n(N),n(s),n(k),n(E),n(F)),n(r),x(d,e),x(m,e),x(l,e),x(f),x(p),x(u,e)}}}const oe='{"title":"BriaFiboTransformer2DModel","local":"briafibotransformer2dmodel","sections":[{"title":"BriaFiboTransformer2DModel","local":"diffusers.BriaFiboTransformer2DModel","sections":[],"depth":2}],"depth":1}';function ne(O){return R(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class de extends J{constructor(r){super(),K(this,r,ne,ee,W,{})}}export{de as component}; | |
Xet Storage Details
- Size:
- 9.17 kB
- Xet hash:
- a8d1387977e6ff092bb8c3fdaa40911aee59210ded6a8877603ef6059e9d516b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.