LAV icon indicating copy to clipboard operation
LAV copied to clipboard

fix: when data folder have data.mdb missing

Open Kin-Zhang opened this issue 2 years ago • 0 comments

continue the training step without a break

otherwise, there may be an error like here:

File "/LAV/lav/utils/datasets/lidar_painted_dataset.py", line 27, in __getitem__
  lidar_painted = self.__class__.access('lidar_sem', lmdb_txn, index, 1).reshape(-1,len(self.seg_channels))
File "/LAV/lav/utils/datasets/basic_dataset.py", line 83, in <listcomp>
  return np.stack([np.frombuffer(lmdb_txn.get((f'{tag}_{t:05d}{suffix}').encode()), dtype) for t in range(index,index+T)])
TypeError: a bytes-like object is required, not 'NoneType'

and these issues related: https://github.com/dotchen/LAV/issues/2#issuecomment-1148136434 https://github.com/dotchen/LAV/issues/9#issue-1194395147

Kin-Zhang avatar Jun 07 '22 13:06 Kin-Zhang

LGTM. thanks for the PR!

dotchen avatar Sep 15 '22 00:09 dotchen