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

'OVStableDiffusionPipeline' object has no attribute 'image_processor' #422

Closed
IlyasMoutawwakil opened this issue Sep 6, 2023 · 2 comments

Comments

@IlyasMoutawwakil
Copy link
Member

Using main branches of optimum and optimum-intel.

A test started to fail in optimum-benchmark. I tested a minimal script and it also fails:

from optimum.intel.openvino import OVStableDiffusionPipeline
model = "hf-internal-testing/tiny-stable-diffusion-torch" # or a runway model

pipe = OVStableDiffusionPipeline.from_pretrained(model, device="CPU", export=True)
pipe(prompt="prompt", num_inference_steps=1)

The error is AttributeError: 'OVStableDiffusionPipeline' object has no attribute 'image_processor'

The problem comes from the new VaeImageProcessor which was added in optimum but only for ORTStableDiffusionPipelineBase
StableDiffusionPipelineMixin that's used by OVStableDiffusionPipeline supposes its existence without instantiating it.
Should it be added in each sub-package ?

@IlyasMoutawwakil
Copy link
Member Author

I just noticed the PR #421, great work!

@echarlaix
Copy link
Collaborator

Yes we will merge #421 after the next optimum release !

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