Closed deepanshubaghel closed 1 month ago
@Akasxh
Well I've just reviewed V4 and it seems excellent. Could you explain the key difference other than using scheduler while training the model?
I was implementing a similar approach but it reached a point, that it was not overfitting at all, is there any other change you've implemented?
Well I've just reviewed V4 and it seems excellent. Could you explain the key difference other than using scheduler while training the model?
I was implementing a similar approach but it reached a point, that it was not overfitting at all, is there any other change you've implemented?
V4 improves on V3 by adding Batch Normalization, more aggressive data augmentation, optimized steps per epoch, and validation steps. These changes make the model more robust, better regularized, and less prone to overfitting, leading to improved generalization.
Could you point out the difference, and I have noticed that there is one less dense layer at the output.
Could you point out the difference, and I have noticed that there is one less dense layer at the output.
here steps per epoch will be changed
[One major change between V3 and V4 was the dataset. In V4, a new dataset was introduced because the dataset used in V3 was not available. This change significantly impacted the model's performance and required adjustments to the preprocessing steps and possibly the model architecture to suit the new dataset. ]
The change in dataset is a major one, can you try using the dataset i have provided and modify the dataset you have along with using images from the provided dataset. Having one less terrain makes a huge change, and we are only using 5, so I want you to not reduce it further. you can just use the dataset i've provided and add your images and train the model with one more filter in the output.
Please do that.
https://drive.google.com/drive/folders/1hbL1m39TF8ABe0oCj5XYDbHXY-gPIjcQ?usp=drive_link
the dataset with around 10k images of 5 classes
The change in dataset is a major one, can you try using the dataset i have provided and modify the dataset you have along with using images from the provided dataset. Having one less terrain makes a huge change, and we are only using 5, so I want you to not reduce it further. you can just use the dataset i've provided and add your images and train the model with one more filter in the output.
Please do that.
Did you get it now? How good was your accuracy now after adding one class and that dataset?
sgd with momentum is essentially adam isn't it?
sgd with momentum is essentially adam isn't it?
SGD with Momentum vs Adam
Adam with 4 layer cnn
RMSprop with 4 layer cnn
RMSprop with 3 layer cnn
Adagrad
RMSprop with 3 layer CNN gave pretty good results, why do you think so it gave suxh good results?
Well please write a separate readme along with this commit that has any of your unique findings you have discovered while experimenting with these architectures. The findings would help people learn more about the optimizers as well as how the architecture is affecting the accuracy.
RMSprop with 3 layer CNN gave pretty good results, why do you think so it gave suxh good results?
RMSprop worked well with the 3-layer CNN because it dynamically adjusts the learning rate, allowing the model to learn efficiently without getting stuck in local minima. I’ve been experimenting with different optimizers based on my experience to see which one delivers the best performance, as finding the right optimizer can make a big difference in how well the model trains..
The same is in Adam and to say Adam is momentum + rmsprop here as well.
Adam has learning rate optimiser built in, has faster convergence due to momentum.
There are few versions of Adam that outperforms it and all verz Adam is known for its efficiency vs computation time
The same is in Adam and to say Adam is momentum + rmsprop here as well.
Adam has learning rate optimiser built in, has faster convergence due to momentum.
There are few versions of Adam that outperforms it and all verz Adam is known for its efficiency vs computation time
Thanks, @Akasxh! I really appreciate your insights. I’m looking forward to diving into those alternatives and seeing how they perform. It’s an exciting journey for me as I explore the impact of different optimizers on model training. I’m eager to learn more and see what I can discover!
@Akasxh
This pull request enhances the terrain recognition model . It implements a convolutional neural network (CNN) architecture designed for improved accuracy and efficiency in classifying terrain images.
### Key Changes Model Architecture:
Data Augmentation:
Training Process:
Model Evaluation:
Model Saving:
After training, the model is saved for future use, allowing for easy loading and inference without retraining.
Organize the Dataset
Data Main/ ├── train/ ├── test/
issue #19