Closed rupeshs closed 1 year ago
I'm also seeing this issue on my local machine (MPS).
@rupeshs Thanks for flagging. Looks like an issue with AutoPipeline when transformers
is not installed. Could you try pip install transformers
in your notebook and then run your code again?
This should be fixed here: #5036
@DN6 we cannot assume that transformers
is installed (it's on optional dependency). If it's not installed we should raise a nice error message
The same problem happens to me, even after installing transformers
@rubensmau we just did a patch release that should address the issue. Could you please upgrade your diffusers
version and try running your code again?
Hi @patrickvonplaten @DN6 Thanks for the swift response!
I just tried the latest patch version 0.21.1
The previous error is gone and now getting cannot import name 'DEFAULT_STAGE_C_TIMESTEPS' from 'diffusers.pipelines.wuerstchen'
pip install transformers
still required to resolve this error.
@rupeshs Could you please share a code snippet causing the error? I'm running the following snippet and not seeing the error.
import torch
from diffusers import AutoPipelineForText2Image
transformer
edit to "transformers" please. you will keep another 5mins who pass through this error
@DN6 Please check this colab https://colab.research.google.com/drive/1Brinkt40qpPn6RTrwSNxmU4yvni8tJsf?usp=sharing
Hi @rupeshs for that specific example that you shared, you will need to install transformers
. It is a required dependency for the Wuerstchen pipeline and it won't run without it.
As for this part
from diffusers.pipelines.wuerstchen import DEFAULT_STAGE_C_TIMESTEPS
I'll look into how we might be able to better enable accessing constants defined in pipelines with lazy import enabled.
Hi @DN6 , BTW I have integrated diffuser Würstchen workflow to DiffusionMagic https://github.com/rupeshs/diffusionmagic
I solved by use diffusers from github, because embed was not fixed in 0.21.2
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Describe the bug
Failed to import import
WuerstchenCombinedPipeline
fromdiffusers.pipelines.wuerstchen
, Tested on Google ColabReproduction
import torch from diffusers import AutoPipelineForText2Image
Logs
System Info
Diffuser : v0.21.0 only Environment: Google Colab, Python version: 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] pytorch : 2.0.1+cu118
Who can help?
No response