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

question about hydra #3

Open
Senwang98 opened this issue Oct 11, 2023 · 1 comment
Open

question about hydra #3

Senwang98 opened this issue Oct 11, 2023 · 1 comment

Comments

@Senwang98
Copy link

Senwang98 commented Oct 11, 2023

@kailiang-zhong
hello, I met one env problem when using your code.

python main.py \
    ./conf4models/lzd_real_data/DESCN.txt \
    1 \
    ./data/real_bin_set_full.5.train.npz \
    ./data/real_bin_set_full.5.test.npz 

But I get the folling hydra problem, which I have speed half day to fix it but failed.

main.py:859: UserWarning: 
The version_base parameter is not specified.
Please specify a compatability version level, or None.
Will assume defaults for version 1.1
  @hydra.main(config_path='./conf', config_name='conf_lzd_real_bin_v0_full.yaml')
2023-10-12 00:16:57,287 - DEBUG - Setting JobRuntime:name=UNKNOWN_NAME
2023-10-12 00:16:57,287 - DEBUG - Setting JobRuntime:name=main
Traceback (most recent call last):
  File "main.py", line 903, in <module>
    main()
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/main.py", line 99, in decorated_main
    config_name=config_name,
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/utils.py", line 401, in _run_hydra
    overrides=overrides,
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/utils.py", line 458, in _run_app
    lambda: hydra.run(
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/utils.py", line 223, in run_and_report
    raise ex
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/utils.py", line 220, in run_and_report
    return func()
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/utils.py", line 461, in <lambda>
    overrides=overrides,
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/hydra.py", line 109, in run
    run_mode=RunMode.RUN,
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/hydra.py", line 599, in compose_config
    validate_sweep_overrides=validate_sweep_overrides,
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/config_loader_impl.py", line 147, in load_configuration
    validate_sweep_overrides=validate_sweep_overrides,
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/config_loader_impl.py", line 245, in _load_configuration_impl
    config_name, overrides
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/_internal/config_loader_impl.py", line 228, in _parse_overrides_and_create_caching_repo
    parsed_overrides = parser.parse_overrides(overrides=overrides)
  File "/home/dell/miniconda3/envs/pt1.12/lib/python3.7/site-packages/hydra/core/override_parser/overrides_parser.py", line 100, in parse_overrides
    ) from e.__cause__
hydra.errors.OverrideParseException: LexerNoViableAltException: ./conf4models/lzd_real_data/DESCN.txt
                           ^
See https://hydra.cc/docs/1.2/advanced/override_grammar/basic for details

image

Have you meet this problem before?

@Senwang98
Copy link
Author

I fixed it when I use param_search.py to train, what a strange thing. Hydra-core is hard to use.

BTW, why training loss = nan during the training?

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

1 participant