BackTo2014 commited on
Commit
27a828a
·
verified ·
1 Parent(s): fbbeb65

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +18 -13
config.json CHANGED
@@ -1,15 +1,20 @@
1
  {
2
- "sample_size": 32,
3
- "in_channels": 3,
4
- "out_channels": 3,
5
- "layers_per_block": 2,
6
- "block_out_channels": [128, 256, 384, 512],
7
- "down_block_types": ["DownBlock2D", "AttnDownBlock2D", "DownBlock2D", "DownBlock2D"],
8
- "up_block_types": ["UpBlock2D", "UpBlock2D", "AttnUpBlock2D", "UpBlock2D"],
9
- "mid_block_scale_factor": 1,
10
- "act_fn": "silu",
11
- "attention_head_dim": 8,
12
- "norm_num_groups": 32,
13
- "norm_eps": 1e-5,
14
- "resnet_time_scale_shift": "default"
 
 
 
 
 
15
  }
 
1
  {
2
+ "sample_size": 32, // 图像大小
3
+ "in_channels": 3, // 输入通道数
4
+ "out_channels": 3, // 输出通道数
5
+ "layers_per_block": 2, // 每个block的层数
6
+ "block_out_channels": [128, 256, 384, 512], // 每个block的输出通道数
7
+ "down_block_types": ["DownBlock2D", "AttnDownBlock2D", "DownBlock2D", "DownBlock2D"], // 下采样block类型
8
+ "up_block_types": ["UpBlock2D", "UpBlock2D", "AttnUpBlock2D", "UpBlock2D"], // 上采样block类型
9
+ "mid_block_scale_factor": 1, // 中间block的尺度因子
10
+ "act_fn": "silu", // 激活函数
11
+ "attention_head_dim": 8, // 注意力头的维度
12
+ "norm_num_groups": 32, // 归一化中的组数
13
+ "norm_eps": 1e-5, // 归一化中的epsilon值
14
+ "time_embedding_type": "positional", // 时间嵌入类型
15
+ "resnet_time_scale_shift": "default", // ResNet中的时间尺度偏移
16
+ "use_linear_projection": false, // 是否使用线性投影
17
+ "class_embed_type": "identity", // 类别嵌入类型
18
+ "num_class_embeds": null, // 类别嵌入的数量
19
+ "resnet_pre_temb_non_linearity": false // ResNet是否使用非线性层
20
  }