When I try image2image with ready-made Core ML models, it throws the following error.
StableDiffusion/Encoder.swift:96: Fatal error: Unexpectedly found nil while unwrapping an Optional value
You can reproduce this issue with the following steps:
- Download coreml-stable-diffusion-2-base.
- Create a 512x512 input image.
swift run StableDiffusionSample --resource-path <resource dir> --image <input image> "test"
It doesn’t reproduce when I reconvert the model using the latest version of torch2coreml.
I also confirmed that it doesn’t reproduce when I revert the changes in 1147e87
When I try image2image with ready-made Core ML models, it throws the following error.
You can reproduce this issue with the following steps:
swift run StableDiffusionSample --resource-path <resource dir> --image <input image> "test"It doesn’t reproduce when I reconvert the model using the latest version of torch2coreml.
I also confirmed that it doesn’t reproduce when I revert the changes in 1147e87