From 17ba084d6fe2c1608527ddd9609abb6587bce7be Mon Sep 17 00:00:00 2001
From: Remi Cresson <remi.cresson@inrae.fr>
Date: Fri, 30 Sep 2022 14:50:08 +0200
Subject: [PATCH] FIX: inference wrt OTBTF 3.3.0 and pyotb 1.5.3

---
 decloud/production/inference.py                        | 2 +-
 decloud/production/monthly_synthesis_processor_s2.py   | 2 +-
 decloud/production/monthly_synthesis_processor_s2s1.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/decloud/production/inference.py b/decloud/production/inference.py
index 4570577..4aa8df3 100644
--- a/decloud/production/inference.py
+++ b/decloud/production/inference.py
@@ -90,7 +90,7 @@ def inference(sources, sources_scales, pad, ts, savedmodel_dir, out_tensor, out_
                        "output.names": [padded_tensor_name(out_tensor, pad)],
                        "output.efieldx": efield, "output.efieldy": efield,
                        "optim.tilesizex": efield, "optim.tilesizey": efield,
-                       "optim.disabletiling": 1})
+                       "optim.disabletiling": True})
     infer = pyotb.TensorflowModelServe(parameters)
 
     # Post Processing
diff --git a/decloud/production/monthly_synthesis_processor_s2.py b/decloud/production/monthly_synthesis_processor_s2.py
index b062414..8180c64 100644
--- a/decloud/production/monthly_synthesis_processor_s2.py
+++ b/decloud/production/monthly_synthesis_processor_s2.py
@@ -113,7 +113,7 @@ def monthly_synthesis_inference(sources, sources_scales, pad, ts, savedmodel_dir
                          "output.names": [padded_tensor_name(out_tensor, pad)],
                          "output.efieldx": efield, "output.efieldy": efield,
                          "optim.tilesizex": efield, "optim.tilesizey": efield,
-                         "optim.disabletiling": 1})
+                         "optim.disabletiling": True})
     infer = pyotb.TensorflowModelServe(infer_params)
 
     # For ESA Sentinel-2, remove potential zeros the network may have introduced in the valid parts of the image
diff --git a/decloud/production/monthly_synthesis_processor_s2s1.py b/decloud/production/monthly_synthesis_processor_s2s1.py
index 46e10e7..36ec22a 100644
--- a/decloud/production/monthly_synthesis_processor_s2s1.py
+++ b/decloud/production/monthly_synthesis_processor_s2s1.py
@@ -113,7 +113,7 @@ def monthly_synthesis_inference(sources, sources_scales, pad, ts, savedmodel_dir
                          "output.names": [padded_tensor_name(out_tensor, pad)],
                          "output.efieldx": efield, "output.efieldy": efield,
                          "optim.tilesizex": efield, "optim.tilesizey": efield,
-                         "optim.disabletiling": 1})
+                         "optim.disabletiling": True})
     infer = pyotb.TensorflowModelServe(infer_params)
 
     # For ESA Sentinel-2, remove potential zeros the network may have introduced in the valid parts of the image
-- 
GitLab