|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
YOLO instance segmentation model using LibTorch (TorchScript). More...
#include <Yolo.hpp>


Public Member Functions | |
| LibTorchYolo (const std::filesystem::path &model_path, bool use_cuda=false) | |
| Construct and load a YOLO model from a TorchScript file. | |
| std::vector< IDataset::Pair > | forward (const std::span< IDataset::Pair > &input) override |
| Run YOLO inference on a batch of images. | |
| Public Member Functions inherited from reusex::vision::IModel | |
| virtual | ~IModel ()=default |
Static Public Member Functions | |
| static std::unique_ptr< LibTorchYolo > | create (const std::filesystem::path &model_path, bool use_cuda=false) |
| Factory method for creating a LibTorchYolo instance. | |
| Static Public Member Functions inherited from reusex::vision::IModel | |
| static std::unique_ptr< IModel > | create (const std::filesystem::path &model_path, bool use_gpu=false) |
YOLO instance segmentation model using LibTorch (TorchScript).
Loads a TorchScript YOLO segmentation model and implements the IModel interface for use with the backend-agnostic annotation pipeline.
|
explicit |
Construct and load a YOLO model from a TorchScript file.
| model_path | Path to the .pt TorchScript model file. |
| use_cuda | Whether to use CUDA for inference (falls back to CPU). |
|
static |
Factory method for creating a LibTorchYolo instance.
| model_path | Path to the .pt TorchScript model file. |
| use_cuda | Whether to use CUDA for inference (defaults to false). |
|
overridevirtual |
Run YOLO inference on a batch of images.
Each input Pair must contain a LibTorchData with a letterboxed image. Output Pairs contain the same LibTorchData with label_image populated.
| input | Span of (data, index) pairs from the dataset. |
Implements reusex::vision::IModel.