Spaces:
Running
on
Zero
Running
on
Zero
.cuda()
Browse files- scripts/process_utils.py +1 -0
scripts/process_utils.py
CHANGED
@@ -222,6 +222,7 @@ def generate_sotai_image(input_image: Image.Image, output_width: int, output_hei
|
|
222 |
# EasyNegativeV2の内容
|
223 |
easy_negative_v2 = "(worst quality, low quality, normal quality:1.4), lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry, artist name, (bad_prompt_version2:0.8)"
|
224 |
print(f"\ndevice: {sotai_gen_pipe.device}\n")
|
|
|
225 |
output = sotai_gen_pipe(
|
226 |
prompt,
|
227 |
image=[input_image, input_image],
|
|
|
222 |
# EasyNegativeV2の内容
|
223 |
easy_negative_v2 = "(worst quality, low quality, normal quality:1.4), lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry, artist name, (bad_prompt_version2:0.8)"
|
224 |
print(f"\ndevice: {sotai_gen_pipe.device}\n")
|
225 |
+
sotai_gen_pipe = sotai_gen_pipe.cuda()
|
226 |
output = sotai_gen_pipe(
|
227 |
prompt,
|
228 |
image=[input_image, input_image],
|