Function mindspore::dataset::KITTI

Function Documentation

inline std::shared_ptr<KITTIDataset> mindspore::dataset::KITTI(const std::string &dataset_dir, const std::string &usage, bool decode, const Sampler *sampler, const std::shared_ptr<DatasetCache> &cache = nullptr)

Function to create a KITTIDataset.

Note

When usage is ‘train’, the generated dataset has multi-columns, ‘image’, ‘label’, ‘truncated’, ‘occluded’, ‘alpha’, ‘bbox’, ‘dimensions’, ‘location’, ‘rotation_y’; When usage is ‘test’, the generated dataset has one column ‘image’.

Parameters
  • dataset_dir[in] Path to the root directory that contains the dataset.

  • usage[in] The type of data file to read.

  • decode[in] Decode the images after reading.

  • sampler[in] Sampler object used to choose samples from the dataset.

  • cache[in] Tensor cache to use (default=nullptr, which means no cache is used).

Returns

Shared pointer to the current Dataset.