diff --git a/decloud/production/inference.py b/decloud/production/inference.py index e85544ac142bac07d20a1b93ed6360a4e7e43389..a4296d4d3eeeadea2aa04bce652078ff34ecb9f4 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 e2ad8c4cb79e748dd86500517e3914761f695b31..f2de7f42dc6f0acf4f300bd3659fa134c1c2fcce 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 10adc0aea0faeaa99f090f9b81d2ca1c243da2d2..38c02f9d41978bdaad58a466d96481df56f6fa98 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