Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,10 +104,10 @@ print("Loading Model!")
|
|
104 |
schedule: str = "euler_a"
|
105 |
base_model_path: str = "stabilityai/stable-diffusion-xl-base-1.0"
|
106 |
refiner_model_path: str = "stabilityai/stable-diffusion-xl-refiner-1.0"
|
107 |
-
|
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,
|
|
|
104 |
schedule: str = "euler_a"
|
105 |
base_model_path: str = "stabilityai/stable-diffusion-xl-base-1.0"
|
106 |
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 |
+
# unet = UNet2DConditionModel.from_pretrained(unet_path, torch_dtype=torch.float16)
|
111 |
|
112 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
113 |
base_model_path,
|