mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-28 02:33:57 +00:00
make results more consistent to A1111
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user