TensorFlow: Difference between revisions

Line 155: Line 155:
pip install tensorflow-addons
pip install tensorflow-addons
</pre>
</pre>
===<code>tfa.image.interpolate_bilinea</code>===
[https://www.tensorflow.org/addons/api_docs/python/tfa/image/interpolate_bilinear Reference]
This is a bilinear interpolation. It is equivalent to PyTorch's grid_sample. 
However, you need to reshape the grid to a nx2 array and make sure <code>indexing='xy'</code> when calling the function. 
You can reshape the output back to the dimensions of your original image.


==Tensorflow Graphics==
==Tensorflow Graphics==