6#include "reusex/vision/IDataset.hpp"
7#include "reusex/vision/onnx/Sam3Data.hpp"
27 bool save(
const std::span<Pair> &data)
override;
30 bool class_map_saved_ =
false;
IDataset(std::shared_ptr< ProjectDB > database)
std::pair< std::unique_ptr< IData >, size_t > Pair
Dataset for ONNX Runtime SAM3 model inference.
IDataset(std::shared_ptr< ProjectDB > database)
bool save(const std::span< Pair > &data) override
Save label images from completed inference back to the database.
IDataset::Pair get(const std::size_t index) const override
Load an image at the given index into an ONNXSam3Data.