Created
May 7, 2021 13:01
-
-
Save PranjalDureja0002/747edd86c5e8e218fe742d252dba80ca to your computer and use it in GitHub Desktop.
model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_mask(pred_mask1, pred_mask2): | |
"""Reference - https://github.com/jainammm/TableNet/blob/master/TableNet.ipynb | |
""" | |
pred_mask1 = tf.argmax(pred_mask1, axis=-1) | |
pred_mask1 = pred_mask1[..., tf.newaxis] | |
pred_mask2 = tf.argmax(pred_mask2, axis=-1) | |
pred_mask2 = pred_mask2[..., tf.newaxis] | |
return pred_mask1[0], pred_mask2[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment