Commit 17ba084d authored by Remi Cresson's avatar Remi Cresson
Browse files

FIX: inference wrt OTBTF 3.3.0 and pyotb 1.5.3

1 merge request!7FIX: follow API changes in pyotb
Pipeline #39793 passed with stages
in 10 minutes and 38 seconds
Showing with 3 additions and 3 deletions
+3 -3
...@@ -90,7 +90,7 @@ def inference(sources, sources_scales, pad, ts, savedmodel_dir, out_tensor, out_ ...@@ -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.names": [padded_tensor_name(out_tensor, pad)],
"output.efieldx": efield, "output.efieldy": efield, "output.efieldx": efield, "output.efieldy": efield,
"optim.tilesizex": efield, "optim.tilesizey": efield, "optim.tilesizex": efield, "optim.tilesizey": efield,
"optim.disabletiling": 1}) "optim.disabletiling": True})
infer = pyotb.TensorflowModelServe(parameters) infer = pyotb.TensorflowModelServe(parameters)
# Post Processing # Post Processing
......
...@@ -113,7 +113,7 @@ def monthly_synthesis_inference(sources, sources_scales, pad, ts, savedmodel_dir ...@@ -113,7 +113,7 @@ def monthly_synthesis_inference(sources, sources_scales, pad, ts, savedmodel_dir
"output.names": [padded_tensor_name(out_tensor, pad)], "output.names": [padded_tensor_name(out_tensor, pad)],
"output.efieldx": efield, "output.efieldy": efield, "output.efieldx": efield, "output.efieldy": efield,
"optim.tilesizex": efield, "optim.tilesizey": efield, "optim.tilesizex": efield, "optim.tilesizey": efield,
"optim.disabletiling": 1}) "optim.disabletiling": True})
infer = pyotb.TensorflowModelServe(infer_params) infer = pyotb.TensorflowModelServe(infer_params)
# For ESA Sentinel-2, remove potential zeros the network may have introduced in the valid parts of the image # For ESA Sentinel-2, remove potential zeros the network may have introduced in the valid parts of the image
......
...@@ -113,7 +113,7 @@ def monthly_synthesis_inference(sources, sources_scales, pad, ts, savedmodel_dir ...@@ -113,7 +113,7 @@ def monthly_synthesis_inference(sources, sources_scales, pad, ts, savedmodel_dir
"output.names": [padded_tensor_name(out_tensor, pad)], "output.names": [padded_tensor_name(out_tensor, pad)],
"output.efieldx": efield, "output.efieldy": efield, "output.efieldx": efield, "output.efieldy": efield,
"optim.tilesizex": efield, "optim.tilesizey": efield, "optim.tilesizex": efield, "optim.tilesizey": efield,
"optim.disabletiling": 1}) "optim.disabletiling": True})
infer = pyotb.TensorflowModelServe(infer_params) infer = pyotb.TensorflowModelServe(infer_params)
# For ESA Sentinel-2, remove potential zeros the network may have introduced in the valid parts of the image # For ESA Sentinel-2, remove potential zeros the network may have introduced in the valid parts of the image
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment