diff options
author | Volpeon <git@volpeon.ink> | 2023-01-16 17:09:01 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-01-16 17:09:01 +0100 |
commit | 36440e48ce279872d6e736bcb1bf57d13da73a11 (patch) | |
tree | 8ba9593d8a887517c70b01932c137c9c3f759e8f /data | |
parent | More training adjustments (diff) | |
download | textual-inversion-diff-36440e48ce279872d6e736bcb1bf57d13da73a11.tar.gz textual-inversion-diff-36440e48ce279872d6e736bcb1bf57d13da73a11.tar.bz2 textual-inversion-diff-36440e48ce279872d6e736bcb1bf57d13da73a11.zip |
Moved multi-TI code from Dreambooth to TI script
Diffstat (limited to 'data')
-rw-r--r-- | data/csv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/csv.py b/data/csv.py index 85b98f8..6857b6f 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, [] |
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 | ||