Skip to content

Commit 0ae035a

Browse files
authored
added training parameters
1 parent d788ed3 commit 0ae035a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

config.py

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# path to saving models
12
model_dir = 'models'
3+
4+
# path to saving loss plots
25
losses_dir = 'losses'
6+
7+
# path to the data directories
38
data_dir = 'data'
9+
train_dir = 'train'
10+
val_dir = 'val'
11+
imgs_dir = 'imgs'
12+
noisy_dir = 'noisy'
13+
debug_dir = 'debug'
14+
15+
# text file to get text from
16+
txt_file_dir = 'shitty_text.txt'
17+
18+
# maximun number of synthetic words to generate
19+
num_synthetic_imgs = 2000
20+
train_percentage = 0.8
21+
22+
resume = True # False for trainig from scratch, True for loading a previously saved weight
23+
ckpt='model02.pth' # model file path to load the weights from, only useful when resume is True
24+
lr = 1e-5 # learning rate
25+
epochs = 2 # epochs to train for
26+
27+
# batch size for train and val loaders
28+
batch_size = 16

0 commit comments

Comments
 (0)