Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix support for half precision and --upcast-sampling on non-MPS devices, keep older web UI version support #178

Merged
merged 1 commit into from
Feb 18, 2023

Conversation

brkirch
Copy link
Contributor

@brkirch brkirch commented Feb 18, 2023

#143 was intended for CUDA, ROCm, and MPS rather than just MPS, but users reported issues such as #157 and #163 because they are using old versions of web UI that do not have cond_cast_unet. This PR removes the MPS checks, but uses getattr() to set cond_cast_unet and get the value for dtype_unet so that nothing should break if cond_cast_unet or dtype_unet are not defined in web UI.

This also adds a command line option, --no-half-controlnet, that allows users to force full precision for the ControlNet models even if web UI is using half precision for the Stable Diffusion models.

@Mikubill Mikubill merged commit 5b53034 into Mikubill:main Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants