Update config.py
Browse files
config.py
CHANGED
|
@@ -11,16 +11,16 @@ from diffuse.models import CondUNet2D
|
|
| 11 |
|
| 12 |
# Model definition
|
| 13 |
model = CondUNet2D(
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
| 11 |
|
| 12 |
# Model definition
|
| 13 |
model = CondUNet2D(
|
| 14 |
+
in_channels=IN_CHANNELS,
|
| 15 |
+
ch=32, # base_channels
|
| 16 |
+
ch_mult=(1, 2, 2), # channel_multipliers
|
| 17 |
+
num_res_blocks=1,
|
| 18 |
+
attention_resolutions=(2,),
|
| 19 |
+
num_heads=4,
|
| 20 |
+
dropout=True,
|
| 21 |
+
dropout_rate=0.1,
|
| 22 |
+
activation=nnx.swish,
|
| 23 |
+
param_dtype=jnp.float32,
|
| 24 |
+
rngs=nnx.Rngs(0),
|
| 25 |
+
)
|
| 26 |
+
|