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

Currently Main branch image 2 image crashed #185

Closed
jiangdi0924 opened this issue May 18, 2023 · 6 comments
Closed

Currently Main branch image 2 image crashed #185

jiangdi0924 opened this issue May 18, 2023 · 6 comments

Comments

@jiangdi0924
Copy link
Contributor

StableDiffusion/Encoder.swift:96: Fatal error: Unexpectedly found nil while unwrapping an Optional value
2023-05-18 10:33:47.758459+0800 Joyfusion[44725:2780215] StableDiffusion/Encoder.swift:96: Fatal error: Unexpectedly found nil while unwrapping an Optional value
image

@jiangdi0924
Copy link
Contributor Author

jiangdi0924 commented May 18, 2023

I have verified several times that there is indeed this problem. version 0.3.0 is fine

@OlegPonomaryov
Copy link
Contributor

Could you please check your encoder's *.mlpackage and confirm that it actually has an input named z like in this example?
Screenshot 2023-05-18 at 10 39 44

@jiangdi0924
Copy link
Contributor Author

image @OlegPonomaryov My model file was created earlier. I'm wondering if that could be the reason why I haven't seen the results as shown in the provided image. I would like to know if recompiling the model is the only way to make it work. Thank you very much for your response.

@OlegPonomaryov
Copy link
Contributor

Definitely the issue is with the encoder's version, however I'm not that familiar with the problem and don't know if incompatibility goes beyond the input naming. Looks like #177 contains conversion instructions, so I'd start from there.

@jrittvo
Copy link

jrittvo commented May 18, 2023

Can either of you please tell me what app you are using in the screen caps above to display the model information? TIA.

@OlegPonomaryov
Copy link
Contributor

@jrittvo You just need to open *.mlpackage file in Xcode.

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

3 participants