Spaces:
Sleeping
Sleeping
Commit
·
3b6559c
1
Parent(s):
5407ff1
cpu
Browse files
__pycache__/pipeline_controlnet_sd_xl_raw.cpython-310.pyc
CHANGED
Binary files a/__pycache__/pipeline_controlnet_sd_xl_raw.cpython-310.pyc and b/__pycache__/pipeline_controlnet_sd_xl_raw.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -9,10 +9,10 @@ import traceback
|
|
9 |
# ========== 1. Load Models ==========
|
10 |
pipe = StableDiffusionXLControlNetRAWPipeline.from_pretrained(
|
11 |
"wencheng256/DiffusionRAW",
|
12 |
-
torch_dtype=torch.
|
13 |
)
|
14 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
15 |
-
pipe.enable_model_cpu_offload()
|
16 |
|
17 |
# ========== 2. Utility function: tensor -> PIL ==========
|
18 |
def tensor_to_pil(img_tensor: torch.Tensor) -> Image.Image:
|
|
|
9 |
# ========== 1. Load Models ==========
|
10 |
pipe = StableDiffusionXLControlNetRAWPipeline.from_pretrained(
|
11 |
"wencheng256/DiffusionRAW",
|
12 |
+
torch_dtype=torch.float32
|
13 |
)
|
14 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
15 |
+
# pipe.enable_model_cpu_offload()
|
16 |
|
17 |
# ========== 2. Utility function: tensor -> PIL ==========
|
18 |
def tensor_to_pil(img_tensor: torch.Tensor) -> Image.Image:
|