Passing transforms to datamodule from LightningCLI example #14607
-
Would appreciate if someone has an example of passing a list of transforms with arguments to a Lightning DataModule from the LightningCLI. I'm thinking of a syntax similar to this where one can pass multiple callables from the CLI. EDIT: I managed to pass a single transform by adding the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You should use list, for more details, see https://jsonargparse.readthedocs.io/en/stable/#type-hints |
Beta Was this translation helpful? Give feedback.
-
I'm also trying to initiate transformations and pass them to the data module. I use the following config for the data module:
When debugging this is parsed as :
The object is not initiated like the callbacks that are passed to the trainer. Is this how it should be or I'm doing something wrong? |
Beta Was this translation helpful? Give feedback.
You should use list, for more details, see https://jsonargparse.readthedocs.io/en/stable/#type-hints