mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-15 16:13:29 +00:00
remove history commit
remove history commit remove history commit
This commit is contained in:
parent
d1f61cca5e
commit
317af7201f
@ -93,7 +93,7 @@ try:
|
||||
except:
|
||||
npu_available = False
|
||||
|
||||
if args.cpu or args.openvino:
|
||||
if args.cpu:
|
||||
cpu_state = CPUState.CPU
|
||||
|
||||
def is_intel_xpu():
|
||||
|
@ -470,7 +470,7 @@ class ModelPatcher:
|
||||
current_patches.append((strength_patch, patches[k], strength_model, offset, function))
|
||||
self.patches[key] = current_patches
|
||||
else:
|
||||
new_key=key.replace("diffusion_model","diffusion_model._orig_mod")
|
||||
new_key=key.replace("diffusion_model", "diffusion_model._orig_mod")
|
||||
if new_key in model_sd:
|
||||
p.add(k)
|
||||
if key in self.patches:
|
||||
|
@ -1,5 +1,4 @@
|
||||
from __future__ import annotations
|
||||
from comfy.cli_args import args
|
||||
import uuid
|
||||
import comfy.model_management
|
||||
import comfy.conds
|
||||
@ -115,6 +114,7 @@ def prepare_sampling(model: ModelPatcher, noise_shape, conds, model_options=None
|
||||
minimum_memory_required = model.memory_required([noise_shape[0]] + list(noise_shape[1:])) + inference_memory
|
||||
comfy.model_management.load_models_gpu([model] + models, memory_required=memory_required, minimum_memory_required=minimum_memory_required)
|
||||
real_model = model.model
|
||||
|
||||
return real_model, conds, models
|
||||
|
||||
def cleanup_models(conds, models):
|
||||
|
Loading…
Reference in New Issue
Block a user