ResearcherXman
commited on
Commit
β’
977a8a5
1
Parent(s):
8f1f9e1
update
Browse files
pipeline_stable_diffusion_xl_instantid.py
CHANGED
@@ -22,6 +22,7 @@ import numpy as np
|
|
22 |
import PIL.Image
|
23 |
import torch
|
24 |
import torch.nn.functional as F
|
|
|
25 |
|
26 |
from diffusers.image_processor import PipelineImageInput
|
27 |
|
@@ -40,7 +41,6 @@ from diffusers.pipelines.controlnet.multicontrolnet import MultiControlNetModel
|
|
40 |
from diffusers.utils.import_utils import is_xformers_available
|
41 |
|
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
|
|
|
22 |
import PIL.Image
|
23 |
import torch
|
24 |
import torch.nn.functional as F
|
25 |
+
from transformers import CLIPTokenizer
|
26 |
|
27 |
from diffusers.image_processor import PipelineImageInput
|
28 |
|
|
|
41 |
from diffusers.utils.import_utils import is_xformers_available
|
42 |
|
43 |
from ip_adapter.resampler import Resampler
|
|
|
44 |
|
45 |
from ip_adapter.attention_processor import AttnProcessor, IPAttnProcessor
|
46 |
from ip_adapter.attention_processor import region_control
|