Skip to content

Commit

Permalink
Complete move of the TF conversion script
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnarak authored Sep 6, 2024
1 parent 9b5a3c8 commit d2e6927
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions interop/save_model_tf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#The following snippet is executed in Python 3.9 with TensorFlow 2.10. Currently, the import functionality in MATLAB support upto TF 2.10.
#The command to install TensorFlow 2.10 is:
#pip install tensorflow==2.10

import tensorflow as tf
model = tf.keras.models.load_model('2019_09_11_23_32_unet_single_1024_mean_absolute_error_Ai93-0450.h5')
model.save('TF_2019_09_11_23_32_unet_single_1024_mean_absolute_error_Ai93-0450', save_format='tf')

0 comments on commit d2e6927

Please sign in to comment.