summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-15 23:45:10 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-15 23:45:10 +0100
commit891ff697a091828d32dcbb7d80d1b50c4a42f379 (patch)
tree08df7eb09c5ca78a6e5c00cc3fb0a8636f2a3ba3 /test.py
parentafd063ed2a80b4318bbcaa4ab5df489ab4efd6bd (diff)
pre-crop
Diffstat (limited to 'test.py')
-rw-r--r--test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test.py b/test.py
index eab51b2..13c92ef 100644
--- a/test.py
+++ b/test.py
@@ -16,6 +16,7 @@ from nets import FR_16L, FR_28L, FR_52L
parser = argparse.ArgumentParser()
parser.add_argument('--L', metavar='L', type=int, default=choice([16, 28, 52]), help='Network depth: One of 16, 28, 52')
parser.add_argument('--T', metavar='T', default='L', help='Input type: L(Low-resolution) or G(Ground-truth)')
+parser.add_argument('--dataset', default=None, help='Name of dataset')
parser.add_argument('--in_dir', metavar='in_dir', default=None, help='Directory to process')
parser.add_argument('--out_dir', metavar='out_dir', default='/media/blue/uprez/results', help='Directory to output to')
parser.add_argument('--network_dir', default='.', help='Path to networks')
@@ -43,10 +44,10 @@ if not(args.T == 'L' or args.T =='G'):
def process_dir(dir):
dir_partz = dir.split('/')
- dataset = dir_partz[-2]
+ dataset = args.dataset = dir_partz[-2]
part = dir_partz[-1]
tag = '_'.join([dataset, str(args.L) + 'L', part])
- out_path = os.path.join(args.out_dir, dataset, str(args.L) + 'L', part)
+ out_path = os.path.join(args.out_dir, dataset, part)
render_path = os.path.join(args.out_dir, 'renders')
os.makedirs(out_path, exist_ok=True)
if args.mov_from_dirs: