-
Notifications
You must be signed in to change notification settings - Fork 81
/
option.py
26 lines (22 loc) · 960 Bytes
/
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
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## 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
import os
class Options():
def __init__(self):
# Training settings
parser = argparse.ArgumentParser(description='Matching Network')
parser.add_argument('--dataroot', type=str, default='/tmp/omniglot',
help='path to dataset')
parser.add_argument('--log-dir', default='./logs',
help='folder to output model checkpoints')
self.parser = parser
def parse(self):
return self.parser.parse_args()