File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def __init__(self, ):
14
14
self .DEVICE = 'cuda' if torch .cuda .is_available () else 'cpu'
15
15
self .BATCH_SIZE = self .get_batch_size ()
16
16
# print(f'Batch Size: {self.BATCH_SIZE}')
17
- self .ONE_CYCLE_MAX_LR = 0.0001
17
+ self .ONE_CYCLE_MAX_LR = 0.01
18
18
self .MODEL_PATH = Path ('model' )
19
19
self .check_path (self .MODEL_PATH )
20
20
@@ -30,6 +30,16 @@ def get_batch_size(self, ):
30
30
else :
31
31
BATCH_SIZE = 2
32
32
return BATCH_SIZE
33
+
34
+ def print_config (self ):
35
+ print (f'SOURCE_DIR: { self .SOURCE_DIR } ' )
36
+ print (f'TARGET_DIR: { self .TARGET_DIR } ' )
37
+ print (f'BATCH_SIZE: { self .BATCH_SIZE } ' )
38
+ print (f'NUM_EPOCHS: { self .NUM_EPOCHS } ' )
39
+ print (f'N_FOLD: { self .N_FOLD } ' )
40
+ print (f'CROP_RATIO: { self .CROP_RATIO } ' )
41
+ print (f'DEVICE: { self .DEVICE } ' )
42
+ print (f'ONE_CYCLE_MAX_LR: { self .ONE_CYCLE_MAX_LR } ' )
33
43
34
44
def check_path (self , path ):
35
45
path .mkdir (exist_ok = True )
Original file line number Diff line number Diff line change 24
24
from utils import *
25
25
26
26
config = Config ()
27
+ config .print_config ()
27
28
os .environ ['WANDB_API_KEY' ] = '67c99389e1ae37b747c40634c51802a4bf019d49'
28
29
29
30
def train_transform ():
You can’t perform that action at this time.
0 commit comments