dora-sam2 0.3.12rc0__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 +3 -1
- {dora_sam2-0.3.12rc0.dist-info → dora_sam2-0.3.13.dist-info}/METADATA +1 -1
- dora_sam2-0.3.13.dist-info/RECORD +8 -0
- dora_sam2-0.3.12rc0.dist-info/RECORD +0 -8
- {dora_sam2-0.3.12rc0.dist-info → dora_sam2-0.3.13.dist-info}/WHEEL +0 -0
- {dora_sam2-0.3.12rc0.dist-info → dora_sam2-0.3.13.dist-info}/entry_points.txt +0 -0
- {dora_sam2-0.3.12rc0.dist-info → dora_sam2-0.3.13.dist-info}/top_level.txt +0 -0
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(
|
|
@@ -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.12rc0.dist-info/METADATA,sha256=aVjQ-b2X10G0PgiIl4cjFU7JBgl_GBxTzhwOjy35d2M,823
|
|
5
|
-
dora_sam2-0.3.12rc0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
-
dora_sam2-0.3.12rc0.dist-info/entry_points.txt,sha256=eObMaDQauVA_sv4J6fsNjn8V-8syGJK7mO-LrsBu1aA,50
|
|
7
|
-
dora_sam2-0.3.12rc0.dist-info/top_level.txt,sha256=IgKcOITGe2Nlyc79J6dwh3dcp3Wsf-IipIy-1h9GcPE,10
|
|
8
|
-
dora_sam2-0.3.12rc0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|