stable_diffusion.openvino
stable_diffusion.openvino copied to clipboard
"Could not find entry point" when trying to use GPU
Hello,
I am interested in using my ARC A750 GPU, but I am running into an error:
python demo.py --prompt "Street-art painting of Emilia Clarke in style of Banksy, photorealism"
Traceback (most recent call last):
File "/home/jeremy/stable_diffusion.openvino/demo.py", line 79, in <module>
main(args)
File "/home/jeremy/stable_diffusion.openvino/demo.py", line 34, in main
engine = StableDiffusionEngine(
File "/home/jeremy/stable_diffusion.openvino/stable_diffusion_engine.py", line 41, in __init__
self.unet = self.core.compile_model(self._unet, device)
File "/home/jeremy/.local/lib/python3.10/site-packages/openvino/runtime/ie_api.py", line 399, in compile_model
super().compile_model(model, device_name, {} if config is None else config),
RuntimeError: cldnn program build failed! Could not find entry point
A comment here implies the only change that needs to be made is to change "CPU" to "GPU" in stable_diffusion_engine.py (which is backed up by a commend in this issue here), but it seems like there is perhaps something more to it.
If I leave device="CPU" it runs fine (obviously using the CPU instead of the GPU).
Note: I removed the version numbers from numpy and opencv-python in requirements.txt due to an error I was getting during installation. I am not sure if that is relevant or not but I figured I'd mention it just in case.