zhiweili
commited on
Commit
•
a9c1f71
1
Parent(s):
a3f4f47
save as png
Browse files- segment_utils.py +4 -4
segment_utils.py
CHANGED
@@ -25,10 +25,10 @@ def restore_result(croper, category, generated_image):
|
|
25 |
restored_image.paste(cropped_generated_image, (croper.origin_start_x, croper.origin_start_y), cropped_square_mask_image)
|
26 |
|
27 |
extension = 'png'
|
28 |
-
if restored_image.mode == 'RGBA':
|
29 |
-
|
30 |
-
else:
|
31 |
-
|
32 |
|
33 |
if not os.path.exists("output"):
|
34 |
os.makedirs("output")
|
|
|
25 |
restored_image.paste(cropped_generated_image, (croper.origin_start_x, croper.origin_start_y), cropped_square_mask_image)
|
26 |
|
27 |
extension = 'png'
|
28 |
+
# if restored_image.mode == 'RGBA':
|
29 |
+
# extension = 'png'
|
30 |
+
# else:
|
31 |
+
# extension = 'jpg'
|
32 |
|
33 |
if not os.path.exists("output"):
|
34 |
os.makedirs("output")
|