|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
LibTorch backend implementation of the IMLBackend interface. More...
#include <Backend.hpp>


Public Member Functions | |
| LibTorchBackend ()=default | |
| 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. | |
| Public Member Functions inherited from reusex::vision::IMLBackend | |
| virtual | ~IMLBackend ()=default |
LibTorch backend implementation of the IMLBackend interface.
Provides factory methods for creating LibTorch-based models and datasets for use with the backend-agnostic annotation pipeline.
Definition at line 17 of file Backend.hpp.
|
default |
|
overridevirtual |
Create a LibTorch dataset from a database path.
| datasetPath | Path to the RTABMap database file. |
Implements reusex::vision::IMLBackend.
|
overridevirtual |
Create a LibTorch model.
| type | Model type (currently only Yolo is supported). |
| modelPath | Path to the TorchScript model file. |
| use_cuda | Whether to use CUDA for inference (defaults to false). |
| std::runtime_error | if model type is not supported. |
Implements reusex::vision::IMLBackend.