mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-06 21:52:27 +00:00
Remove unnecessary subset line from collate
This commit is contained in:
@@ -4762,10 +4762,6 @@ class collator_class:
|
||||
else:
|
||||
dataset = self.dataset
|
||||
|
||||
# If we split a dataset we will get a Subset
|
||||
if type(dataset) is torch.utils.data.Subset:
|
||||
dataset = dataset.dataset
|
||||
|
||||
# set epoch and step
|
||||
dataset.set_current_epoch(self.current_epoch.value)
|
||||
dataset.set_current_step(self.current_step.value)
|
||||
|
||||
Reference in New Issue
Block a user