8 Commits (beb7dda5d6d5baa1570721fd7ca18e236fa02521)

Author SHA1 Message Date
FNSpd beb7dda5d6
Update sd_hijack_unet.py 3 years ago
FNSpd 91cfa9718c
Update sd_hijack_unet.py 3 years ago
brkirch 2016733814 Apply hijacks in ddpm_edit for upcast sampling
To avoid import errors, ddpm_edit hijacks are done after an instruct pix2pix model is loaded.
3 years ago
brkirch ada17dbd7c Refactor conditional casting, fix upscalers 3 years ago
AUTOMATIC 15e89ef0f6 fix for unet hijack breaking the train tab 3 years ago
brkirch 84d9ce30cb Add option for float32 sampling with float16 UNet
This also handles type casting so that ROCm and MPS torch devices work correctly without --no-half. One cast is required for deepbooru in deepbooru_model.py, some explicit casting is required for img2img and inpainting. depth_model can't be converted to float16 or it won't work correctly on some systems (it's known to have issues on MPS) so in sd_models.py model.depth_model is removed for model.half().
3 years ago
Jim Hays c0355caefe Fix various typos 3 years ago
AUTOMATIC 7dbfd8a7d8 do not replace entire unet for the resolution hack 3 years ago