Open sdesrozis opened 4 years ago
@sdesrozis I know a repo which uses .cfg
file for configuration. Check it out here . The file hyperlinked is the one responsible for handling global settings. With a little more clarity on this, I can proceed with working on it.
Thanks!
Thank you for the rss š I will try to clarify the idea thus we will discuss š
Thank you for the rss š I will try to clarify the idea thus we will discuss š
Sure :)
So, at the moment, there is no consensus in the team about this.
I suggest to propose APIs to help to bound the PR. What is clear from now is that we don't need to parse configuration files. Althought, thanks for the link :)
We prefer a settings dict in the ignite
scope. How to define it and fill it is to be designed by APIs. This dict should be used in core tools (metrics, handlers, etc.) to help the configuration. How to use it (at dev level) is to be designed by APIs.
Look examples/references/classification/imagenet/code/scripts/common_training.py and see how this settings could help about :
This issue is quite prospective :)
Another config to put:
from tqdm.autonotebook import tqdm
). Sometimes, I would like to force to have "cli"-type instead of "autonotebook".ignite.deterministic = True/False
, default False and auto apply make_deterministic
on Engine
.It might be nice to use hydra for this (https://hydra.cc). I have some experience with this and it makes things pretty easy.
It might be nice to use hydra for this (https://hydra.cc). I have some experience with this and it makes things pretty easy.
@erip thank you šš» Could you write some example codes to show how hydra could be used with ignite ? Iām very curious š
I'm happy to give it a try! Since it's kind of involved, I'll create a working example in a separate repo and link it here. We can discuss the API and any potential limitations here.
We discussed a lot about settings and we definitely need to experiment !
google/gin-config
is another tools which could be great (but another language...)
š Feature
The idea is to provide a global settings tool to help the configuration
and
Parameters passed to method are used in priority