-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏗 Refactor
AnomalyModule
and LightningModules
to explicitly defin…
…e class arguments. (#315) * Created metrics callback to access the metric params in the module * Added metrics callback to get_callback function * 🗑 Removed hparams from visualizer callback * 🗑 Removed hparams from visualizer callback * ☑️ Check if image and pixel metrics exist in anomaly module in normalization callbacks * ➕ Add tiling callback to setup the tiler without configuring the model. * ➕ Add log_images_to flag to VisualizerCallback * 🗑 Removed hparams from AnomalyModule and PadimLightning * 🛠 Fix dummy module to be initialized with explicit arguments * ➕ Refactor dfm model * Make thresholding parameters optional in AnomalyModule * 🗑 Remove pixel threshold from DFM * create default image and pixel threshold attributes in AnomalyModule * 🗑 Remove hparams from DFM model and ➕explicit arguments. * 🗑 Remove hparams from Patchcore model and ➕explicit arguments. * 🗑 Remove hparams from Stfpm model and ➕explicit arguments. * 🗑 Remove hparams from GANomaly model and ➕explicit arguments. * 🗑 Remove hparams from Cflow model and ➕explicit arguments. * Removed normalization and Fix the tests * 📦 wrapped PadimLightning model from Padim * 📦 wrapped PatchcoreLightning model from Patchcore * 📦 wrapped StfpmLightning model from Stfpm * 📦 wrapped CflowLightning model from Cflow * 📦 wrapped CflowLightning model from Cflow * 📦 wrapped DfkdeLightning model from Dfkde * 📦 wrapped Dfm and Ganomaly models * ⏪ Revert DummyModule and visualizer tests * Fix visualizer tests * Fix normalization tests * Add metrics to lightning module * 🗑 Remove metrics callback * 🛠️ Fix metrics callback and tests * 🛠️ Fix metrics callback and tests * 🛠 Revert on_fit_start to setup in MetricCallback to properly assign threholds in test * ➕ Added docstring to clarify to-be-deprecated methods * 🏷 Renamed MetricCallback to MetricConfigurationCallback * 🏷 Renamed TilerCallback to TilerConfigurationCallback * 🏷 Renamed MetricCallback to MetricsConfigurationCallback * 🏷 Renamed tiler.py to tiler_configuration.py * ⏪ Removed instance check in cdf normalization * 🚚 Move threshold params to metric configuration callback (#328) Co-authored-by: Dick Ameln <dick.ameln@intel.com>
- Loading branch information
1 parent
17b62f8
commit c7d5232
Showing
35 changed files
with
796 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.