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: 2025 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#include "reusex/vision/libtorch/Dataset.hpp"
8#include "reusex/vision/libtorch/Yolo.hpp"
9
11
18 public:
19 LibTorchBackend() = default;
20
28 std::unique_ptr<IModel>
29 create_model(const Model type,
30 const std::filesystem::path &modelPath,
31 bool use_cuda = false) override;
32
37 std::unique_ptr<IDataset>
38 create_dataset(const std::filesystem::path &datasetPath) override;
39};
40
41} // namespace reusex::vision::libtorch
std::unique_ptr< IModel > create_model(const Model type, const std::filesystem::path &modelPath, bool use_cuda=false) override
Create a LibTorch model.
std::unique_ptr< IDataset > create_dataset(const std::filesystem::path &datasetPath) override
Create a LibTorch dataset from a database path.