From dafba37c935319f990d2b0370f773dcc0f79f3ee Mon Sep 17 00:00:00 2001 From: Egemen Tuncarslan Date: Tue, 1 Sep 2026 15:39:06 +0300 Subject: [PATCH] kitti_eval: fix a SyntaxError that makes evaluate.py unimportable Line 5 reads import .kitti_common as kitti which is not valid Python -- `import` takes a dotted module path, not a relative one. The file cannot be parsed, so `python -m ...kitti_eval.evaluate` and any `from .evaluate import ...` fail before a single statement runs: File ".../kitti_eval/evaluate.py", line 5 import .kitti_common as kitti ^ SyntaxError: invalid syntax The relative form is `from . import kitti_common as kitti`, which binds the same name and matches how the rest of the package imports its siblings (eval.py:6 `from .rotate_iou import rotate_iou_gpu_eval`). Verified: `python -m py_compile` on the file fails before the change and succeeds after; the AST shows a level-1 ImportFrom binding `kitti`. Co-Authored-By: Claude Opus 5 --- .../ngperception/detection/kitti_eval/evaluate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeepDataMiningLearning/ngperception/detection/kitti_eval/evaluate.py b/DeepDataMiningLearning/ngperception/detection/kitti_eval/evaluate.py index 7e1dab6f..fe28c3f3 100644 --- a/DeepDataMiningLearning/ngperception/detection/kitti_eval/evaluate.py +++ b/DeepDataMiningLearning/ngperception/detection/kitti_eval/evaluate.py @@ -2,7 +2,7 @@ import fire -import .kitti_common as kitti +from . import kitti_common as kitti from .eval import get_coco_eval_result, get_official_eval_result