Git Product home page Git Product logo

Comments (5)

csonthomisi avatar csonthomisi commented on August 11, 2024 4

I just faced the problem, and I solved it in an easy way.. I modified the function "def from_file" in the following way:

      def from_file(cls, file_name: Path) -> "LidarPointCloud":
              """Loads LIDAR data from binary numpy format. Data is stored as (x, y, z, intensity, ring index).
      
              Args:
                  file_name: Path of the pointcloud file on disk.
      
              Returns: LidarPointCloud instance (x, y, z, intensity).
      
              """
      
              assert file_name.suffix == ".bin", "Unsupported filetype {}".format(file_name)
      
              scan = np.fromfile(str(file_name), dtype=np.float32)
              try:
                  points = scan.reshape((-1, 5))[:, : cls.nbr_dims()]
              except:
                  l = len(scan)//5
                  points = scan[:5*l].reshape((-1, 5))[:, : cls.nbr_dims()]
                  print("Error solved in {}".format(file_name))
              return cls(points.T)

from nuscenes-devkit.

tobii95 avatar tobii95 commented on August 11, 2024

Hey!
I'm facing the same problem. I am also using the newest version of the dataset.
Do you have a solution for it?

from nuscenes-devkit.

hcyoo93 avatar hcyoo93 commented on August 11, 2024

Hi @tobii95

I have no idea about this issue.

Maybe we can skip some problematic frames for exporting.
(I remember this occurs only for some frames... not every frame)

from nuscenes-devkit.

mnik17 avatar mnik17 commented on August 11, 2024

Hey @tobii95 and @hcyoo93,

I just downloaded the dataset a few weeks ago, but I got the exact same error when trying to convert it to KITTI format. Have you been able to find a solution and if not is it possible to just skip the affected frames?

from nuscenes-devkit.

tobii95 avatar tobii95 commented on August 11, 2024

Hey @mnik17 ,

some time has pased, so I don't remember the issue in detail anymore. But as I remember it, I just skipped the affected frames and that worked for me

from nuscenes-devkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.