Update app.py
Browse files
app.py
CHANGED
|
@@ -14,6 +14,7 @@ weight_type = torch.float16
|
|
| 14 |
|
| 15 |
pipe = StableDiffusionPipeline.from_pretrained("IDKiro/sdxs-512-dreamshaper")
|
| 16 |
pipe.unet = PeftModel.from_pretrained(pipe.unet, "IDKiro/sdxs-512-dreamshaper-anime")
|
|
|
|
| 17 |
pipe.to(torch_device=device, torch_dtype=weight_type)
|
| 18 |
|
| 19 |
vae_tiny = AutoencoderTiny.from_pretrained(
|
|
|
|
| 14 |
|
| 15 |
pipe = StableDiffusionPipeline.from_pretrained("IDKiro/sdxs-512-dreamshaper")
|
| 16 |
pipe.unet = PeftModel.from_pretrained(pipe.unet, "IDKiro/sdxs-512-dreamshaper-anime")
|
| 17 |
+
pipe.unet.merge_and_unload()
|
| 18 |
pipe.to(torch_device=device, torch_dtype=weight_type)
|
| 19 |
|
| 20 |
vae_tiny = AutoencoderTiny.from_pretrained(
|