diff options
author | KyuSeok Jung <wjdrbtjr495@gmail.com> | 2022-11-11 01:56:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 01:56:53 +0000 |
commit | a1e271207dfc3e89b1286ba41d96b459f210c4b2 (patch) | |
tree | 419c9855fecc6eeb14fa8865eb75297f1068cde4 /modules/textual_inversion/dataset.py | |
parent | b19af67d29356f97fea5cccfdfa12583f605243f (diff) | |
download | stable-diffusion-webui-gfx803-a1e271207dfc3e89b1286ba41d96b459f210c4b2.tar.gz stable-diffusion-webui-gfx803-a1e271207dfc3e89b1286ba41d96b459f210c4b2.tar.bz2 stable-diffusion-webui-gfx803-a1e271207dfc3e89b1286ba41d96b459f210c4b2.zip |
Update dataset.py
Diffstat (limited to 'modules/textual_inversion/dataset.py')
-rw-r--r-- | modules/textual_inversion/dataset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textual_inversion/dataset.py b/modules/textual_inversion/dataset.py index e2cb8428..eb75c376 100644 --- a/modules/textual_inversion/dataset.py +++ b/modules/textual_inversion/dataset.py @@ -100,7 +100,7 @@ class PersonalizedBase(Dataset): text = text.replace("[name]", self.placeholder_token)
tags = filename_text.split(',')
if shared.opts.tag_drop_out != 0:
- tags = [t for t in tags if random.random() > shared.opt.tag_drop_out]
+ tags = [t for t in tags if random.random() > shared.opts.tag_drop_out]
if shared.opts.shuffle_tags:
random.shuffle(tags)
text = text.replace("[filewords]", ','.join(tags))
|