aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@michaels-mbp-3.devices.brown.edu>2022-05-07 17:58:34 -0400
committerMichael Foiani <sotech117@michaels-mbp-3.devices.brown.edu>2022-05-07 17:58:34 -0400
commit5d31ad51490766acd5d4f8be1cc8b1fbdddd27be (patch)
tree23fd6381465108a764b14d2900c63b41b7274bac /main.py
parent7a03723ffb9ac7613f3c5537a4d5c7cb9a4a3f3a (diff)
mege with pycache
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.py b/main.py
index 4497cce0..193d7c7a 100644
--- a/main.py
+++ b/main.py
@@ -70,7 +70,10 @@ def main():
final_image = tf.squeeze(my_model.x)
- plt.imshow(final_image).astype('uint8')
+ # convert image to uint8
+ final_image = tf.cast(final_image, tf.uint8)
+
+ plt.imshow(final_image)
imsave(ARGS.savefile, final_image)