prevent sampling in first steps
This commit is contained in:
parent
6dfe59e9b0
commit
9be5028617
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -350,6 +350,7 @@ class ImageLogger(Callback):
|
|||
if (self.check_frequency(check_idx) and # batch_idx % self.batch_freq == 0
|
||||
hasattr(pl_module, "log_images") and
|
||||
callable(pl_module.log_images) and
|
||||
batch_idx > 5 and
|
||||
self.max_images > 0):
|
||||
logger = type(pl_module.logger)
|
||||
|
||||
|
|
Loading…
Reference in a new issue