463465810cz commited on
Commit ·
e3ef5d2
1
Parent(s): 363b0b4
Update dat_arch.py
Browse files
basicsr/archs/dat_arch.py
CHANGED
|
@@ -683,7 +683,7 @@ class DAT(nn.Module):
|
|
| 683 |
depths (tuple(int)): Depth of each residual group (number of DATB in each RG).
|
| 684 |
split_size (tuple(int)): Height and Width of spatial window.
|
| 685 |
num_heads (tuple(int)): Number of attention heads in different residual groups.
|
| 686 |
-
|
| 687 |
qkv_bias (bool): If True, add a learnable bias to query, key, value. Default: True
|
| 688 |
qk_scale (float | None): Override default qk scale of head_dim ** -0.5 if set. Default: None
|
| 689 |
drop_rate (float): Dropout rate. Default: 0
|
|
@@ -834,7 +834,7 @@ if __name__ == '__main__':
|
|
| 834 |
depth=[6,6,6,6,6,6],
|
| 835 |
embed_dim=180,
|
| 836 |
num_heads=[6,6,6,6,6,6],
|
| 837 |
-
|
| 838 |
resi_connection='1conv',
|
| 839 |
split_size=[8,16],
|
| 840 |
).cuda().eval()
|
|
|
|
| 683 |
depths (tuple(int)): Depth of each residual group (number of DATB in each RG).
|
| 684 |
split_size (tuple(int)): Height and Width of spatial window.
|
| 685 |
num_heads (tuple(int)): Number of attention heads in different residual groups.
|
| 686 |
+
expansion_factor (float): Ratio of ffn hidden dim to embedding dim. Default: 4
|
| 687 |
qkv_bias (bool): If True, add a learnable bias to query, key, value. Default: True
|
| 688 |
qk_scale (float | None): Override default qk scale of head_dim ** -0.5 if set. Default: None
|
| 689 |
drop_rate (float): Dropout rate. Default: 0
|
|
|
|
| 834 |
depth=[6,6,6,6,6,6],
|
| 835 |
embed_dim=180,
|
| 836 |
num_heads=[6,6,6,6,6,6],
|
| 837 |
+
expansion_factor=2,
|
| 838 |
resi_connection='1conv',
|
| 839 |
split_size=[8,16],
|
| 840 |
).cuda().eval()
|