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

dataload_format_to_csv script errors #4

Closed
bowenyou opened this issue Aug 7, 2021 · 2 comments
Closed

dataload_format_to_csv script errors #4

bowenyou opened this issue Aug 7, 2021 · 2 comments

Comments

@bowenyou
Copy link

bowenyou commented Aug 7, 2021

Thanks for making the repo public! I'm trying to use the dataload_format_to_csv script within the scripts directory as in your README. I've followed the instructions exactly so far and when I am running
python3 scripts/csv_handling/dataload_format_to_csv.py raw_test_path=data/raw_datasets/150

I get the following error:

scripts/csv_handling/dataload_format_to_csv.py:50: UserWarning: 
config_path is not specified in @hydra.main().
See https://hydra.cc/docs/next/upgrades/1.0_to_1.1/changes_to_hydra_main_config_path for more information.
  @hydra.main(config_name="../config")
Could not override 'raw_test_path'.
To append to your config use +raw_test_path=data/raw_datasets/150
Key 'raw_test_path' is not in struct
    full_key: raw_test_path
    object_type=dict

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

I haven't changed anything within the repo, and am just running it as is. Is there a fix for this?
Is it possible to adapt this script to not just the validation set but the training data as well?

Thanks!

@bowenyou
Copy link
Author

bowenyou commented Aug 8, 2021

think it has to do with version of hydra-core. Downgrading to 1.0.0 from 1.1.0 seems to fix this.

@TommasoBendinelli
Copy link
Contributor

TommasoBendinelli commented Aug 8, 2021

Hi bowenyou! Thanks for finding this out. I guess hydra 1.0.0 is needed because namespaces are handled differently.

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