-
Notifications
You must be signed in to change notification settings - Fork 1
/
arguments.py
executable file
·32 lines (19 loc) · 1.38 KB
/
arguments.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
import argparse
class Arguments:
def __init__(self, stage='demo'):
self._parser = argparse.ArgumentParser(description='Arguments for SCARP Demo')
self.add_common_args()
def add_common_args(self):
### data related
self._parser.add_argument('--class_choice', type=str, default='plane', help='plane|car|chair|watercraft|bottle|bowl|mug|can|basket')
self._parser.add_argument('--demo_dataset_path', type=str,default='./demo_data', help='Path for the Demo Data')
### TreeGAN architecture related
self._parser.add_argument('--DEGREE', type=int, default=[1, 2, 2, 2, 2, 2, 32], nargs='+', help='Upsample degrees for generator.')
self._parser.add_argument('--G_FEAT', type=int, default=[128, 256, 256, 256, 128, 128, 128, 3], nargs='+', help='Features for generator.')
self._parser.add_argument('--support', type=int, default=10, help='Support value for TreeGCN loop term.')
self._parser.add_argument('--loop_non_linear', default=False, type=lambda x: (str(x).lower() == 'true'))
### others
self._parser.add_argument('--gpu', type=int, default=0, help='GPU number to use.')
self._parser.add_argument('--ckpt_load', type=str, default='./checkpoints/plane.pt', help='Checkpoint name to load. (default:None)')
def parser(self):
return self._parser