Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an example of Anomalib adversary (#256)
* Add batch_c15n for [0,1] image input and imagenet-normalized input. * Turn off inference mode before creating perturbations. * Switch to training mode before running LightningModule.training_step(). * Add utils for config instantiation. * Add mart.utils.Get() to extract a value from kwargs dict. * Upgrade Lightning from 2.0 to 2.1. * Move most dependencies to optional groups. * Avoid importing everything in mart. * Make a separate naming space mart.transforms.objdet for object detection transforms. * Comment * Clean up. * Move to mart.nn.Get(). * Revert changes in transforms. * Revert changes in __init__.py * Revert changes in pyproject.toml. * Skip object detection tests if pycocotools is not installed. * Simplify dependency with newer lightning 2.1+. * Clean up comments. * Remove the version constraint on rich, due to the conflict with Anomalib. * Make a package anomalib_adversary * Add two model configs for Anomalib. * Add README. * Update README * Replace Anomalib config files with command lines. * Add an empty configs folder, because mart.generate_config requires a local configs folder. * Point dependency to MART@main. * Parameterize module step function in AdversaryConnector * HACK: Gain function that clones it target * Update README with WinClip example * Update MART dependency. * Mordenize packaging with pyproject.toml. * Revert "Parameterize module step function in AdversaryConnector" This reverts commit 061b502. * Revert "HACK: Gain function that clones it target" This reverts commit ceb7ccb. * Revert "Update README with WinClip example" This reverts commit 310186e. * Update README. * Add a comma to make consistent lines. --------- Co-authored-by: Cory Cornelius <[email protected]>
- Loading branch information