We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98947d1 commit 9a1aff6Copy full SHA for 9a1aff6
modules/textual_inversion/dataset.py
@@ -97,13 +97,13 @@ def shuffle(self):
97
98
def create_text(self, filename_text):
99
text = random.choice(self.lines)
100
- text = text.replace("[name]", self.placeholder_token)
101
tags = filename_text.split(',')
102
if shared.opts.tag_drop_out != 0:
103
tags = [t for t in tags if random.random() > shared.opts.tag_drop_out]
104
if shared.opts.shuffle_tags:
105
random.shuffle(tags)
106
text = text.replace("[filewords]", ','.join(tags))
+ text = text.replace("[name]", self.placeholder_token)
107
return text
108
109
def __len__(self):
0 commit comments