removed duplicate function | Improved CNN-Model; Added 'prediction.py' #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@ModusMorris:
Removed duplicate is_video_in_csv() from generator.py.
Now imports is_video_in_csv() from metadata_handler.py instead.
Maintains clean, modular, and reusable code
@AlhaririAnas:
Experiments with Various Models
I experimented with various models, and the best results were achieved with the ResNet1DInspired model, currently named StepCounterCNN.
This model is based on a 1D Convolutional Neural Network (CNN) architecture with residual blocks, which help in efficiently training. The architecture consists of:
New results:


New File:
prediction.pyI created the prediction.py file. When this file is executed, it accesses the trained model and makes predictions. I integrated this functionality into training.py to make the code more organized.
Improving Generalization
To improve the model's generalization, I added slight noise to the training data. This has shown to enhance learning and reduce the risk of overfitting.
If you have any suggestions for improvement or feedback, please let me know.