Could not import module 'T5EncoderModel'. Are this object's requirements defined correctly?

#7
by yxj1012 - opened

Then I met this error:
can anybody help me?

File "/data/ubuntu/.conda/envs/cosmos-drive-dreams/lib/python3.12/site-packages/diffusers/utils/import_utils.py", line 955, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.pipelines.cosmos.pipeline_cosmos2_text2image because of the following error (look up to see its traceback):
Could not import module 'T5EncoderModel'. Are this object's requirements defined correctly?

Does your venv have the transformers library installed? By right installing diffusers should automatically install transformers as a dependency.

Sign up or log in to comment