Skip to content

Commit

Permalink
#5
Browse files Browse the repository at this point in the history
  • Loading branch information
hako-mikan authored Feb 7, 2024
1 parent 4898480 commit e24c79f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trainer/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def encode_image_text(t):
prompt = t.lora_trigger_word + ", " + caption
else:
prompt = t.lora_trigger_word
t.tagcount(prompt)
if "BASE" not in t.network_blocks:
emb1, emb2 = (emp1, emp2) if prompt is None else t.text_model.encode_text(prompt)
else:
Expand Down

0 comments on commit e24c79f

Please sign in to comment.