Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import modin.pandas as pd
|
|
11 |
model_2x = "stabilityai/sd-x2-latent-upscaler"
|
12 |
model_4x = "stabilityai/stable-diffusion-x4-upscaler"
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
-
upscaler2x = StableDiffusionLatentUpscalePipeline.from_pretrained(model_2x, torch_dtype=torch.float16
|
15 |
upscaler4x = 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 interface
|
|
|
11 |
model_2x = "stabilityai/sd-x2-latent-upscaler"
|
12 |
model_4x = "stabilityai/stable-diffusion-x4-upscaler"
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
+
upscaler2x = StableDiffusionLatentUpscalePipeline.from_pretrained(model_2x, torch_dtype=torch.float16) if torch.cuda.is_available() else StableDiffusionLatentUpscalePipeline.from_pretrained(model_2x)
|
15 |
upscaler4x = 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 interface
|