pkuliyi2015 / multidiffusion-upscaler-for-automatic1111

Tiled Diffusion and VAE optimize, licensed under CC BY-NC-SA 4.0
Other
4.59k stars 330 forks source link

Fix dtype mismatch #359

Closed KohakuBlueleaf closed 4 months ago

KohakuBlueleaf commented 4 months ago

When medvram or lowvram is enabled. Tiled VAE will cause dtype mismatch since it only hook the main part of VAE but ignore the final projection layers.

I add a mechanism to convert the output dtype to match weight dtype to avoid below error:

RuntimeError: Input type (float) and bias type (struct c10::Half) should be the same