You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for providing the open-source program, but I encountered an issue during the first step of training.
I run according to the training process of Readme.md, and the following errors appeared:
AttributeError
'Namespace' object has no attribute 'config'。
It happened in
def main():
args = get_parser().parse_args()
cfg = get_cfg(args) ---- some error
def get_cfg(args=None, cfg_dict=None):
"""First get default config. Then merge cfg_dict. Then merge according to args."""
cfg = _C.clone()
if cfg_dict is not None:
extra_keys = _find_extra_keys(cfg, cfg_dict)
if len(extra_keys) > 0:
print(f"Warning - the cfg_dict merging into the main cfg has keys that do not exist in main: {extra_keys}")
cfg.set_new_allowed(True)
cfg.merge_from_other_cfg(CfgNode(cfg_dict))
if args is not None:
if args.config:----------------------------some error
AttributeError
'Namespace' object has no attribute 'config'。
How can I solve this problem? Thank you very much!
The text was updated successfully, but these errors were encountered:
Thank you very much for providing the open-source program, but I encountered an issue during the first step of training.
I run according to the training process of Readme.md, and the following errors appeared:
AttributeError
'Namespace' object has no attribute 'config'。
It happened in
def main():
args = get_parser().parse_args()
cfg = get_cfg(args) ---- some error
def get_cfg(args=None, cfg_dict=None):
"""First get default config. Then merge cfg_dict. Then merge according to args."""
AttributeError
'Namespace' object has no attribute 'config'。
How can I solve this problem? Thank you very much!
The text was updated successfully, but these errors were encountered: