summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--options/base_options.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/options/base_options.py b/options/base_options.py
index bce0b9c..cce6aae 100644
--- a/options/base_options.py
+++ b/options/base_options.py
@@ -52,9 +52,7 @@ class BaseOptions():
if id >= 0:
self.opt.gpu_ids.append(id)
- args = dict((name, getattr(self.opt, name)) for name in dir(self.opt)
- if not name.startswith('_'))
-
+ args = vars(self.opt)
print('------------ Options -------------')
for k, v in sorted(args.items()):