summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-01-17 08:13:39 +0100
committerVolpeon <git@volpeon.ink>2023-01-17 08:13:39 +0100
commit1abbfd5215a99dba9d699e91baec00e6f02a0bd5 (patch)
tree670e846b3c08bd8957955ea56d3a4c4b58a8ad6f /data
parentUpdate (diff)
downloadtextual-inversion-diff-1abbfd5215a99dba9d699e91baec00e6f02a0bd5.tar.gz
textual-inversion-diff-1abbfd5215a99dba9d699e91baec00e6f02a0bd5.tar.bz2
textual-inversion-diff-1abbfd5215a99dba9d699e91baec00e6f02a0bd5.zip
Update
Diffstat (limited to 'data')
-rw-r--r--data/csv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/csv.py b/data/csv.py
index 85b98f8..b4c81d7 100644
--- a/data/csv.py
+++ b/data/csv.py
@@ -282,7 +282,7 @@ class VlpnDataModule():
282 collate_fn_ = partial(collate_fn, self.dtype, self.tokenizer, self.num_class_images != 0) 282 collate_fn_ = partial(collate_fn, self.dtype, self.tokenizer, self.num_class_images != 0)
283 283
284 if valid_set_size == 0: 284 if valid_set_size == 0:
285 data_train, data_val = items, items[:1] 285 data_train, data_val = items, items[:self.batch_size]
286 else: 286 else:
287 data_train, data_val = random_split(items, [train_set_size, valid_set_size], generator=generator) 287 data_train, data_val = random_split(items, [train_set_size, valid_set_size], generator=generator)
288 288