Skip to content

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

Open
@github4mathews

Description

@github4mathews

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions