mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-08 16:22:38 +08:00
Fix sampling issue with fp16 intermediates.
This commit is contained in:
parent
a11f68dd3b
commit
7169a2150d
@ -1028,6 +1028,7 @@ class CFGGuider:
|
|||||||
denoise_mask, _ = comfy.utils.pack_latents(denoise_masks)
|
denoise_mask, _ = comfy.utils.pack_latents(denoise_masks)
|
||||||
else:
|
else:
|
||||||
denoise_mask = denoise_masks[0]
|
denoise_mask = denoise_masks[0]
|
||||||
|
denoise_mask = denoise_mask.float()
|
||||||
|
|
||||||
self.conds = {}
|
self.conds = {}
|
||||||
for k in self.original_conds:
|
for k in self.original_conds:
|
||||||
@ -1048,7 +1049,7 @@ class CFGGuider:
|
|||||||
self,
|
self,
|
||||||
comfy.patcher_extension.get_all_wrappers(comfy.patcher_extension.WrappersMP.OUTER_SAMPLE, self.model_options, is_model_options=True)
|
comfy.patcher_extension.get_all_wrappers(comfy.patcher_extension.WrappersMP.OUTER_SAMPLE, self.model_options, is_model_options=True)
|
||||||
)
|
)
|
||||||
output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
|
output = executor.execute(noise.float(), latent_image.float(), sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
|
||||||
finally:
|
finally:
|
||||||
cast_to_load_options(self.model_options, device=self.model_patcher.offload_device)
|
cast_to_load_options(self.model_options, device=self.model_patcher.offload_device)
|
||||||
self.model_options = orig_model_options
|
self.model_options = orig_model_options
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user