ml-stable-diffusion icon indicating copy to clipboard operation
ml-stable-diffusion copied to clipboard

result not as expected

Open lamfan opened this issue 1 year ago • 6 comments

swift cli: swift run StableDiffusionSample "a photo of an astronaut riding a horse on mars" --resource-path <output-mlpackages-directory>/Resources/ --seed 93 --output-path </path/to/output/image>

model: https://huggingface.co/apple/coreml-stable-diffusion-1-4-palettized/blob/main/coreml-stable-diffusion-1-4-palettized_original_compiled.zip

the result is a picture with lot of small face (around 10x12 small square), not as a man riding a horse, why?

I clone this repo and conda to setup a correct env, what do I miss? please help, thanks!

macOS Sonoma 14.0

a_photo_of_an_astronaut_riding_a_horse_on_mars 93 final

lamfan avatar Oct 18 '23 01:10 lamfan

I think it's possible that you are using Intel CPU.

czkoko avatar Oct 18 '23 08:10 czkoko

yes, is that possible to run on Intel CPU?

lamfan avatar Oct 18 '23 08:10 lamfan

Adding this parameter should generate a normal picture, but it is quite slow. You can try it. --compute-units cpuOnly

czkoko avatar Oct 18 '23 09:10 czkoko

Adding this parameter should generate a normal picture, but it is quite slow. You can try it. --compute-units cpuOnly

Thank you so much @czkoko

It take around 60x times to complete the image.

a_photo_of_an_astronaut_riding_a_horse_on_mars 93 final

lamfan avatar Oct 18 '23 09:10 lamfan

Intel cpu can use diffusionBee app

czkoko avatar Oct 18 '23 10:10 czkoko

Intel cpu can use diffusionBee app

Thanks, will try to use it!

lamfan avatar Oct 19 '23 01:10 lamfan