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

Flag parsing fails in Colab #22

Open
marianophielipp opened this issue Mar 4, 2023 · 1 comment
Open

Flag parsing fails in Colab #22

marianophielipp opened this issue Mar 4, 2023 · 1 comment

Comments

@marianophielipp
Copy link

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
Copy link
Owner

danijar commented Mar 5, 2023

You can just comment out that line when using Colab.

@danijar danijar changed the title Runing example.py . Flag parsing fails when running example.py in Colab Mar 7, 2023
@danijar danijar changed the title Flag parsing fails when running example.py in Colab Flag parsing fails in Colab Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants