Skip to content

python -m pcdet.datasets.kitti.kitti_dataset create_kitti_infos tools/cfgs/dataset_configs/kitti_dataset.yaml ERROR #1426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
neverstoplearn opened this issue Aug 8, 2023 · 10 comments
Labels

Comments

@neverstoplearn
Copy link

when I follow the guidence to run python -m pcdet.datasets.kitti.kitti_dataset create_kitti_infos tools/cfgs/dataset_configs/kitti_dataset.yaml
I got this error:
Traceback (most recent call last):
File "/xxx/miniconda3/envs/torch10/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/xxx/miniconda3/envs/torch10/lib/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/xxx/OpenPCDet/pcdet/datasets/init.py", line 15, in
from .argo2.argo2_dataset import Argo2Dataset
File "/xxx/OpenPCDet/pcdet/datasets/argo2/argo2_dataset.py", line 15, in
from .argo2_utils.so3 import yaw_to_quat, quat_to_yaw
File "/xxx/OpenPCDet/pcdet/datasets/argo2/argo2_utils/so3.py", line 10, in
def quat_to_mat(quat_wxyz: Tensor) -> Tensor:
File "/xxx/miniconda3/envs/torch10/lib/python3.9/site-packages/torch/jit/_script.py", line 1310, in script
fn = torch._C._jit_script_compile(
File "/xxx/miniconda3/envs/torch10/lib/python3.9/site-packages/torch/jit/_recursive.py", line 838, in try_compile_fn
return torch.jit.script(fn, _rcb=rcb)
File "/xxx/miniconda3/envs/torch10/lib/python3.9/site-packages/torch/jit/_script.py", line 1310, in script
fn = torch._C._jit_script_compile(
RuntimeError:
cannot statically infer the expected size of a list in this context:
File "/xxx/miniconda3/envs/torch10/lib/python3.9/site-packages/kornia/geometry/conversions.py", line 553

# this slightly awkward construction of the output shape is to satisfy torchscript
output_shape = [*list(quaternion.shape[:-1]), 3, 3]
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
matrix = matrix_flat.reshape(output_shape)

'quaternion_to_rotation_matrix' is being compiled since it was called from 'quat_to_mat'
File "/xxx/OpenPCDet/pcdet/datasets/argo2/argo2_utils/so3.py", line 19
(...,3,3) 3D rotation matrices.
"""
return C.quaternion_to_rotation_matrix(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
quat_wxyz, order=C.QuaternionCoeffOrder.WXYZ
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
)

how can I fix it? look forward your hlep.

@Harry710887048
Copy link

Harry710887048 commented Aug 9, 2023

I also encountered the same problem on the av2 dataset. Have you solved this problem ?
image

@Harry710887048
Copy link

It seems to be a problem with the kornia version, I replaced the version of it, and it works.

@stu-zhangxl
Copy link

It seems to be a problem with the kornia version, I replaced the version of it, and it works.

May I ask if you are using the Kornia version number? I am currently using version 0.7.0 and an error has been reported. Thank you

@Harry710887048
Copy link

This might help you solve the problem.
Please try to reinstall kornia with pip install kornia==0.5.8.

@Alga53
Copy link

Alga53 commented Sep 3, 2023

Thank you so much for sharing this! It solved my problem that haunted so long. Love you bro~

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Oct 4, 2023
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@Bennyliiiiii
Copy link

This might help you solve the problem. Please try to reinstall kornia with pip install kornia==0.5.8.

great!

@miaoxiannv
Copy link

This might help you solve the problem. Please try to reinstall kornia with .pip install kornia==0.5.8

You are my God.!!!!!!

@liyufan
Copy link

liyufan commented Apr 23, 2025

kornia<0.7 is enough. See kornia/kornia#2599
Also, has anyone tried #1722 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants