Improve OTBTF compatibility
- for the moment, for the app TensorflowModelServe, the input number of sources must be specified by the user in env var OTB_TF_NSOURCES. pyotb could handle this when running
pyotb.TensorflowModelServe(sources=[source1, source2...])
-
pyotb.run_tf_function
cannot be executed several times. I think if we execute theimport tensorflow; model.save; ...
inside an independant subprocess instead of multiprocessing, it should fix the problem. Keep the same logic as inapps.py