Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,6 @@ def detect_and_segment_persons(image, clothes):
|
|
58 |
|
59 |
bboxes, kpss = detector.detect(img)
|
60 |
if bboxes.shape[0] == 0: # Aucun visage dΓ©tectΓ©
|
61 |
-
#image_rm_background = remove_background(image)
|
62 |
return [encode_image_to_base64(image)]
|
63 |
|
64 |
height, width, _ = img.shape # Get image dimensions
|
|
|
58 |
|
59 |
bboxes, kpss = detector.detect(img)
|
60 |
if bboxes.shape[0] == 0: # Aucun visage dΓ©tectΓ©
|
|
|
61 |
return [encode_image_to_base64(image)]
|
62 |
|
63 |
height, width, _ = img.shape # Get image dimensions
|