mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Put clip vision outputs on the CPU.
This commit is contained in:
parent
a094b45c93
commit
4e89b2c25a
@ -50,6 +50,11 @@ class ClipVisionModel():
|
|||||||
|
|
||||||
with precision_scope(comfy.model_management.get_autocast_device(self.load_device), torch.float32):
|
with precision_scope(comfy.model_management.get_autocast_device(self.load_device), torch.float32):
|
||||||
outputs = self.model(pixel_values=pixel_values)
|
outputs = self.model(pixel_values=pixel_values)
|
||||||
|
|
||||||
|
for k in outputs:
|
||||||
|
t = outputs[k]
|
||||||
|
if t is not None:
|
||||||
|
outputs[k] = t.cpu()
|
||||||
return outputs
|
return outputs
|
||||||
|
|
||||||
def convert_to_transformers(sd, prefix):
|
def convert_to_transformers(sd, prefix):
|
||||||
|
Loading…
Reference in New Issue
Block a user