Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified deploy/models/field_boundary.onnx
Binary file not shown.
4 changes: 1 addition & 3 deletions yggdrasil/src/vision/field_boundary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ pub fn detect_field_boundary(
.resize(MODEL_INPUT_WIDTH, MODEL_INPUT_HEIGHT)
.expect("Failed to resize image")
.into_iter()
// TODO: Retrain the model in u8 inputs
.map(f32::from)
.collect::<Vec<_>>();

commands
Expand Down Expand Up @@ -224,7 +222,7 @@ pub fn detect_field_boundary(
pub struct FieldBoundaryModel;

impl MlModel for FieldBoundaryModel {
type Inputs = Vec<f32>;
type Inputs = Vec<u8>;
type Outputs = Vec<f32>;

const ONNX_PATH: &'static str = "models/field_boundary.onnx";
Expand Down