I'm currently experimenting with superresolution using CNNs. To serve my model I'll need to frezze it first, into a .pb file, right? Being a newbie I don't really know how to do that. My model basically goes like this:
low res input image -> bicubic scaling (2x) -> fed to CNN -> CNN output image with the same (2x) resolution.
My model has 3 simple layers. The output layer is called "output". You can find the model here:
https://github.com/pinae/Superresolution
It saves its progress like so:
- checkpoint
- network_params.data-00000-of-00001
- network_params.index
- network_params.meta
I see to ways of doing this.
First: Follow this tutorial: https://blog.metaflow.fr/tensorflow-how-to-freeze-a-model-and-serve-it-with-a-python-api-d4f3596b3adc
This seems to be made for multiple output nodes (for identification) and not for superresolution which only has one output. I don't know how to modify that script for my usage.
Second: Use freeze_graph.py
Again, I'm totally lost on how to use this with my model. All examples seem to be based on the MNIST tutorial.
Thanks!