We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d788ed3 commit 0ae035aCopy full SHA for 0ae035a
config.py
@@ -1,3 +1,28 @@
1
+# path to saving models
2
model_dir = 'models'
3
+
4
+# path to saving loss plots
5
losses_dir = 'losses'
6
7
+# path to the data directories
8
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