Tensorflow Google Tutorial on Image Classification (Flowers) : A note on use of untar = True in get_file method
tf.keras.utils.get_file("/content/flowers/flower_photos.tgz" , origin = url,
extract = True)
The tensorflow tutorial currently available at
https://www.tensorflow.org/tutorials/images/classification
(as in 11-May-2021) uses the last parameter as untar = True instead of extract = True above.
but untar is deprecated and the documentation recommends to use extract instead of untar.
Further using untat=True causes erroneous behavior also , firstly it doesn't extract the file,
secondly it saves the ".tgz" file by adding an extension ".tar.gz" to the file name
thus making it "flower_photos.tgz.tar.gz".
No comments:
Post a Comment