Open AmirthaRajan opened 3 years ago
You answered your own question:
When i tried using the tf.keras.preprocessing.image_dataset_from_directory in TF 2.5.0 it works fine but on trying the same in nvidia-tensorflow package it is says image_dataset doesn't exist.
This codebase is TF 1.15.X not TF 2.5. TF 1.15 is 2 years old so I can guarantee many APIs will be missing.
You answered your own question:
When i tried using the tf.keras.preprocessing.image_dataset_from_directory in TF 2.5.0 it works fine but on trying the same in nvidia-tensorflow package it is says image_dataset doesn't exist.
This codebase is TF 1.15.X not TF 2.5. TF 1.15 is 2 years old so I can guarantee many APIs will be missing.
Sorry for the confusion when I mentioned version TF 2.5 I was talking about Official TensorFlow (google) package and here nvidia-tensorflow package doesn't have version above 1.15.x
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python/keras/preprocessing https://github.com/NVIDIA/tensorflow/tree/r1.15.5%2Bnv21.05/tensorflow/python/keras/preprocessing
I compared this module in both Official TF and Nvidia-TF from above links. So was concerned on its date of release in upcoming builds...
System information
When i tried using the
tf.keras.preprocessing.image_dataset_from_directory
in TF 2.5.0 it works fine but on trying the same in nvidia-tensorflow package it is says image_dataset doesn't exist.Code to reproduce the issue ` import pathlib import tensorflow as tf from tensorflow import keras
data_dir_train = pathlib.Path("/images_train")
train_ds = tf.keras.preprocessing.image_dataset_from_directory( data_dir_train, validation_split=0.2, subset="training", seed=123, image_size=(180, 180), batch_size=32)`
Other info / logs
AttributeError Traceback (most recent call last)