mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-07-21 21:01:24 +08:00
chroma
This commit is contained in:
parent
a9a6b87a7e
commit
2b97de706c
@ -11,7 +11,6 @@ from backend.nn.flux import (
|
||||
EmbedND,
|
||||
MLPEmbedder,
|
||||
ModulationOut,
|
||||
RMSNorm,
|
||||
SingleStreamBlock,
|
||||
timestep_embedding,
|
||||
)
|
||||
@ -33,7 +32,7 @@ class Approximator(nn.Module):
|
||||
super().__init__()
|
||||
self.in_proj = nn.Linear(in_dim, hidden_dim, bias=True)
|
||||
self.layers = nn.ModuleList([MLPEmbedder(hidden_dim, hidden_dim) for _ in range(n_layers)])
|
||||
self.norms = nn.ModuleList([RMSNorm(hidden_dim) for _ in range(n_layers)])
|
||||
self.norms = nn.ModuleList([nn.RMSNorm(hidden_dim) for _ in range(n_layers)])
|
||||
self.out_proj = nn.Linear(hidden_dim, out_dim)
|
||||
|
||||
@property
|
||||
|
||||
Loading…
Reference in New Issue
Block a user