Customizing LightningCLI for multiple Test Stages #20579
Unanswered
Amerehei
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
Just a recommendation from my side. So my recommendation would be to figure out how to modify your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on customizing LightningCLI to include two separate test stages: "clean" and "robust." I'd appreciate guidance on how to achieve this effectively with the LightningCLI framework.
Consider the following code snippet:
How can I set
images = adv_images
before running the validation?I want to modify the validation dataset so that adversarial examples are used during validation instead of the clean images. note that images and labels are a single batch
How can I switch between "clean" and "robust" modes from the CLI?
I would like to be able to choose between clean validation and adversarial validation (robust mode) using command-line arguments.
Do I need to denormalize images?
In other words, are inputs normalized in the line we modify?
I'm looking for the easiest and cleanest way to achieve these tasks while working within the LightningCLI framework.
Beta Was this translation helpful? Give feedback.
All reactions