Skip to content

Commit

Permalink
fix: Fix wrong parameters after lightning upgrade (#109)
Browse files Browse the repository at this point in the history
* fix: Fix wrong parameters after lightning upgrade

* build: Upgrade version

* docs: Update documentation
  • Loading branch information
lorenzomammana authored Feb 29, 2024
1 parent c437a3d commit 539cac5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Changelog
All notable changes to this project will be documented in this file.

### [2.0.3]

#### Fixed

- Fix anomaly visualizer callback not working properly after lightning upgrade

### [2.0.2]

#### Fixed
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "quadra"
version = "2.0.2"
version = "2.0.3"
description = "Deep Learning experiment orchestration library"
authors = [
"Federico Belotti <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion quadra/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.0.2"
__version__ = "2.0.3"


def get_version():
Expand Down
16 changes: 8 additions & 8 deletions quadra/callbacks/anomalib.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,23 @@ def _add_images(self, visualizer: Visualizer, filename: Path, output_label_folde

def on_test_batch_end(
self,
_trainer: pl.Trainer,
trainer: pl.Trainer,
pl_module: AnomalyModule,
outputs: Optional[STEP_OUTPUT],
_batch: Any,
_batch_idx: int,
_dataloader_idx: int,
batch: Any,
batch_idx: int,
dataloader_idx: int = 0,
) -> None:
"""Log images at the end of every batch.
Args:
_trainer: Pytorch lightning trainer object (unused).
trainer: Pytorch lightning trainer object (unused).
pl_module: Lightning modules derived from BaseAnomalyLightning object as
currently only they support logging images.
outputs: Outputs of the current test step.
_batch: Input batch of the current test step (unused).
_batch_idx: Index of the current test batch (unused).
_dataloader_idx: Index of the dataloader that yielded the current batch (unused).
batch: Input batch of the current test step (unused).
batch_idx: Index of the current test batch (unused).
dataloader_idx: Index of the dataloader that yielded the current batch (unused).
"""
if self.disable:
return
Expand Down

0 comments on commit 539cac5

Please sign in to comment.