Enhance bundle.read_config to pick either yaml or json automatically
See original GitHub issuehttps://github.com/Project-MONAI/model-zoo/tree/dev/models/pancreas_ct_dints_segmentation/configs vs https://github.com/Project-MONAI/model-zoo/tree/dev/models/spleen_ct_segmentation/configs
One using yaml and other using json.
If we want to use https://github.com/Project-MONAI/MONAI/blob/dev/monai/bundle/config_parser.py#L254
We have to pre-check if user is using yaml or json.
This API can be abstracted to config without extension and def read_config
can take care of loading based on what exists…
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Core Features - Spring
YAML is a superset of JSON and, as such, is a convenient format for specifying hierarchical configuration data. The SpringApplication class automatically ......
Read more >Configuration - Prometheus.io
To specify which configuration file to load, use the --config.file flag. The file is written in YAML format, defined by the scheme described...
Read more >Command 'juju model-config'
Summary: Displays or sets configuration values on a model. Global Options: --debug (= false). Equivalent to --show-log --logging-config==DEBUG
Read more >Configs suck? Try a real programming language | Hacker News
I can't think of a good way to convert that to a pure JSON/YAML config without either making my software more error prone...
Read more >spf13/viper: Go configuration with fangs - GitHub
Find, load, and unmarshal a configuration file in JSON, TOML, YAML, HCL, INI, envfile or Java properties formats. Provide a mechanism to set...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SachidanandAlle for now we can do it with dict update:
outputs:
Also it shall be great if you can support overrides as part of
ConfigParser.read_config
.Currently it’s only supported through
monai.bundle.run
For example: in some situations, the bundle_root kind of variables need override. https://github.com/Project-MONAI/model-zoo/blob/dev/models/pancreas_ct_dints_segmentation/configs/inference.yaml#L7-L9
Without run, if we want to get the instances in such cases, we need to pass some overrides for the config parser/reader.