From 93071009a65e00452732fffbe34e8b7d98147dc7 Mon Sep 17 00:00:00 2001 From: Remi Cresson <remi.cresson@inrae.fr> Date: Fri, 30 Sep 2022 09:51:25 +0200 Subject: [PATCH] FIX: follow API changes in pyotb --- decloud/production/inference.py | 2 +- decloud/production/monthly_synthesis_processor_s2.py | 4 ++-- decloud/production/monthly_synthesis_processor_s2s1.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/decloud/production/inference.py b/decloud/production/inference.py index e85544a..a4296d4 100644 --- a/decloud/production/inference.py +++ b/decloud/production/inference.py @@ -66,7 +66,7 @@ def inference(sources, sources_scales, pad, ts, savedmodel_dir, out_tensor, out_ # Setup TensorFlowModelServe system.set_env_var("OTB_TF_NSOURCES", str(len(sources))) - infer = pyotb.TensorflowModelServe(execute=False) + infer = pyotb.TensorflowModelServe(frozen=True) # Inputs for i, (placeholder, source) in enumerate(sources.items()): diff --git a/decloud/production/monthly_synthesis_processor_s2.py b/decloud/production/monthly_synthesis_processor_s2.py index e2ad8c4..f2de7f4 100644 --- a/decloud/production/monthly_synthesis_processor_s2.py +++ b/decloud/production/monthly_synthesis_processor_s2.py @@ -74,10 +74,10 @@ def monthly_synthesis_inference(sources, sources_scales, pad, ts, savedmodel_dir # Setup TensorFlowModelServe system.set_env_var("OTB_TF_NSOURCES", str(len(sources))) - infer = pyotb.App("TensorflowModelServe", execute=False) + infer = pyotb.App("TensorflowModelServe", frozen=True) # Setup BandMath for post processing - bm = pyotb.App("BandMath", execute=False) + bm = pyotb.App("BandMath", frozen=True) mask_expr = "0" # Inputs diff --git a/decloud/production/monthly_synthesis_processor_s2s1.py b/decloud/production/monthly_synthesis_processor_s2s1.py index 10adc0a..38c02f9 100644 --- a/decloud/production/monthly_synthesis_processor_s2s1.py +++ b/decloud/production/monthly_synthesis_processor_s2s1.py @@ -74,10 +74,10 @@ def monthly_synthesis_inference(sources, sources_scales, pad, ts, savedmodel_dir # Setup TensorFlowModelServe system.set_env_var("OTB_TF_NSOURCES", str(len(sources))) - infer = pyotb.App("TensorflowModelServe", execute=False) + infer = pyotb.App("TensorflowModelServe", frozen=True) # Setup BandMath for post processing - bm = pyotb.App("BandMath", execute=False) + bm = pyotb.App("BandMath", frozen=True) mask_expr = "0" # Inputs -- GitLab