File size: 330 Bytes
0305a63
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from dataclasses import dataclass, field
from typing import Optional, List


@dataclass
class SingleDataConfig:
    dataset_folder: str
    imagefolder: bool = True
    dataset_weight: float = 1.0 # Not used yet

@dataclass
class DataConfig:
    datasets: List[SingleDataConfig]
    val_dataset: Optional[SingleDataConfig] = None