Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create data_preprocessing.py #280

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Conversation

AKSHITHA-CHILUKA
Copy link
Member

This commit adds the data_preprocessing.py script to the src directory. The data_preprocessing.py script contains a function preprocess_data that preprocesses the dataset for training and validation. The function utilizes ImageDataGenerator from TensorFlow Keras to perform data augmentation and rescaling. It takes the path to the dataset directory, batch size, and target image size as input and returns preprocessed training and validation datasets along with a list of class labels.

This commit adds the data_preprocessing.py script to the src directory. The data_preprocessing.py script contains a function preprocess_data that preprocesses the dataset for training and validation. The function utilizes ImageDataGenerator from TensorFlow Keras to perform data augmentation and rescaling. It takes the path to the dataset directory, batch size, and target image size as input and returns preprocessed training and validation datasets along with a list of class labels.
Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@sanjay-kv sanjay-kv merged commit c53a19f into recodehive:main Jun 12, 2024
2 checks passed
This was referenced Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants