ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
Backend.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Povl Filip Sonne-Frederiksen
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6#include "reusex/vision/IMLBackend.hpp"
7
9
14class ONNXBackend : public IMLBackend {
15 public:
16 ONNXBackend() = default;
17
24 std::unique_ptr<IModel>
25 create_model(const Model type,
26 const std::filesystem::path &modelPath,
27 bool use_cuda = false) override;
28
32 std::unique_ptr<IDataset>
33 create_dataset(const std::filesystem::path &datasetPath) override;
34};
35
36} // namespace reusex::vision::onnx
std::unique_ptr< IModel > create_model(const Model type, const std::filesystem::path &modelPath, bool use_cuda=false) override
Create an ONNX Runtime model.
std::unique_ptr< IDataset > create_dataset(const std::filesystem::path &datasetPath) override
Create an ONNX dataset from a database path.