SunderAli17 commited on
Commit
7707ac5
1 Parent(s): 709911e

Create data/data_config.py

Browse files
Files changed (1) hide show
  1. data/data_config.py +14 -0
data/data_config.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from dataclasses import dataclass, field
2
+ from typing import Optional, List
3
+
4
+
5
+ @dataclass
6
+ class SingleDataConfig:
7
+ dataset_folder: str
8
+ imagefolder: bool = True
9
+ dataset_weight: float = 1.0 # Not used yet
10
+
11
+ @dataclass
12
+ class DataConfig:
13
+ datasets: List[SingleDataConfig]
14
+ val_dataset: Optional[SingleDataConfig] = None