Open Syk-yr opened 3 months ago
In config.py replace the get_parser() with the following.
`def get_parser(): parser = argparse.ArgumentParser(description='World model training')
parser.add_argument('--config', default='mile/configs/debug.yml', metavar='FILE', help='path to config file')
parser.add_argument(
'opts', help='Modify config options using the command-line', default=None, nargs=argparse.REMAINDER,
)
return parser`
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!