Tweak command line scripts (#2517)
* Tweak command line scripts
enable fine grained control of command flags parsing
switch to attribute style of accessing config options
* Break down visualization function
decouple it from IO operations
* Move flag parsing out of `main()`
* Fix a bug where `None` is returned instead of `{}`
* Rename `save_xxx` to `output_xxx` in command line flags
could be confusing since checkpoint is stored in `save_dir`
* Support image file extensions in upper case
Showing
想要评论请 注册 或 登录