forked from AnaMiguelRodrigues1/autolens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autolens.py
31 lines (24 loc) · 1.17 KB
/
autolens.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from autolens import autolens
import os
import argparse
if __name__ == "__main__":
home_dir = os.path.expanduser("~")
parser = argparse.ArgumentParser(description='Example script.')
parser.add_argument('autolens_mode', type=str, help='TODO ana', choices=["ludwig", "fastai"]) # options
parser.add_argument('dataset_path', type=str, help='dataset path TODO ana')
# ADD abstraction
parser.add_argument('--target_size', type=tuple, default=(255,255), help='dataset size')
parser.add_argument('--test_percentage', type=float, default=0.2, help='dataset size')
parser.add_argument('--val_percentage', type=float, default=0.1, help='dataset size')
parser.add_argument('--clean_metadata', action="store_true", help='dataset size')
parser.add_argument('--cache_dir', type=str, default=f"{home_dir}/.cache/autolens" ,help='dataset size')
# Parse the arguments
args = parser.parse_args()
autolens(args.autolens_mode,
args.dataset_path,
args.target_size,
args.test_percentage,
args.val_percentage,
args.clean_metadata,
args.cache_dir)
#print(sys.path)