Update StableDiffusionControlNetPipeline to StableDiffusion3ControlNetPipeline
Browse files- streamlit_app.py +2 -2
streamlit_app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from PIL import Image
|
| 3 |
import torch
|
| 4 |
-
from diffusers import
|
| 5 |
from controlnet_aux import HEDdetector
|
| 6 |
|
| 7 |
app_controlnet_path = "SaitoHoujou/Finetuned-ControlNet_for_Diffusion-Model"
|
|
@@ -55,7 +55,7 @@ def load_pipeline():
|
|
| 55 |
torch_dtype=app_dtype
|
| 56 |
)
|
| 57 |
|
| 58 |
-
pipe =
|
| 59 |
app_base_model,
|
| 60 |
controlnet=controlnet,
|
| 61 |
torch_dtype=app_dtype,
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from PIL import Image
|
| 3 |
import torch
|
| 4 |
+
from diffusers import StableDiffusion3ControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
|
| 5 |
from controlnet_aux import HEDdetector
|
| 6 |
|
| 7 |
app_controlnet_path = "SaitoHoujou/Finetuned-ControlNet_for_Diffusion-Model"
|
|
|
|
| 55 |
torch_dtype=app_dtype
|
| 56 |
)
|
| 57 |
|
| 58 |
+
pipe = StableDiffusion3ControlNetPipeline.from_pretrained(
|
| 59 |
app_base_model,
|
| 60 |
controlnet=controlnet,
|
| 61 |
torch_dtype=app_dtype,
|