Spaces:
Runtime error
Runtime error
with torch.autocast('cuda'):
Browse files- scripts/process_utils.py +2 -1
scripts/process_utils.py
CHANGED
@@ -312,7 +312,8 @@ def process_image(input_image, mode: str, weight1: float = 0.4, weight2: float =
|
|
312 |
sketch_image = create_rgba_image(sketch_binary, [0, 0, 255])
|
313 |
|
314 |
# 素体画像の生成
|
315 |
-
|
|
|
316 |
|
317 |
elif mode == "original":
|
318 |
sotai_image = generate_sotai_image(input_image, output_width, output_height)
|
|
|
312 |
sketch_image = create_rgba_image(sketch_binary, [0, 0, 255])
|
313 |
|
314 |
# 素体画像の生成
|
315 |
+
with torch.autocast('cuda'):
|
316 |
+
sotai_image = generate_sotai_image(refined_image, output_width, output_height)
|
317 |
|
318 |
elif mode == "original":
|
319 |
sotai_image = generate_sotai_image(input_image, output_width, output_height)
|