yanze commited on
Commit
c46e477
·
verified ·
1 Parent(s): 8bed7e9

Update flux/util.py

Browse files
Files changed (1) hide show
  1. flux/util.py +32 -0
flux/util.py CHANGED
@@ -55,6 +55,38 @@ configs = {
55
  shift_factor=0.1159,
56
  ),
57
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  "flux-schnell": ModelSpec(
59
  repo_id="black-forest-labs/FLUX.1-schnell",
60
  repo_flow="flux1-schnell.safetensors",
 
55
  shift_factor=0.1159,
56
  ),
57
  ),
58
+ "flux-krea-dev": ModelSpec(
59
+ repo_id="black-forest-labs/FLUX.1-Krea-dev",
60
+ repo_flow="flux1-krea-dev.safetensors",
61
+ repo_ae="ae.safetensors",
62
+ ckpt_path='models/flux1-krea-dev.safetensors',
63
+ params=FluxParams(
64
+ in_channels=64,
65
+ vec_in_dim=768,
66
+ context_in_dim=4096,
67
+ hidden_size=3072,
68
+ mlp_ratio=4.0,
69
+ num_heads=24,
70
+ depth=19,
71
+ depth_single_blocks=38,
72
+ axes_dim=[16, 56, 56],
73
+ theta=10_000,
74
+ qkv_bias=True,
75
+ guidance_embed=True,
76
+ ),
77
+ ae_path='models/krea-ae.safetensors',
78
+ ae_params=AutoEncoderParams(
79
+ resolution=256,
80
+ in_channels=3,
81
+ ch=128,
82
+ out_ch=3,
83
+ ch_mult=[1, 2, 4, 4],
84
+ num_res_blocks=2,
85
+ z_channels=16,
86
+ scale_factor=0.3611,
87
+ shift_factor=0.1159,
88
+ ),
89
+ ),
90
  "flux-schnell": ModelSpec(
91
  repo_id="black-forest-labs/FLUX.1-schnell",
92
  repo_flow="flux1-schnell.safetensors",