Why does my code get this error,My code is as follows:`
from tensorflow.keras.src.preprocessing.image import ImageDataGenerator
`
This is the library I brought in,Then I used him,code follows:
validation_generator = train_datagen.flow_from_dataframe(
val_data,
'./train',
x_col='filename',
y_col='category',
target_size=Image_Size,
class_mode='categorical',
batch_size=Batch_Size
)
but the “Image_Size” and “Batch_Size” also report error ,Same error as above
Please help with the answer,thanks!!!
Please help with the answer,thanks!!!
New contributor
yanweiz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.