From 03f6305081542da588f653947449a8a2be5763a2 Mon Sep 17 00:00:00 2001 From: "Chanwut (Mick) Kittivorawong" Date: Sun, 10 Sep 2023 01:21:59 -0700 Subject: [PATCH] move playground to evaluation/ablation --- .../ablation}/fig13-end-to-end.ipynb | 0 .../ablation}/fig14-end-to-end.ipynb | 0 .../ablation}/fig15-end-to-end.ipynb | 0 {playground => evaluation/ablation}/nbutils/__init__.py | 0 .../ablation}/nbutils/is_notebook.py | 0 .../ablation}/nbutils/report_progress.py | 0 {playground => evaluation/ablation}/run-ablation.ipynb | 0 {playground => evaluation/ablation}/run-all | 0 {playground => evaluation/ablation}/run-all-local | 0 {playground => evaluation/ablation}/run-all.py | 0 {playground => evaluation/ablation}/run-inview.ipynb | 0 .../ablation}/run-strongsort-cache-correctness.ipynb | 0 .../ablation}/run-strongsort-cache.ipynb | 0 .../ablation}/run-strongsort-ecc-portion.ipynb | 0 .../ablation}/run-strongsort-skip.ipynb | 0 {playground => evaluation/ablation}/visualize_image.ipynb | 0 .../tracking_3d/from_tracking_2d_and_detection_3d.py | 8 +++++++- 17 files changed, 7 insertions(+), 1 deletion(-) rename {playground => evaluation/ablation}/fig13-end-to-end.ipynb (100%) rename {playground => evaluation/ablation}/fig14-end-to-end.ipynb (100%) rename {playground => evaluation/ablation}/fig15-end-to-end.ipynb (100%) rename {playground => evaluation/ablation}/nbutils/__init__.py (100%) rename {playground => evaluation/ablation}/nbutils/is_notebook.py (100%) rename {playground => evaluation/ablation}/nbutils/report_progress.py (100%) rename {playground => evaluation/ablation}/run-ablation.ipynb (100%) rename {playground => evaluation/ablation}/run-all (100%) rename {playground => evaluation/ablation}/run-all-local (100%) rename {playground => evaluation/ablation}/run-all.py (100%) rename {playground => evaluation/ablation}/run-inview.ipynb (100%) rename {playground => evaluation/ablation}/run-strongsort-cache-correctness.ipynb (100%) rename {playground => evaluation/ablation}/run-strongsort-cache.ipynb (100%) rename {playground => evaluation/ablation}/run-strongsort-ecc-portion.ipynb (100%) rename {playground => evaluation/ablation}/run-strongsort-skip.ipynb (100%) rename {playground => evaluation/ablation}/visualize_image.ipynb (100%) diff --git a/playground/fig13-end-to-end.ipynb b/evaluation/ablation/fig13-end-to-end.ipynb similarity index 100% rename from playground/fig13-end-to-end.ipynb rename to evaluation/ablation/fig13-end-to-end.ipynb diff --git a/playground/fig14-end-to-end.ipynb b/evaluation/ablation/fig14-end-to-end.ipynb similarity index 100% rename from playground/fig14-end-to-end.ipynb rename to evaluation/ablation/fig14-end-to-end.ipynb diff --git a/playground/fig15-end-to-end.ipynb b/evaluation/ablation/fig15-end-to-end.ipynb similarity index 100% rename from playground/fig15-end-to-end.ipynb rename to evaluation/ablation/fig15-end-to-end.ipynb diff --git a/playground/nbutils/__init__.py b/evaluation/ablation/nbutils/__init__.py similarity index 100% rename from playground/nbutils/__init__.py rename to evaluation/ablation/nbutils/__init__.py diff --git a/playground/nbutils/is_notebook.py b/evaluation/ablation/nbutils/is_notebook.py similarity index 100% rename from playground/nbutils/is_notebook.py rename to evaluation/ablation/nbutils/is_notebook.py diff --git a/playground/nbutils/report_progress.py b/evaluation/ablation/nbutils/report_progress.py similarity index 100% rename from playground/nbutils/report_progress.py rename to evaluation/ablation/nbutils/report_progress.py diff --git a/playground/run-ablation.ipynb b/evaluation/ablation/run-ablation.ipynb similarity index 100% rename from playground/run-ablation.ipynb rename to evaluation/ablation/run-ablation.ipynb diff --git a/playground/run-all b/evaluation/ablation/run-all similarity index 100% rename from playground/run-all rename to evaluation/ablation/run-all diff --git a/playground/run-all-local b/evaluation/ablation/run-all-local similarity index 100% rename from playground/run-all-local rename to evaluation/ablation/run-all-local diff --git a/playground/run-all.py b/evaluation/ablation/run-all.py similarity index 100% rename from playground/run-all.py rename to evaluation/ablation/run-all.py diff --git a/playground/run-inview.ipynb b/evaluation/ablation/run-inview.ipynb similarity index 100% rename from playground/run-inview.ipynb rename to evaluation/ablation/run-inview.ipynb diff --git a/playground/run-strongsort-cache-correctness.ipynb b/evaluation/ablation/run-strongsort-cache-correctness.ipynb similarity index 100% rename from playground/run-strongsort-cache-correctness.ipynb rename to evaluation/ablation/run-strongsort-cache-correctness.ipynb diff --git a/playground/run-strongsort-cache.ipynb b/evaluation/ablation/run-strongsort-cache.ipynb similarity index 100% rename from playground/run-strongsort-cache.ipynb rename to evaluation/ablation/run-strongsort-cache.ipynb diff --git a/playground/run-strongsort-ecc-portion.ipynb b/evaluation/ablation/run-strongsort-ecc-portion.ipynb similarity index 100% rename from playground/run-strongsort-ecc-portion.ipynb rename to evaluation/ablation/run-strongsort-ecc-portion.ipynb diff --git a/playground/run-strongsort-skip.ipynb b/evaluation/ablation/run-strongsort-skip.ipynb similarity index 100% rename from playground/run-strongsort-skip.ipynb rename to evaluation/ablation/run-strongsort-skip.ipynb diff --git a/playground/visualize_image.ipynb b/evaluation/ablation/visualize_image.ipynb similarity index 100% rename from playground/visualize_image.ipynb rename to evaluation/ablation/visualize_image.ipynb diff --git a/spatialyze/video_processor/stages/tracking_3d/from_tracking_2d_and_detection_3d.py b/spatialyze/video_processor/stages/tracking_3d/from_tracking_2d_and_detection_3d.py index 8edfe29..04519c7 100644 --- a/spatialyze/video_processor/stages/tracking_3d/from_tracking_2d_and_detection_3d.py +++ b/spatialyze/video_processor/stages/tracking_3d/from_tracking_2d_and_detection_3d.py @@ -21,7 +21,13 @@ def _run(self, payload: "Payload") -> "tuple[bitarray | None, dict[str, list] | payload.keep, detections, trackings, payload.video ): dets, _, dids = detection - if not k or tracking is None or detection is None or len(dets) == 0 or len(tracking) == 0: + if ( + not k + or tracking is None + or detection is None + or len(dets) == 0 + or len(tracking) == 0 + ): metadata.append(dict()) continue