danijar / dreamerv3

Mastering Diverse Domains through World Models
https://danijar.com/dreamerv3
MIT License
1.25k stars 216 forks source link

Flag parsing fails in Colab #22

Open marianophielipp opened 1 year ago

marianophielipp commented 1 year ago

Hi Danijar,

Excelent work! I 'm trying to run the example.py and I get stuck on the config file.

Read the cofig file great until the following line, then it break. disag_models: 8 (int)

│ ❱ 56 main() │ .... │ ❱ 25 config = embodied.Flags(config).parse() │ │ 26 │ │ 27 logdir = embodied.Path(config.logdir) │ │ 28 step = embodied.Counter() │ │ │ │ /store/.local/lib/python3.9/site-packages/dreamerv3/embodied/core/flags.py:17 in parse │ │ │ │ 14 │ for flag in remaining: │ │ 15 │ if flag.startswith('--'): │ │ 16 │ │ raise ValueError(f"Flag '{flag}' did not match any config keys.") │ │ ❱ 17 │ assert not remaining, remaining │ │ 18 │ return parsed │ │ 19 │ │ 20 def parse_known(self, argv=None, help_exists=False): │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ AssertionError: ['-f', '/store/.local/share/jupyter/runtime/kernel-00a1b6b5-8b7b-4902-91bc-f2a9d86e76db.json']

danijar commented 1 year ago

You can just comment out that line when using Colab.