mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-04-09 23:57:00 +08:00
Update model_optimization_nodes.py
This commit is contained in:
parent
6a16be7f21
commit
9a15e22f5e
@ -210,6 +210,7 @@ class DiffusionModelLoaderKJ(BaseLoaderKJ):
|
||||
model = comfy.sd.load_diffusion_model(unet_path, model_options=model_options)
|
||||
if dtype := DTYPE_MAP.get(compute_dtype):
|
||||
model.set_model_compute_dtype(dtype)
|
||||
model.force_cast_weights = False
|
||||
self._patch_modules(patch_cublaslinear, sage_attention)
|
||||
|
||||
return (model,)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user