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

RuntimeError: bad allocation in stable_diffusion_engine.py #132

Open
gungwang opened this issue Mar 8, 2023 · 2 comments
Open

RuntimeError: bad allocation in stable_diffusion_engine.py #132

gungwang opened this issue Mar 8, 2023 · 2 comments

Comments

@gungwang
Copy link

gungwang commented Mar 8, 2023

$ python demo.py --prompt "Street-art painting of Emilia Clarke in style of Banksy, photorealism"
Traceback (most recent call last):
File "I:\ai\stable_diffusion.openvino\demo.py", line 83, in
main(args)
File "I:\ai\stable_diffusion.openvino\demo.py", line 35, in main
engine = StableDiffusionEngine(
File "I:\ai\stable_diffusion.openvino\stable_diffusion_engine.py", line 41, in init
self.unet = self.core.compile_model(self._unet, device)
File "I:\AI\Python390\lib\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: bad allocation

@brmarkus
Copy link

Can you provide more details about your environment (HW and SW), please?
How have you set-up and installed the environment? Which versions have you installed?

@oscarnevarezleal
Copy link

Yeah, it happened to me as well only with device = CPU, doesn;t happen with device = GPU
11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz 3.30 GHz, IrisXe

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