Hello @KALLOL_ROY ,
There are mistakes in every function. I am explaining you one by one here.
1ST Function: create_train_val_dirs
2ND Function : split_data
3RD Function : train_val_generators
Under : Instantiate the ImageDataGenerator class (don’t forget to set the rescale argument)
- Rescale should be floating point
- Batch_size is wrong
4TH Function : create_model
Hint is given:
Complete the create_model function below which should return a Keras’ Sequential model.
Aside from defining the architecture of the model, you should also compile it so make sure to use a loss function that is compatible with the class_mode you defined in the previous exercise, which should also be compatible with the output of your network. You can tell if they aren’t compatible if you get an error during training.
Note that you should use at least 3 convolution layers to achieve the desired performance.
- Half part is correct, but you have taken too many layers.
- Optimizer is wrong.
- And several Parameters are not correct.
I would suggest you to go through the lessons properly.
Hope this helps.
With regards,
Nilosree Sengupta