fix(freescale): cast to float32 for antialiased bicubic upsample (FP16 crash)

Fixes NotImplementedError: compute_index_ranges_weights not implemented for 'Half'
when running FreeScale on FP16/BF16 models.

Same pattern as the PixelRush float16 fix from v2.8.2.
This commit is contained in:
IrradiatedHaggis
2026-09-06 16:09:42 -07:00
parent f733d8023a
commit ffa92df228
+7 -3
View File
@@ -417,10 +417,14 @@ class FreeScaleNode(io.ComfyNode):
# 1. VAE decode → bicubic upscale → VAE encode
image = vae_decode(z)
orig_dtype = image.dtype
image_up = F.interpolate(
image, size=(res_h, res_w),
mode="bicubic", align_corners=False, antialias=True,
)
image.float(), # cast to float32
size=(res_h, res_w),
mode="bicubic",
align_corners=False,
antialias=True,
).to(orig_dtype) # restore original dtype
z_up = vae_encode(image_up)
# 2. Noise level at timestep K. The actual noising is performed