earthnet2021 / earthnet-models-pytorch

EarthNet Models PyTorch - Deep Neural Networks for geospatial vegetation forecasting.
https://www.earthnet.tech/
MIT License
29 stars 6 forks source link

Refactor argparse for python kwargs #31

Open vitusbenson opened 1 year ago

vitusbenson commented 1 year ago

Currently in many parts argparse is used to give hyperparameters and options to modules. This is mainly because in its early time, PyTorch Lightning was built this way. A more pythonic way is to just use normal keyword arguments for functions. These can also be nicely passed by a dict func(*args, **kwargs). The benefit would be that it is easier to use the library from inside Jupyter notebooks.

Goal:

Culprits:

Risks: