Hi Nono, sorry to jump between videos with comments. I was wondering if there is a way to import the h5 Pix2Pix model to c#. I have followed the tutorial - www.tensorflow.org/tutorials/generative/pix2pix#training to create a model and it works fine in python. I can import the h5 model in different python files and predict accurately. however when i try to convert the model to use in C# (using onnx) it is not able to convert the model. also if i try to use Microsoft.ML.Tensorflow to import the .pb format created in python, i get in invalid graph def error. I am quite new to ML and am not so familiar with some of the terms but i thought one of the reasons for the issue was unfrozen graphs, so i follows another tut online to freeze my model, and it didn't work either.. I'm not sure what to do to solve this issue. but if you have any suggestions please let me know.
3 жыл бұрын
Hey, @Kashif! Thanks for your question. (This would be a great discussion to ask in the #machine-learning channel of the Discord server -- here's an invite › discord.com/invite/DdsefVZ.) From my experience, it's not easy or straightforward to convert Pix2Pix trained models to other formats (e.g., TensorFlow.js or TensorFlow). Have you tried using TensorFlowSharp? github.com/migueldeicaza/TensorFlowSharp - I've loaded other TensorFlow SavedGraph models (pb folders) with that library before. Thanks again! Cheers, Nono
Пікірлер: 2