Skip to content

Camera poses (rotations) seem to be incorrent when using Dataset implementation #77

@photosartd

Description

@photosartd
  1. Date: 26.08.2025
  2. Problem: when loading extrinsics from the dataset, the rotation values keep flipping almost each time. For example, in the first scene (images/train/front), if you load several frames in a row and look at the values in the rotation matrix, they seem to change drastically each frame, as if the car (and the camera) turns very quickly. And yet looking at the scene, the car just moves forward.
  3. Bug: I had to look into the code that loads the rotations, and it seems one has to add degrees=True when loading the rotation matrix from euler angles, because raw values at the start (~0, ~0, ~180) suggest we have degrees instead of radians, that's why the values did not correspond to anything at all.
  4. Code needs changing: https://github.com/SysCV/shift-dev/blob/f8e4825e04f5584c8d1a0a96c85fc42afc1cbe57/shift_dev/dataloader/base/scalabel.py#L47

I checked this in the sensor pose viewer and it seems to be correct, when using degrees=True the camera poses are more or less correct:

Image

Metadata

Metadata

Assignees

No one assigned

    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