windowsub0406 / KITTI_Tutorial

Tutorial for using Kitti dataset easily
424 stars 107 forks source link

TypeError: super() takes at least 1 argument (0 given) #3

Closed keishatsai closed 6 years ago

keishatsai commented 6 years ago

Hi, Thanks for the tutorial. Here is what I have encountered when I run the code which you provided "Project 3D Velodyne points to 2D camera Image ", I got error message. I put the code you provided in ipython notebook inside one file called, "projectVelo.py", and I only changed the path to velodyne and image file.

Traceback (most recent call last): File "projectVelo.py", line 54, in res = Kitti_util(frame=128, camera_path=image_path, velo_path=velo_path, v2c_path=v2c_filepath, c2c_path=c2c_filepath) File "/home/keisha_tsai/Downloads/KITTI_Tutorial-master/kitti_foundation.py", line 235, in init super().init(frame, velo_path, camera_path, img_type, v2c_path, c2c_path, xml_path) TypeError: super() takes at least 1 argument (0 given)

Could you help me to clarify the error? Thank you.

keishatsai commented 6 years ago

Maybe it is because of the version of python. so I changed the the line 235 into Kitti.init(self,frame, velo_path, camera_path, img_type, v2c_path, c2c_path, xml_path) now it works for me....