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

deepcache compatiable for hf diffusres 0.26 #636

Closed
strint opened this issue Feb 7, 2024 · 1 comment · Fixed by #641
Closed

deepcache compatiable for hf diffusres 0.26 #636

strint opened this issue Feb 7, 2024 · 1 comment · Fixed by #641
Assignees
Labels
Request-bug Something isn't working sig-optimzation-alg
Milestone

Comments

@strint
Copy link
Collaborator

strint commented Feb 7, 2024

Describe the bug

A clear and concise description of what the bug is.

WARNING [2024-02-07 05:[15](https://github.com/siliconflow/onediff/actions/runs/7810062569/job/21302887535?pr=634#step:29:16):45] manager.py:96 - Pydantic version 1.10.12 is too low, please upgrade to 2.5.2 or higher.
Traceback (most recent call last):
  File "/src/onediff/examples/text_to_image_deep_cache_sdxl_enterprise.py", line 64, in <module>
    from onediffx.deep_cache import StableDiffusionXLPipeline
  File "/src/onediff/onediff_diffusers_extensions/onediffx/deep_cache/__init__.py", line 3, in <module>
    from .pipeline_stable_diffusion_xl import StableDiffusionXLPipeline
  File "/src/onediff/onediff_diffusers_extensions/onediffx/deep_cache/pipeline_stable_diffusion_xl.py", line 53, in <module>
    from .models.unet_2d_condition import UNet2DConditionModel
  File "/src/onediff/onediff_diffusers_extensions/onediffx/deep_cache/models/unet_2d_condition.py", line 32, in <module>
    from diffusers.models.embeddings import (
ImportError: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (/usr/local/lib/python3.10/dist-packages/diffusers/models/embeddings.py)

PositionNet is renamed in diffusers 0.26:
huggingface/diffusers#6244

Your environment

OS

OneDiff git commit id

4da2270

OneFlow version info

Run python -m oneflow --doctor and paste it here.

How To Reproduce

Steps to reproduce the behavior(code or script):

python3 examples/text_to_image_deep_cache_sdxl_enterprise.py --model /share_nfs/stable-diffusion-xl-base-1.0-int8-deep-cache --width 512 --height 512 --saved_image output_enterprise_deepcache_sdxl.png

The complete error message

Additional context

Add any other context about the problem here.

@strint strint added the Request-bug Something isn't working label Feb 7, 2024
@strint strint self-assigned this Feb 7, 2024
@strint strint added this to the v0.12.1 milestone Feb 7, 2024
@strint
Copy link
Collaborator Author

strint commented Feb 7, 2024

cc @clackhan @isidentical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request-bug Something isn't working sig-optimzation-alg
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant