Skip to content

Commit

Permalink
fix(ray): fix semantic segmentation task parser (#237)
Browse files Browse the repository at this point in the history
Because

- semantic segmentation task output parse does not follow task schema

This commit

- fix output key
  • Loading branch information
heiruwu authored Oct 26, 2024
1 parent 019a775 commit 652c548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instill/helpers/ray_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def construct_task_semantic_segmentation_output(
for r, cat in zip(rle, category):
objects.append({"rle": str(r), "category": str(cat)})

data["objects"] = objects
data["stuffs"] = objects

if isinstance(request, Request):
task_outputs.append({"data": data})
Expand Down

0 comments on commit 652c548

Please sign in to comment.