mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-02 23:14:49 +08:00
Fix OOMs happening in some cases.
A cloned model patcher sometimes reported a model was loaded on a device when it wasn't.
This commit is contained in:
@@ -274,7 +274,7 @@ class LoadedModel:
|
||||
return self.model.model_size()
|
||||
|
||||
def model_memory_required(self, device):
|
||||
if device == self.model.current_device:
|
||||
if device == self.model.current_loaded_device():
|
||||
return 0
|
||||
else:
|
||||
return self.model_memory()
|
||||
|
Reference in New Issue
Block a user