Spaces:
Runtime error
Runtime error
Update SAK/pipelines/pipeline_stable_diffusion_xl_chatglm_256_ipadapter_FaceID.py
Browse files
SAK/pipelines/pipeline_stable_diffusion_xl_chatglm_256_ipadapter_FaceID.py
CHANGED
|
@@ -14,8 +14,8 @@
|
|
| 14 |
import sys
|
| 15 |
import os
|
| 16 |
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
| 17 |
-
from
|
| 18 |
-
from
|
| 19 |
import inspect
|
| 20 |
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
|
| 21 |
import torch
|
|
@@ -47,8 +47,8 @@ except:
|
|
| 47 |
from diffusers.pipelines.pipeline_utils import DiffusionPipeline
|
| 48 |
from diffusers.pipelines.stable_diffusion_xl import StableDiffusionXLPipelineOutput
|
| 49 |
|
| 50 |
-
from
|
| 51 |
-
from
|
| 52 |
|
| 53 |
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
|
| 54 |
|
|
|
|
| 14 |
import sys
|
| 15 |
import os
|
| 16 |
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
| 17 |
+
from SAK.models.modeling_chatglm import ChatGLMModel
|
| 18 |
+
from SAK.models.tokenization_chatglm import ChatGLMTokenizer
|
| 19 |
import inspect
|
| 20 |
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
|
| 21 |
import torch
|
|
|
|
| 47 |
from diffusers.pipelines.pipeline_utils import DiffusionPipeline
|
| 48 |
from diffusers.pipelines.stable_diffusion_xl import StableDiffusionXLPipelineOutput
|
| 49 |
|
| 50 |
+
from SAK.models.ipa_faceid_plus.ipa_faceid_plus import ProjPlusModel
|
| 51 |
+
from SAK.models.ipa_faceid_plus.attention_processor import IPAttnProcessor2_0 as IPAttnProcessor, AttnProcessor2_0 as AttnProcessor
|
| 52 |
|
| 53 |
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
|
| 54 |
|