Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some issues during training #49

Open
Syk-yr opened this issue Aug 30, 2024 · 0 comments
Open

Some issues during training #49

Syk-yr opened this issue Aug 30, 2024 · 0 comments

Comments

@Syk-yr
Copy link

Syk-yr commented Aug 30, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant