The following code snippet works as expected when running the script without any parameters (execution stops because of missing argument in config):
if __name__ == '__main__':
config_name = "csv_images_test"
cs = ConfigStore.instance()
cs.store(name=config_name, node=Config)
@hydra.main(config_path="/hdd/twapi/configs/", config_name=config_name)
def main(cfg: Config) -> None:
print(OmegaConf.to_yaml(cfg))
main()
How ever, when i specify this config name via command line, it seems that type checking is not happening:
python /hdd/twapi/src/config_structure.py --config-name=/hdd/twapi/configs/csv_images_test.yaml