Skip to content

Commit

Permalink
fix SamAutoMaskSEGS result
Browse files Browse the repository at this point in the history
  • Loading branch information
lldacing committed Nov 11, 2024
1 parent 79a5fef commit 94885d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyapi/SamNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def INPUT_TYPES(self):

def generate(self, sam_model, image, output_mode):
masks = super().generate(sam_model, image, output_mode=output_mode)
masksRle = json.JSONEncoder().encode(masks)
masksRle = json.JSONEncoder().encode(masks[0])
return {"ui": {"segsRle": (masksRle,)}, "result": (masksRle,)}


Expand Down

0 comments on commit 94885d3

Please sign in to comment.