Spaces:
Runtime error
Runtime error
dataautogpt3/ProteusV0.4-Lightning
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from diffusers.utils import load_image
|
|
10 |
import math
|
11 |
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
-
pipe = AutoPipelineForImage2Image.from_pretrained("
|
14 |
pipe = pipe.to(device)
|
15 |
|
16 |
def resize(value,img):
|
|
|
10 |
import math
|
11 |
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
+
pipe = AutoPipelineForImage2Image.from_pretrained("dataautogpt3/ProteusV0.4-Lightning", torch_dtype=torch.float16) if torch.cuda.is_available() else AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo")
|
14 |
pipe = pipe.to(device)
|
15 |
|
16 |
def resize(value,img):
|