-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
21 lines (16 loc) · 785 Bytes
/
Copy pathconfig.py
File metadata and controls
21 lines (16 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@jayakumar
import yaml
with open('hyperparameter.yaml') as file:
hyperparameters = yaml.load(file, Loader = yaml.FullLoader)
training_data_path = "/training/"
checkpoint_path = "/models/"
pretrained_model_path = "/base_model/"+hyperparameters['pretrained_checkpoint_name']
total_steps = int(hyperparameters['total_steps'])
save_checkpoint_steps = int(hyperparameters['save_checkpoint_steps'])
max_checkpoints_to_keep = int(hyperparameters['max_checkpoints_to_keep'])
batch_size_per_gpu = int(hyperparameters['max_checkpoints_to_keep'])
learning_rate = float(hyperparameters['learning_rate'])
num_readers = int(hyperparameters['num_readers'])
geometry = hyperparameters['geometry']
restore = bool(hyperparameters['restore'])
output_model_path = hyperparameters['output_model']