Fix debug_dataset to work

This commit is contained in:
Kohya S
2024-08-20 08:19:00 +09:00
parent 486fe8f70a
commit 9e72be0a13

View File

@@ -313,6 +313,7 @@ class NetworkTrainer:
collator = train_util.collator_class(current_epoch, current_step, ds_for_collator)
if args.debug_dataset:
train_dataset_group.set_current_strategies() # dasaset needs to know the strategies explicitly
train_util.debug_dataset(train_dataset_group)
return
if len(train_dataset_group) == 0: