remicres / otbtf

Deep learning with otb (mirror of https://forgemia.inra.fr/orfeo-toolbox/otbtf)
Apache License 2.0
161 stars 39 forks source link

how to read saved model #90

Open mega12345678 opened 1 year ago

mega12345678 commented 1 year ago

Thank you for your otbcli in CNN. it is powerfull and succeed running in my PC. btw, how to read saved model? there are two file as you mention in your tutorial. when I open in featherpad or genie, but the text can not be read. May be because the file is not in yaml like randomforest. When the file is in yaml format, featherpad or genie can read it. The files is in https://drive.google.com/drive/folders/1zdhBot6yKRr4eAzIj8eCawMzbTyS8C1i?usp=share_link. Thank you.

remicres commented 1 year ago

Hi, the SavedModel is stored in protobuf format, i.e. compressed bytes that you can't read in a text editor. If you want to analyze the weights for instance, you have to use Tensorflow to load it and code something to read its parameters.

mega12345678 commented 1 year ago

If I may suggest you to add tool in otbtf, so that it can load and read the result of CNN. btw, thank you for your response. I will try using google colab to read the result of CNN.