31 bool use_cuda =
false);
38 static std::unique_ptr<LibTorchYolo>
39 create(
const std::filesystem::path &model_path,
bool use_cuda =
false);
49 std::vector<IDataset::Pair>
50 forward(
const std::span<IDataset::Pair> &input)
override;
58 images_to_tensor(
const std::vector<const LibTorchData *> &inputs)
const;
60 torch::jit::script::Module model_;
61 torch::Device device_;