Closed KhomZ closed 2 years ago
NameError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_13688/2512685376.py in 6 ] 7 ----> 8 result = model.fit(image_gen.flow(trainX, trainY, batch_size=BATCH_SIZE), 9 steps_per_epoch=len(trainX) // BATCH_SIZE, 10 validation_data=(testX, testY),
NameError: name 'image_gen' is not defined
https://studymachinelearning.com/keras-imagedatagenerator-with-flow/
pip install image-generator
image_gen = ImageDataGenerator(rotation_range=10, width_shift_range=0.1, height_shift_range=0.1, shear_range=0.1, zoom_range=0.1, fill_mode="nearest" )
NameError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_13688/2512685376.py in
6 ]
7
----> 8 result = model.fit(image_gen.flow(trainX, trainY, batch_size=BATCH_SIZE),
9 steps_per_epoch=len(trainX) // BATCH_SIZE,
10 validation_data=(testX, testY),
NameError: name 'image_gen' is not defined