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

Can't specify --image xx (image2image) #209

Open
ToddCool opened this issue Jul 12, 2023 · 1 comment
Open

Can't specify --image xx (image2image) #209

ToddCool opened this issue Jul 12, 2023 · 1 comment

Comments

@ToddCool
Copy link

Does the current ml-stable-diffusion support image2image? I'm having the following error when trying to use it. Any help/comment is appreciated.

  1. ml-stable-diffusion version: the latest
  2. Prompt entered:
    swift run StableDiffusionSample --resource-path /Users/myUserName/ml-stable-diffusion/checkPoints/coreml-Deliberate/split-einsum/deliberate_v2_split-einsum --step-count 50 --compute-units cpuAndNeuralEngine --disable-safety --output-path ~/Downloads "A test description" --image-count 5 --image /Users/myUserName/Downloads/test\.png
  3. Output with error:
Build complete! (0.08s)
Loading resources and creating pipeline
(Note: This can take a while the first time using these resources)
Sampling ...
StableDiffusion/Encoder.swift:96: Fatal error: Unexpectedly found nil while unwrapping an Optional value
[1]    20995 trace trap  swift run StableDiffusionSample --resource-path  --step-count 50        5```
@ToddCool ToddCool changed the title Can't specify --image xx (image2image) Can't specify --image xx (image2image) Jul 12, 2023
@atiorh
Copy link
Collaborator

atiorh commented Jul 12, 2023

Hey @ToddCool, could you please confirm that you have VAEEncoder.mlmodelc in your --resource-path? If not, you will need to run --convert-vae-encoder to generate it during the PyTorch to Core ML conversion phase.

@atiorh atiorh mentioned this issue Aug 15, 2023
1 task
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