Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -186,9 +186,9 @@ class StableDiffusionPipeline:
|
|
| 186 |
return image, image_vae
|
| 187 |
|
| 188 |
# Load models (adjust the paths to your model directories)
|
| 189 |
-
vae = AutoencoderKL.from_pretrained("Yesianrohn/TextSSR
|
| 190 |
-
unet = UNet2DConditionModel.from_pretrained("Yesianrohn/TextSSR
|
| 191 |
-
noise_scheduler = DDPMScheduler.from_pretrained("Yesianrohn/TextSSR
|
| 192 |
|
| 193 |
# Create pipeline
|
| 194 |
pipe = StableDiffusionPipeline(vae=vae, unet=unet, scheduler=noise_scheduler, device=device)
|
|
|
|
| 186 |
return image, image_vae
|
| 187 |
|
| 188 |
# Load models (adjust the paths to your model directories)
|
| 189 |
+
vae = AutoencoderKL.from_pretrained("Yesianrohn/TextSSR", subfolder="vae")
|
| 190 |
+
unet = UNet2DConditionModel.from_pretrained("Yesianrohn/TextSSR", subfolder="unet")
|
| 191 |
+
noise_scheduler = DDPMScheduler.from_pretrained("Yesianrohn/TextSSR", subfolder="scheduler")
|
| 192 |
|
| 193 |
# Create pipeline
|
| 194 |
pipe = StableDiffusionPipeline(vae=vae, unet=unet, scheduler=noise_scheduler, device=device)
|