Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,11 +107,11 @@ refiner_model_path: str = "stabilityai/stable-diffusion-xl-refiner-1.0"
|
|
107 |
unet_path: str = "cosmicman/CosmicMan-SDXL"
|
108 |
SCHEDULER = schedule_map[schedule]
|
109 |
scheduler = SCHEDULER.from_pretrained(base_model_path, subfolder="scheduler", torch_dtype=torch.float16)
|
110 |
-
|
111 |
|
112 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
113 |
base_model_path,
|
114 |
-
|
115 |
scheduler=scheduler,
|
116 |
torch_dtype=torch.float16,
|
117 |
use_safetensors=True
|
|
|
107 |
unet_path: str = "cosmicman/CosmicMan-SDXL"
|
108 |
SCHEDULER = schedule_map[schedule]
|
109 |
scheduler = SCHEDULER.from_pretrained(base_model_path, subfolder="scheduler", torch_dtype=torch.float16)
|
110 |
+
unet = UNet2DConditionModel.from_pretrained(unet_path, torch_dtype=torch.float16)
|
111 |
|
112 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
113 |
base_model_path,
|
114 |
+
unet=unet,
|
115 |
scheduler=scheduler,
|
116 |
torch_dtype=torch.float16,
|
117 |
use_safetensors=True
|