Spaces:
Runtime error
Runtime error
Update PhotoMaker V2 gradio demo
Browse files- app.py +1 -1
- pipeline_t2i_adapter.py +1 -1
app.py
CHANGED
@@ -12,7 +12,7 @@ from huggingface_hub import hf_hub_download
|
|
12 |
import spaces
|
13 |
import gradio as gr
|
14 |
|
15 |
-
from
|
16 |
from face_utils import FaceAnalysis2, analyze_faces
|
17 |
|
18 |
from style_template import styles
|
|
|
12 |
import spaces
|
13 |
import gradio as gr
|
14 |
|
15 |
+
from pipeline_t2i_adapter import PhotoMakerStableDiffusionXLAdapterPipeline
|
16 |
from face_utils import FaceAnalysis2, analyze_faces
|
17 |
|
18 |
from style_template import styles
|
pipeline_t2i_adapter.py
CHANGED
@@ -64,7 +64,7 @@ from diffusers.utils import _get_model_file
|
|
64 |
from safetensors import safe_open
|
65 |
from huggingface_hub.utils import validate_hf_hub_args
|
66 |
|
67 |
-
from model_v2 import PhotoMakerIDEncoder_CLIPInsightfaceExtendtoken
|
68 |
|
69 |
|
70 |
# Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.rescale_noise_cfg
|
|
|
64 |
from safetensors import safe_open
|
65 |
from huggingface_hub.utils import validate_hf_hub_args
|
66 |
|
67 |
+
from module.model_v2 import PhotoMakerIDEncoder_CLIPInsightfaceExtendtoken
|
68 |
|
69 |
|
70 |
# Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.rescale_noise_cfg
|