src/WhiskerToolbox/DeepLearning_Widget/Inference/BatchInferenceResult.hpp
src/WhiskerToolbox/DeepLearning_Widget/Inference/BatchInferenceResult.hpp
Data structures for accumulating off-thread batch inference results. More…
Classes
| Name | |
|---|---|
| struct | FrameResult A single decoded result for one frame + one output binding. |
| struct | BatchInferenceResult Accumulated results from an offline batch inference run. |
Types
| Name | |
|---|---|
| using dl::DecodedGeometryVariant | DecodedOutputVariant Alias for geometry decoded by channel decoders (shared with DecoderDispatch). |
Detailed Description
Data structures for accumulating off-thread batch inference results.
These structs are torch-free and Qt-free so they can be constructed on a worker thread and consumed on the main thread without header conflicts.
Types Documentation
using DecodedOutputVariant
using DecodedOutputVariant = dl::DecodedGeometryVariant;Alias for geometry decoded by channel decoders (shared with DecoderDispatch).
Source code
#ifndef BATCH_INFERENCE_RESULT_HPP
#define BATCH_INFERENCE_RESULT_HPP
#include "DeepLearning/channel_decoding/DecoderDispatch.hpp"
#include <string>
#include <vector>
using DecodedOutputVariant = dl::DecodedGeometryVariant;
struct FrameResult {
int frame_index = 0;
DecodedOutputVariant data;
std::string data_key;
};
struct BatchInferenceResult {
std::vector<FrameResult> results;
bool success = true;
std::string error_message;
};
#endif// BATCH_INFERENCE_RESULT_HPPUpdated on 2026-11-13 at 20:25:45 +0000