fix: backend segment

This commit is contained in:
Radionic
2023-11-28 16:04:11 +08:00
parent db33d7bfd7
commit 53377929d6
+1 -3
View File
@@ -348,9 +348,7 @@ class SAMMultiLayer:
continue
points = (
item + imagePromptsMulti[key]
if key in imagePromptsMulti
else item
imagePromptsMulti[key] if key in imagePromptsMulti else item
)
point_coords = np.array([[p["x"], p["y"]] for p in points])
point_labels = np.array([p["label"] for p in points])