Spaces:
Running
on
Zero
Running
on
Zero
ResearcherXman
commited on
Commit
•
8f1f9e1
1
Parent(s):
0ba2339
fix bug
Browse files
pipeline_stable_diffusion_xl_instantid.py
CHANGED
@@ -42,15 +42,7 @@ from diffusers.utils.import_utils import is_xformers_available
|
|
42 |
from ip_adapter.resampler import Resampler
|
43 |
from ip_adapter.utils import is_torch2_available
|
44 |
|
45 |
-
|
46 |
-
from ip_adapter.attention_processor import (
|
47 |
-
AttnProcessor2_0 as AttnProcessor,
|
48 |
-
)
|
49 |
-
from ip_adapter.attention_processor import (
|
50 |
-
IPAttnProcessor2_0 as IPAttnProcessor,
|
51 |
-
)
|
52 |
-
else:
|
53 |
-
from ip_adapter.attention_processor import AttnProcessor, IPAttnProcessor
|
54 |
from ip_adapter.attention_processor import region_control
|
55 |
|
56 |
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
|
|
|
42 |
from ip_adapter.resampler import Resampler
|
43 |
from ip_adapter.utils import is_torch2_available
|
44 |
|
45 |
+
from ip_adapter.attention_processor import AttnProcessor, IPAttnProcessor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
from ip_adapter.attention_processor import region_control
|
47 |
|
48 |
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
|