"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "cdb3c4931bdff39eff4aa863e0d9b3c6ceace047"
Unverified Commit a41850a2 authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

Improve deprecation error message when using cross_attention import (#2710)

Improve error message
parent a4b2c2f1
...@@ -32,7 +32,7 @@ from .attention_processor import ( # noqa: F401 ...@@ -32,7 +32,7 @@ from .attention_processor import ( # noqa: F401
deprecate( deprecate(
"cross_attention", "cross_attention",
"0.18.0", "0.18.0",
"Importing from cross_attention is deprecated. Please import from attention_processor instead.", "Importing from cross_attention is deprecated. Please import from diffusers.models.attention_processor instead.",
standard_warn=False, standard_warn=False,
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment