Skip to content

Commit

Permalink
prevent unintended cast for disk cached TE outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
kohya-ss committed Oct 27, 2024
1 parent a1255d6 commit d4f7849
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,6 @@ def __getitem__(self, index):
text_encoder_outputs = self.text_encoder_output_caching_strategy.load_outputs_npz(
image_info.text_encoder_outputs_npz
)
text_encoder_outputs = [torch.FloatTensor(x) for x in text_encoder_outputs]
else:
tokenization_required = True
text_encoder_outputs_list.append(text_encoder_outputs)
Expand Down

0 comments on commit d4f7849

Please sign in to comment.