mirror of
https://github.com/Stability-AI/generative-models.git
synced 2025-12-20 23:04:21 +01:00
Fixing validation step for PL 1
This commit is contained in:
3
main.py
3
main.py
@@ -469,9 +469,8 @@ class ImageLogger(Callback):
|
|||||||
self.log_img(pl_module, batch, batch_idx, split="train")
|
self.log_img(pl_module, batch, batch_idx, split="train")
|
||||||
|
|
||||||
@rank_zero_only
|
@rank_zero_only
|
||||||
# def on_validation_batch_end(self, trainer, pl_module, outputs, batch, batch_idx):
|
|
||||||
def on_validation_batch_end(
|
def on_validation_batch_end(
|
||||||
self, trainer, pl_module, outputs, batch, batch_idx, **kwargs
|
self, trainer, pl_module, outputs, batch, batch_idx, *args, **kwargs
|
||||||
):
|
):
|
||||||
if not self.disabled and pl_module.global_step > 0:
|
if not self.disabled and pl_module.global_step > 0:
|
||||||
self.log_img(pl_module, batch, batch_idx, split="val")
|
self.log_img(pl_module, batch, batch_idx, split="val")
|
||||||
|
|||||||
Reference in New Issue
Block a user