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

Build failed #70

Open
ChrisFasching opened this issue Jul 30, 2023 · 6 comments
Open

Build failed #70

ChrisFasching opened this issue Jul 30, 2023 · 6 comments

Comments

@ChrisFasching
Copy link

ChrisFasching commented Jul 30, 2023

swift-coreml-diffusers-main/Diffusion/Common/ModelInfo.swift:190:12

Cannot convert value of type '()' to expected condition type 'Bool'

Screenshot 2023-07-30 at 17 05 08
@ghost
Copy link

ghost commented Jul 30, 2023

You can fix this by using Xcode 15 beta.
Or a simple fix for this issue is here: #66

@ghost
Copy link

ghost commented Jul 30, 2023

Try again please, 66 has been merged in.

@beezbo
Copy link

beezbo commented Jul 31, 2023

Do I need to install macOS 14 to be able to compile? I got the error reported above with the update #66 (screenshot for verification of implemented fix)

image

@ghost
Copy link

ghost commented Jul 31, 2023

In the screen shot you do not display an error. There is a new feature which requires macOS 14 which is palletised models/quantisation. If you are not running on macOS 14 it the code will return false and not allow you to run/select quantised models at runtime.
If you are still getting compile errors my guess would be new language model code added in the stable diffusion package which require Xcode beta 15 to build, but I don't see that in your report.

@beezbo
Copy link

beezbo commented Jul 31, 2023

In the screen shot you do not display an error. There is a new feature which requires macOS 14 which is palletised models/quantisation. If you are not running on macOS 14 it the code will return false and not allow you to run/select quantised models at runtime. If you are still getting compile errors my guess would be new language model code added in the stable diffusion package which require Xcode beta 15 to build, but I don't see that in your report.

Sorry, rephrased my comment to clarify that the screenshot was my check to see if the fix was implemented. It didn't fix the issue for me and I had to install Xcode 15 beta for it to compile. The comment above mine also confirms the issue.

@ghost
Copy link

ghost commented Jul 31, 2023

Can you try explicitly declaring the type?
DiffusionApp.swift line 23
let deviceSupportsQuantization: Bool = {

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

No branches or pull requests

2 participants