make results more consistent to A1111

This commit is contained in:
layerdiffusion
2024-08-08 01:53:03 -07:00
parent e396307e9d
commit a05a06b337
3 changed files with 8 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ class T5TextProcessingEngine:
return tokenized
def encode_with_transformers(self, tokens):
device = memory_management.get_torch_device()
device = memory_management.text_encoder_device()
tokens = tokens.to(device)
self.text_encoder.shared.to(device=device, dtype=torch.float32)