KhomZ / Automatic-Number-Plate-Recognition-with-SMS-Alert

Automatic Nepali Number Plate Recognition with Sms Reporting System x Real Time Machine Learning Approach on Traffic Congestion Prediction System in Internet of Vehicles
MIT License
1 stars 0 forks source link

NameError: name 'image_gen' is not defined #18

Closed KhomZ closed 2 years ago

KhomZ commented 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

KhomZ commented 2 years ago

https://studymachinelearning.com/keras-imagedatagenerator-with-flow/

KhomZ commented 2 years ago

pip install image-generator

KhomZ commented 2 years ago

generate data augumentation method

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" )