We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2142663 commit f53ea3fCopy full SHA for f53ea3f
process.py
@@ -57,7 +57,10 @@ def run_cluster(
57
if "dufo_label" not in data:
58
print(f"Warning: {scene_id} {data['timestamp']} has no dufo_label, will be skipped. Better to rerun dufomap again in this scene.")
59
continue
60
-
+ elif data["dufo_label"].sum() == 0:
61
+ print(f"Warning: {scene_id} {data['timestamp']} has no dynamic points, will be skipped. Better to check this scene.")
62
+ continue
63
+
64
cluster_label = np.zeros(pc0.shape[0], dtype= np.int16)
65
hdb.fit(pc0[data["dufo_label"]==1])
66
# NOTE(Qingwen): since -1 will be assigned if no cluster. We set it to 0.
0 commit comments