summaryrefslogtreecommitdiff
path: root/options/test_options.py
diff options
context:
space:
mode:
authorTing-Chun Wang <tcwang0509@berkeley.edu>2018-05-30 22:39:01 -0700
committerGitHub <noreply@github.com>2018-05-30 22:39:01 -0700
commita2340c3fff9de44c8ef1fea5b90fced756fbbb18 (patch)
tree39f3c05c80a94d721ec6fed0f0da65ecbc3bc603 /options/test_options.py
parent1b89cd010dce2e6edaa07d23c8edd8dfe146e0e1 (diff)
parent25e205604e7eafa83867a15cfda526461fe58455 (diff)
Merge pull request #33 from borisfom/fp16
Added data size and ONNX export options, FP16 inference is working
Diffstat (limited to 'options/test_options.py')
-rwxr-xr-xoptions/test_options.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/options/test_options.py b/options/test_options.py
index aaeff53..504edf3 100755
--- a/options/test_options.py
+++ b/options/test_options.py
@@ -12,4 +12,8 @@ class TestOptions(BaseOptions):
self.parser.add_argument('--which_epoch', type=str, default='latest', help='which epoch to load? set to latest to use latest cached model')
self.parser.add_argument('--how_many', type=int, default=50, help='how many test images to run')
self.parser.add_argument('--cluster_path', type=str, default='features_clustered_010.npy', help='the path for clustered results of encoded features')
+ self.parser.add_argument("--export_onnx", type=str, help="export ONNX model to a given file")
+ self.parser.add_argument("--engine", type=str, help="run serialized TRT engine")
+ self.parser.add_argument("--onnx", type=str, help="run ONNX model via TRT")
+ self.parser.add_argument("-d", "--data_type", default=32, type=int, choices=[8, 16, 32], help="Supported data type i.e. 8, 16, 32 bit")
self.isTrain = False