Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
11 |
model_2x = "stabilityai/sd-x2-latent-upscaler"
|
12 |
model_4x = "stabilityai/stable-diffusion-x4-upscaler"
|
13 |
# Load the models
|
14 |
-
sd_2_0_2x =
|
15 |
sd_2_1_4x = StableDiffusionUpscalePipeline.from_pretrained(model_4x, torch_dtype=torch.float16, revision="fp16") if torch.cuda.is_available() else StableDiffusionUpscalePipeline.from_pretrained(model_4x)
|
16 |
|
17 |
# Define the function that will be called when the interface is used
|
|
|
11 |
model_2x = "stabilityai/sd-x2-latent-upscaler"
|
12 |
model_4x = "stabilityai/stable-diffusion-x4-upscaler"
|
13 |
# Load the models
|
14 |
+
sd_2_0_2x = StableDiffusionLatentUpscalePipeline.from_pretrained(model_2x, torch_dtype=torch.float16, revision="fp16") if torch.cuda.is_available() else StableDiffusionLatentUpscalePipeline.from_pretrained(model_2x)
|
15 |
sd_2_1_4x = StableDiffusionUpscalePipeline.from_pretrained(model_4x, torch_dtype=torch.float16, revision="fp16") if torch.cuda.is_available() else StableDiffusionUpscalePipeline.from_pretrained(model_4x)
|
16 |
|
17 |
# Define the function that will be called when the interface is used
|