utiasSTARS / pykitti

Python tools for working with KITTI data.
MIT License
1.14k stars 239 forks source link

issue in utils.read_calib_file #40

Open songanz opened 5 years ago

songanz commented 5 years ago

Hi, The read_calib_file() cannot read the calib file in KITTI object data correctly, since there is a "/n" at the end

leeclemnet commented 5 years ago

I haven't encountered any problems with this function. Are you getting an error message when you load data?

RuihanGao commented 5 years ago

I encounter the same problem and the error is "ValueError: need more than 1 value to unpack". Adding a check condition if len(line) < 2: continue before key, value = line.split(':', 1) (around Line 74 in utils.py) should help.