Skip to content

Commit 061d11d

Browse files
committed
Fixing validation step for PL 1
1 parent 2796c81 commit 061d11d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,8 @@ def on_train_batch_start(self, trainer, pl_module, batch, batch_idx):
469469
self.log_img(pl_module, batch, batch_idx, split="train")
470470

471471
@rank_zero_only
472-
# def on_validation_batch_end(self, trainer, pl_module, outputs, batch, batch_idx):
473472
def on_validation_batch_end(
474-
self, trainer, pl_module, outputs, batch, batch_idx, **kwargs
473+
self, trainer, pl_module, outputs, batch, batch_idx, *args, **kwargs
475474
):
476475
if not self.disabled and pl_module.global_step > 0:
477476
self.log_img(pl_module, batch, batch_idx, split="val")

0 commit comments

Comments
 (0)