Spaces:
Paused
Paused
Fabrice-TIERCELIN
commited on
Commit
•
36a8419
1
Parent(s):
ab7c8b2
1024 * 1024
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
15 |
floatType = torch.float16 if torch.cuda.is_available() else torch.float32
|
16 |
variant = "fp16" if torch.cuda.is_available() else None
|
17 |
|
18 |
-
pipe = AutoPipelineForImage2Image.from_pretrained("
|
19 |
pipe = pipe.to(device)
|
20 |
|
21 |
def update_seed(is_randomize_seed, seed):
|
@@ -133,6 +133,12 @@ def redraw(
|
|
133 |
process_width = process_width - (process_width % 8)
|
134 |
process_height = process_height - (process_height % 8)
|
135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
progress(None, desc = "Processing...")
|
137 |
output_image = pipe(
|
138 |
seeds = [seed],
|
|
|
15 |
floatType = torch.float16 if torch.cuda.is_available() else torch.float32
|
16 |
variant = "fp16" if torch.cuda.is_available() else None
|
17 |
|
18 |
+
pipe = AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype = floatType, variant = variant)
|
19 |
pipe = pipe.to(device)
|
20 |
|
21 |
def update_seed(is_randomize_seed, seed):
|
|
|
133 |
process_width = process_width - (process_width % 8)
|
134 |
process_height = process_height - (process_height % 8)
|
135 |
|
136 |
+
process_width = 1024
|
137 |
+
process_height = 1024
|
138 |
+
|
139 |
+
output_width = 1024
|
140 |
+
output_height = 1024
|
141 |
+
|
142 |
progress(None, desc = "Processing...")
|
143 |
output_image = pipe(
|
144 |
seeds = [seed],
|