Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,13 @@ import torch
|
|
3 |
import numpy as np
|
4 |
import modin.pandas as pd
|
5 |
from PIL import Image
|
6 |
-
|
7 |
from diffusers.models import AutoencoderKL
|
8 |
-
from diffusers import StableDiffusionPipeline
|
9 |
|
10 |
model = "prompthero/openjourney-v4"
|
11 |
vae = AutoencoderKL.from_pretrained("stabilityai/sdxl-vae")
|
12 |
-
pipe =
|
13 |
|
14 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
15 |
#pipe = DiffusionPipeline.from_pretrained("prompthero/openjourney-v4", torch_dtype=torch.float16, safety_checker=None)
|
|
|
3 |
import numpy as np
|
4 |
import modin.pandas as pd
|
5 |
from PIL import Image
|
6 |
+
from diffusers import DiffusionPipeline
|
7 |
from diffusers.models import AutoencoderKL
|
8 |
+
#from diffusers import StableDiffusionPipeline
|
9 |
|
10 |
model = "prompthero/openjourney-v4"
|
11 |
vae = AutoencoderKL.from_pretrained("stabilityai/sdxl-vae")
|
12 |
+
pipe = DiffusionPipeline.from_pretrained(model, vae=vae, torch_dtype=torch.float16, safety_checker=None)
|
13 |
|
14 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
15 |
#pipe = DiffusionPipeline.from_pretrained("prompthero/openjourney-v4", torch_dtype=torch.float16, safety_checker=None)
|