Spaces:
Running
Running
zhiweili
commited on
Commit
·
5869b35
1
Parent(s):
f3f3219
add multi contronet
Browse files
app_haircolor_inpaint_15.py
CHANGED
@@ -11,6 +11,7 @@ from segment_utils import(
|
|
11 |
)
|
12 |
from diffusers import (
|
13 |
StableDiffusionControlNetInpaintPipeline,
|
|
|
14 |
ControlNetModel,
|
15 |
DDIMScheduler,
|
16 |
)
|
@@ -41,7 +42,7 @@ controlnet = [
|
|
41 |
),
|
42 |
]
|
43 |
|
44 |
-
basepipeline =
|
45 |
BASE_MODEL,
|
46 |
torch_dtype=torch.float16,
|
47 |
use_safetensors=True,
|
|
|
11 |
)
|
12 |
from diffusers import (
|
13 |
StableDiffusionControlNetInpaintPipeline,
|
14 |
+
StableDiffusionXLControlNetInpaintPipeline,
|
15 |
ControlNetModel,
|
16 |
DDIMScheduler,
|
17 |
)
|
|
|
42 |
),
|
43 |
]
|
44 |
|
45 |
+
basepipeline = StableDiffusionXLControlNetInpaintPipeline.from_pretrained(
|
46 |
BASE_MODEL,
|
47 |
torch_dtype=torch.float16,
|
48 |
use_safetensors=True,
|