From 969a401cd27a789f39d9942792f7f146b60fb2f3 Mon Sep 17 00:00:00 2001 From: "Christopher L. Crutchfield" Date: Wed, 19 Jun 2024 09:53:24 -0700 Subject: [PATCH] fix: try removing optimizations. --- src/fish/fish_segmentation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fish/fish_segmentation.rs b/src/fish/fish_segmentation.rs index 83410b0..8fdb47e 100644 --- a/src/fish/fish_segmentation.rs +++ b/src/fish/fish_segmentation.rs @@ -160,7 +160,7 @@ impl FishSegmentation { fn create_model(&self) -> Result { Session::builder()? - .with_optimization_level(ort::GraphOptimizationLevel::Level3)? + .with_optimization_level(ort::GraphOptimizationLevel::Disable)? .with_intra_threads(4)? .commit_from_file(&self.model_path) }