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

Detect model type automatically #209

Merged

Conversation

vzsg
Copy link
Contributor

@vzsg vzsg commented Mar 29, 2023

I had a flash of inspiration yesterday, and found a way to distinguish original/split-einsum models without introducing custom JSONs or anything extra into/around the models.

This renders the unit selection popover unnecessary too, so I dropped that and introduced a new setting as the "compute unit preference", replacing the previous, directly set MLComputeUnits. The default for everyone is Auto, but advanced users can force a specific unit in Settings/Image as before. Help labels are updated to match.

Fixes #193 and #170 (since the offending popover and race condition is gone).

(And I found a fun race condition when selecting a new model and pressing Generate twice causing two images to be rendered at the same time, but there's no open issue for it.)

@godly-devotion
Copy link
Collaborator

Very nice! I'll pull the changes and take a look today or tomorrow.

@godly-devotion godly-devotion merged commit 01099f0 into MochiDiffusion:main Mar 30, 2023
@vzsg vzsg deleted the feat/model-type-autodetection branch March 30, 2023 20:59
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.

Subfolder in folder model causes CTD
2 participants