dora-sam2 0.3.12rc1__py3-none-any.whl → 0.3.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dora-sam2 might be problematic. Click here for more details.

dora_sam2/main.py CHANGED
@@ -134,7 +134,7 @@ def main():
134
134
 
135
135
  if "boxes2d" in event_id:
136
136
  if len(event["value"]) == 0:
137
- node.send_output("masks", pa.array([]))
137
+ node.send_output("masks", pa.array([]), {"primitive": "masks"})
138
138
  continue
139
139
  if isinstance(event["value"], pa.StructArray):
140
140
  boxes2d = event["value"][0].get("bbox").values.to_numpy()
@@ -183,8 +183,10 @@ def main():
183
183
  ## Mask to 3 channel image
184
184
  match return_type:
185
185
  case pa.Array:
186
+ metadata["primitive"] = "masks"
186
187
  node.send_output("masks", pa.array(masks.ravel()), metadata)
187
188
  case pa.StructArray:
189
+ metadata["primitive"] = "masks"
188
190
  node.send_output(
189
191
  "masks",
190
192
  pa.array(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dora-sam2
3
- Version: 0.3.12rc1
3
+ Version: 0.3.13
4
4
  Summary: dora-sam2
5
5
  Author-email: Your Name <email@email.com>
6
6
  License: MIT
@@ -0,0 +1,8 @@
1
+ dora_sam2/__init__.py,sha256=tF7WHhHiDweUUzyHsbmFe_ktphE08aA5j33E4ja1udA,381
2
+ dora_sam2/__main__.py,sha256=NlAb6Jbmmn82K8Ahdi12sliZYdzyY7QaoCCHRuoR_Hg,90
3
+ dora_sam2/main.py,sha256=8J-z_nYvXAF-HmTecG6jQRSXjf6aWE44L6Bi8aB3NFQ,11017
4
+ dora_sam2-0.3.13.dist-info/METADATA,sha256=zqpuqQgZRzpShXHMVDZq1tQ5PjeaByz-6TR4jjr39Ec,820
5
+ dora_sam2-0.3.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ dora_sam2-0.3.13.dist-info/entry_points.txt,sha256=eObMaDQauVA_sv4J6fsNjn8V-8syGJK7mO-LrsBu1aA,50
7
+ dora_sam2-0.3.13.dist-info/top_level.txt,sha256=IgKcOITGe2Nlyc79J6dwh3dcp3Wsf-IipIy-1h9GcPE,10
8
+ dora_sam2-0.3.13.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- dora_sam2/__init__.py,sha256=tF7WHhHiDweUUzyHsbmFe_ktphE08aA5j33E4ja1udA,381
2
- dora_sam2/__main__.py,sha256=NlAb6Jbmmn82K8Ahdi12sliZYdzyY7QaoCCHRuoR_Hg,90
3
- dora_sam2/main.py,sha256=Jo6y5vY8LafpdUfb_gHgy7zLJMZz_8sLBw0gL3HeG0M,10873
4
- dora_sam2-0.3.12rc1.dist-info/METADATA,sha256=DjlNnGgehwv8twaWU7dWGJV8qOswh3jV6SO5tiLhiMM,823
5
- dora_sam2-0.3.12rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- dora_sam2-0.3.12rc1.dist-info/entry_points.txt,sha256=eObMaDQauVA_sv4J6fsNjn8V-8syGJK7mO-LrsBu1aA,50
7
- dora_sam2-0.3.12rc1.dist-info/top_level.txt,sha256=IgKcOITGe2Nlyc79J6dwh3dcp3Wsf-IipIy-1h9GcPE,10
8
- dora_sam2-0.3.12rc1.dist-info/RECORD,,