Class KITTIDataset

Inheritance Relationships

Base Type

Class Documentation

class KITTIDataset : public mindspore::dataset::Dataset

A source dataset that reads KITTI images and labels.

Public Functions

KITTIDataset(const std::vector<char> &dataset_dir, const std::vector<char> &usage, bool decode, const std::shared_ptr<Sampler> &sampler, const std::shared_ptr<DatasetCache> &cache)

Constructor of KITTIDataset.

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] Shared pointer to a sampler object used to choose samples from the dataset.

  • cache[in] Tensor cache to use.

KITTIDataset(const std::vector<char> &dataset_dir, const std::vector<char> &usage, bool decode, const Sampler *sampler, const std::shared_ptr<DatasetCache> &cache)

Constructor of KITTIDataset.

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] Shared pointer to a sampler object used to choose samples from the dataset.

  • cache[in] Tensor cache to use.

KITTIDataset(const std::vector<char> &dataset_dir, const std::vector<char> &usage, bool decode, const std::reference_wrapper<Sampler> &sampler, const std::shared_ptr<DatasetCache> &cache)

Constructor of KITTIDataset.

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] Shared pointer to a sampler object used to choose samples from the dataset.

  • cache[in] Tensor cache to use.

~KITTIDataset() override = default

Destructor of KITTIDataset.