Spaces:
Runtime error
Runtime error
To device as default
Browse files
app.py
CHANGED
@@ -46,7 +46,8 @@ def main():
|
|
46 |
return pipe.to(device)
|
47 |
|
48 |
pipes = {
|
49 |
-
"DreamShaper": make_pipe("Lykon/DreamShaper",
|
|
|
50 |
# "Realistic Vision V1.4": make_pipe("SG161222/Realistic_Vision_V1.4", "cpu"),
|
51 |
# "OpenJourney": make_pipe("prompthero/openjourney", "cpu"),
|
52 |
# "Anything V3": make_pipe("Linaqruf/anything-v3.0", "cpu"),
|
@@ -76,7 +77,8 @@ def main():
|
|
76 |
) -> PilImage:
|
77 |
generator = torch.Generator(device).manual_seed(seed)
|
78 |
if model == "DreamShaper":
|
79 |
-
pipe =
|
|
|
80 |
# elif model == "Realistic Vision V1.4":
|
81 |
# pipe = move_pipe("Realistic Vision V1.4")
|
82 |
# elif model == "OpenJourney":
|
|
|
46 |
return pipe.to(device)
|
47 |
|
48 |
pipes = {
|
49 |
+
"DreamShaper": make_pipe("Lykon/DreamShaper", device),
|
50 |
+
# "DreamShaper": make_pipe("Lykon/DreamShaper", "cpu"),
|
51 |
# "Realistic Vision V1.4": make_pipe("SG161222/Realistic_Vision_V1.4", "cpu"),
|
52 |
# "OpenJourney": make_pipe("prompthero/openjourney", "cpu"),
|
53 |
# "Anything V3": make_pipe("Linaqruf/anything-v3.0", "cpu"),
|
|
|
77 |
) -> PilImage:
|
78 |
generator = torch.Generator(device).manual_seed(seed)
|
79 |
if model == "DreamShaper":
|
80 |
+
pipe = pipes["DreamShaper"]
|
81 |
+
# pipe = move_pipe("DreamShaper Vision V1.4")
|
82 |
# elif model == "Realistic Vision V1.4":
|
83 |
# pipe = move_pipe("Realistic Vision V1.4")
|
84 |
# elif model == "OpenJourney":
|