-
Notifications
You must be signed in to change notification settings - Fork 4
/
configs.py
23 lines (18 loc) · 1.33 KB
/
configs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import argparse
class getOptions():
def __init__(self):
self.parser = argparse.ArgumentParser(description="Parses command.")
self.parser.add_argument("-dp", "--data_path", type=str, help="your training data path")
self.parser.add_argument("-vdp", "--val_data_path", type=str, help="your validation data path")
self.parser.add_argument("-bs", "--batch_size", type=int, help="your training batch size")
self.parser.add_argument("-tt", "--train_type", type=str, choices=['fine_tune', 'scratch'], help="your training type")
self.parser.add_argument("-s", "--shots", type=int, help="number of shots to be used")
self.parser.add_argument("-tm", "--testing_model", type=str, help="model weights for testing")
self.parser.add_argument("-c", "--cipher", type=str, help="Your cipher name")
self.parser.add_argument("-tr", "--thresh", type=float, help="threshold of reading confidence")
self.parser.add_argument("-ap", "--alphabet", type=str, help="alphabet path")
self.parser.add_argument("-lp", "--lines", type=str, help="lines path")
self.parser.add_argument("-op", "--output", type=str, help="output path")
self.parser.add_argument("-re", "--resize", default=True, help="output path")
def parse(self):
return self.parser.parse_args()