-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathoption.py
31 lines (28 loc) · 1.46 KB
/
option.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
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: Albert Berenguel
## Computer Vision Center (CVC). Universitat Autonoma de Barcelona
## Email: [email protected]
## Copyright (c) 2017
##
## This source code is licensed under the MIT-style license found in the
## LICENSE file in the root directory of this source tree
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
import argparse
class Options():
def __init__(self):
# Training settings
parser = argparse.ArgumentParser(description='Few-Shot Learning')
parser.add_argument('--task', type=str, default='config.5-shot-5-class',
help='path to config file for task')
parser.add_argument('--data', type=str, default='config.imagenet',
help='path to config file for data')
parser.add_argument('--model', type=str, default='config.lstm.train-imagenet-5shot',
#parser.add_argument('--model', type=str, default='config.baselines.train-matching-net',
help='path to config file for model')
parser.add_argument('--test', type=str, default='-',
help='path to config file for test details')
parser.add_argument('--log-dir', default='./logs',
help='folder to output model checkpoints')
self.parser = parser
def parse(self):
return self.parser.parse_args()