aboutsummaryrefslogtreecommitdiff
path: root/modules/sd_hijack_unet.py
AgeCommit message (Collapse)Author
2023-01-28Refactor conditional casting, fix upscalersbrkirch
2023-01-25fix for unet hijack breaking the train tabAUTOMATIC
2023-01-25Add option for float32 sampling with float16 UNetbrkirch
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().
2022-12-14Fix various typosJim Hays
2022-12-10do not replace entire unet for the resolution hackAUTOMATIC