Skip to content
Merged
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
5 changes: 1 addition & 4 deletions src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ impl YOLOModel {
let input_name = input_info.map_or_else(|| "images".to_string(), |i| i.name().to_string());

// Check if model input tensor expects FP16 (rare most models use FP32 input even with half weights)
let model_input_fp16 = input_info.is_some_and(|i| {
let fp16_input = input_info.is_some_and(|i| {
matches!(
i.dtype(),
ValueType::Tensor {
Expand All @@ -324,9 +324,6 @@ impl YOLOModel {
}
});

// Use FP16 input if model tensor type requires it
let fp16_input = model_input_fp16;

let output_names: Vec<String> = session
.outputs()
.iter()
Expand Down
Loading