Skip to content

预标注标签导入失败 #332

@urbaneman

Description

@urbaneman

我现在想将nuScenes数据集转换到Xtreme1格式,进行Lidar Fusion的标注,目前已完成了相机内外参的转换和数据到导出,且观察标注框的点云重投影符合预期,以上是背景。
现在我想进一步的将nuScenes数据集GT导出为预标注,方便进行任意模型生成伪标签,在进一步进行人工标注,我按照 issue 85 中的实例json导出了GT,但是upload - Contains annotation result - Ground Truth,提示 success with error,后端错误如下

 backend-1                       | 2025-08-07 09:38:30.048  INFO 1 --- [pool-6-thread-5] ai.basic.x1.usecase.UploadDataUseCase    : Get data content,frameName:ca9a282c9e77460f8360f564131a8af5,content:[{"name":"camera_config","type":"directory","files":[{"name":"ca9a282c9e77460f8360f564131a8af5.json","fileId":7299,"type":"file"}]},{"name":"camera_image_0","type":"directory","files":[{"name":"ca9a282c9e77460f8360f564131a8af5.jpg","fileId
":7295,"type":"file"}]},{"name":"camera_image_1","type":"directory","files":[{"name":"ca9a282c9e77460f8360f564131a8af5.jpg","fileId":7296,"type":"file"}]},{"name":"camera_image_2","type":"directory","files":[{"name":"ca9a282c9e77460f8360f564131a8af5.jpg","fileId":7300,"type":"file"}]},{"name":"camera_image_3","type":"directory","files":[{"name":"ca9a282c9e77460f8360f564131a8af5.jpg","fileId":7302,"type":"file"}]},{"name":"camera_image_4","type":"directory","files":[{"name":"ca9a282c9e77460f8360f564131a8af5.jpg","fileId":7298,"type":"file"}]},{"name":"camera_image_5","type":"directory","files":[{"name":"ca9a282c9e77460f8360f564131a8af5.jpg","fileId":
7297,"type":"file"}]},{"name":"lidar_point_cloud_0","type":"directory","files":[{"name":"ca9a282c9e77460f8360f564131a8af5.pcd","fileId":7301,"type":"file"}]}]                                                             backend-1                       | 2025-08-07 09:38:30.049  INFO 1 --- [pool-6-thread-5] ai.basic.x1.usecase.UploadDataUseCase    : dataStart,dataName:e0845f5322254dafadbbed75aaa07969,dataFiles:[e0845f5322254dafadbbed75aaa07969.jpg, e0845f5322254dafadbbed75aaa07969.jpg, e0845f5322254dafadbbed75aaa07969.jpg, e0845f5322254dafadbbed75aaa07969.jpg, e0845f5322254dafadbbed75aaa07969.json, e0845f5322254dafadbbed75aaa07969.jpg, e0845f5322254dafadbbed75aaa07969.pcd, e0845f5322254dafadbbed75aaa07969.jpg]
backend-1                       | 2025-08-07 09:38:30.050  INFO 1 --- [pool-6-thread-5] ai.basic.x1.usecase.UploadDataUseCase    : dataResult,dataName:e0845f5322254dafadbbed75aaa07969,resultFileName:e0845f5322254dafadbbed75aaa07969.json                                                                                                                                                                                                          backend-1                       | 2025-08-07 09:38:30.053 ERROR 1 --- [pool-6-thread-5] ai.basic.x1.usecase.UploadDataUseCase    : Objects is empty,dataId:-4814932031563803624,dataName:e0845f5322254dafadbbed75aaa07969
backend-1                       | 2025-08-07 09:38:30.053 ERROR 1 --- [pool-6-thread-5] ai.basic.x1.usecase.UploadDataUseCase    : Handle result json error,userId:2,datasetId:16                                          backend-1                       |                                                                                                                                                                                          backend-1                       | java.lang.NullPointerException: null
backend-1                       |       at ai.basic.x1.usecase.UploadDataUseCase.handleDataResult(UploadDataUseCase.java:679) ~[classes!/:0.9.1-SNAPSHOT]                                                                  backend-1                       |       at ai.basic.x1.usecase.UploadDataUseCase.lambda$commonParseUploadFile$8(UploadDataUseCase.java:505) ~[classes!/:0.9.1-SNAPSHOT]                                                    backend-1                       |       at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[na:na]                                                                                                                 backend-1                       |       at ai.basic.x1.usecase.UploadDataUseCase.lambda$commonParseUploadFile$9(UploadDataUseCase.java:498) ~[classes!/:0.9.1-SNAPSHOT]
backend-1                       |       at com.alibaba.ttl.TtlRunnable.run(TtlRunnable.java:59) ~[transmittable-thread-local-2.12.6.jar!/:na]                                                                              backend-1                       |       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]                                                                                      backend-1                       |       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
backend-1                       |       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]                                                                              backend-1                       |       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]                                                                              backend-1                       |       at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]

应该是我导入GT的格式或方式不对,导致无法正确加载标签,报错 Objects is empty,但我的每个实例都有BBOX3d,GT格式如下

"result": {
    "objects": [
      {
        "center3D": {
          "x": 19.025179413330306,
          "y": 49.99464427722978,
          "z": 0.3171291132324794
        },
        "size3D": {
          "x": 0.621,
          "y": 0.669,
          "z": 1.642
        },
        "rotation3D": {
          "x": 0.0,
          "y": 0.0,
          "z": -0.36783709665560094
        },
        "objType": "3d",
        "classType": "pedestrian"
      },
      {
        "center3D": {
          "x": 21.38048967780736,
          "y": 27.767397669925685,
          "z": -0.39279047103981846
        },
        "size3D": {
          "x": 0.775,
          "y": 0.769,
          "z": 1.711
        },
        "rotation3D": {
          "x": 0.0,
          "y": 0.0,
          "z": -1.9704342880396903
        },
        "objType": "3d",
        "classType": "pedestrian"
      }
   ]
}

下面的是我导入的数据集
xtreme1_nuscenes_mini_5.zip

能辛苦提供一个可以正常导入的带有点云GT的示例压缩包吗?
对了,我的环境是最新版本 xtreme1-v0.9.1, upload数据集使用的是Ground Truth选项。

期待您的回复

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions