Skip to content

Commit bb51e45

Browse files
authored
Add files via upload
1 parent 93b3f62 commit bb51e45

File tree

6 files changed

+409
-6
lines changed

6 files changed

+409
-6
lines changed

AILab_BodySegment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ def hex_to_rgba(hex_color):
213213
raise ValueError("Invalid color format")
214214
return (r, g, b, a)
215215
rgba_image = RGB2RGBA(orig_image, mask_image)
216-
background_color = params.get("background_color", "#222222")
217216
rgba = hex_to_rgba(background_color)
218217
bg_image = Image.new('RGBA', orig_image.size, rgba)
219218
composite_image = Image.alpha_composite(bg_image, rgba_image)

AILab_ClothSegment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ def hex_to_rgba(hex_color):
249249
raise ValueError("Invalid color format")
250250
return (r, g, b, a)
251251
rgba_image = RGB2RGBA(orig_image, mask_image)
252-
background_color = params.get("background_color", "#222222")
253252
rgba = hex_to_rgba(background_color)
254253
bg_image = Image.new('RGBA', orig_image.size, rgba)
255254
composite_image = Image.alpha_composite(bg_image, rgba_image)

AILab_FaceSegment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ def hex_to_rgba(hex_color):
254254
raise ValueError("Invalid color format")
255255
return (r, g, b, a)
256256
rgba_image = RGB2RGBA(orig_image, mask_image)
257-
background_color = params.get("background_color", "#222222")
258257
rgba = hex_to_rgba(background_color)
259258
bg_image = Image.new('RGBA', orig_image.size, rgba)
260259
composite_image = Image.alpha_composite(bg_image, rgba_image)

AILab_FashionSegment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ def hex_to_rgba(hex_color):
335335
raise ValueError("Invalid color format")
336336
return (r, g, b, a)
337337
rgba_image = RGB2RGBA(orig_image, mask_image)
338-
background_color = params.get("background_color", "#222222")
339338
rgba = hex_to_rgba(background_color)
340339
bg_image = Image.new('RGBA', orig_image.size, rgba)
341340
composite_image = Image.alpha_composite(bg_image, rgba_image)

0 commit comments

Comments
 (0)