basicsr.utils.options

basicsr.utils.options.copy_opt_file(opt_file, experiments_root)[source]
basicsr.utils.options.dict2str(opt, indent_level=1)[source]

dict to string for printing options.

Parameters
  • opt (dict) – Option dict.

  • indent_level (int) – Indent level. Default: 1.

Returns

Option string for printing.

Return type

(str)

basicsr.utils.options.ordered_yaml()[source]

Support OrderedDict for yaml.

Returns

yaml Loader and Dumper.

basicsr.utils.options.parse_options(root_path, is_train=True)[source]