-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
53 lines (41 loc) · 985 Bytes
/
config.py
File metadata and controls
53 lines (41 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from dataclasses import dataclass
from typing import List, Tuple
@dataclass
class UNetConfig:
x1_shape: tuple[int, int, int]
x2_shape: tuple[int, int, int]
d_temb: int
hyperscore1_shape: tuple[int, int, int]
chord1_shape: tuple[int, int, int]
hyperscore2_shape: tuple[int, int, int]
base_channel: int
channel_mult: list[int]
num_blocks: int
hyperscore1_level: list[int]
hyperscore2_level: list[int]
chord_level: list[int]
fuse_rhythm_level: list[int]
self_attn_level: list[int]
num_heads: int
N: int
use_d3pm: bool
@dataclass
class TrainingConfig:
batch_size: int
lr: float
num_epochs: int
num_workers: int
pin_memory: bool
accumulation_step: int
output_path: str
data_path: str
save_interval: int
log_interval: int
null_condition_prob: float
@dataclass
class GANConfig:
C: int
H: int
W: int
noise_channel:int
inpainting_prob: float