SciSharp-Stack-Examples icon indicating copy to clipboard operation
SciSharp-Stack-Examples copied to clipboard

module 'tensorflow.keras.preprocessing' has no attribute 'image_dataset_from_directory'

Open github4mathews opened this issue 4 years ago • 5 comments

module 'tensorflow.keras.preprocessing' has no attribute 'image_dataset_from_directory'

train_ds = tf.keras.preprocessing.image_dataset_from_directory( data_dir, validation_split=0.2, subset="training", seed=123, image_size=(img_height, img_width), batch_size=batch_size)

in image_classification.py

github4mathews avatar Oct 24 '20 06:10 github4mathews

There it is but with bug for this moment.

image

Oceania2018 avatar Oct 24 '20 13:10 Oceania2018

@Oceania2018 is the bug fixed? NullReferenceException thrown when executing the code . https://github.com/SciSharp/SciSharp-Stack-Examples/issues/27

pardont avatar Nov 27 '20 10:11 pardont

@pardont Not yet.

Oceania2018 avatar Nov 27 '20 13:11 Oceania2018

@Oceania2018 is there a recommended workaround for this in the meantime?

lqdev avatar Dec 13 '20 00:12 lqdev

@lqdev Same issue as https://github.com/SciSharp/TensorFlow.NET/issues/666, fixed the image_dataset_from_directory, but still has other bug for the rest part of that example.

Oceania2018 avatar Dec 14 '20 03:12 Oceania2018