pub struct ModelMetadata {
pub id: String,
pub kind: ModelKind,
pub execution: ModelExecution,
pub input_width: u32,
pub input_height: u32,
pub input_format: FrameFormat,
pub output_classes: Vec<String>,
pub model_path: Option<String>,
pub head: DetectionHead,
}Expand description
Metadata a plugin supplies when registering a model.
Fields§
§id: StringReverse-DNS-ish unique model id (e.g. com.example.weeds).
kind: ModelKind§execution: ModelExecution§input_width: u32Input the model expects; the engine downscales/converts frames to match.
input_height: u32§input_format: FrameFormat§output_classes: Vec<String>Class labels in output-index order (empty for non-detection kinds).
model_path: Option<String>Path to the model file on the agent, for engine-run models.
head: DetectionHeadOutput-head layout for decoding (detection models). Defaults to Yolo8;
a model that ships the legacy YOLOv5/v7 head pins Yolo5. A payload that
predates this field deserializes to the Yolo8 default.
Implementations§
Source§impl ModelMetadata
impl ModelMetadata
Trait Implementations§
Source§impl Clone for ModelMetadata
impl Clone for ModelMetadata
Source§impl Debug for ModelMetadata
impl Debug for ModelMetadata
Source§impl<'de> Deserialize<'de> for ModelMetadata
impl<'de> Deserialize<'de> for ModelMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelMetadata
impl PartialEq for ModelMetadata
Source§impl Serialize for ModelMetadata
impl Serialize for ModelMetadata
impl StructuralPartialEq for ModelMetadata
Auto Trait Implementations§
impl Freeze for ModelMetadata
impl RefUnwindSafe for ModelMetadata
impl Send for ModelMetadata
impl Sync for ModelMetadata
impl Unpin for ModelMetadata
impl UnsafeUnpin for ModelMetadata
impl UnwindSafe for ModelMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more