diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f82e279..cc9e110e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,7 @@ non-ascii paths while adding files from "Connected file share" (issue #4428) - Visibility and ignored information fail to be loaded (MOT dataset format) () - Added force logout on CVAT app start if token is missing () - Missed token with using social account authentication () +- Fixed FBRS serverless function runtime error on images with alpha channel () - Attaching manifest with custom name () ### Security diff --git a/serverless/pytorch/saic-vul/fbrs/nuclio/main.py b/serverless/pytorch/saic-vul/fbrs/nuclio/main.py index de6fab77..800ed0f6 100644 --- a/serverless/pytorch/saic-vul/fbrs/nuclio/main.py +++ b/serverless/pytorch/saic-vul/fbrs/nuclio/main.py @@ -24,7 +24,7 @@ def handler(context, event): neg_points = data["neg_points"] threshold = data.get("threshold", 0.5) buf = io.BytesIO(base64.b64decode(data["image"])) - image = Image.open(buf) + image = Image.open(buf).convert('RGB') mask, polygon = context.user_data.model.handle(image, pos_points, neg_points, threshold)