Running scripts will error with "Missing option '--datamodule' / '-d'."
Scripts expect a datamodule
parameter. This was done by having a python file per fold containing a datamodule
variable. pyproject.toml defines entrypoints that return modules containing "datamodule" variable .
Commit 05bbb35f changed this by grouping all folds into a single module and renaming every datamodule
variable to the name of the fold. Therefore, scripts do not receive a parameter named datamodule
anymore, but ones named fold_0
, fold_1
, fold_2
, etc. instead.
This results in the following error:
$ ptbench train -vv pasa shenzhen
Usage: ptbench train [OPTIONS] [CONFIG]...
Try 'ptbench train -?' for help.
Error: Missing option '--datamodule' / '-d'.