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

Smiling_Detector #1851

Merged
merged 4 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions Awesome-face-operations/smiling_detection/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Smile Detection using Neural Networks

This project trains a neural network to detect smiling faces in images.

## Process Overview

1. Dataset Preparation:
- Organize your dataset with images of smiling faces in the `dataset/smile` folder and non-smiling faces in the `dataset/non_smile` folder.
- Ensure test images are in a separate folder, without subfolders.
you can download images from https://www.kaggle.com/datasets/chazzer/smiling-or-not-face-data.

2. Training the Model:
- Run `train_model.py` to load, preprocess, and train a Convolutional Neural Network (CNN) on the dataset.
- The model is saved as `smiling_detection_model.h5`.

3. Testing the Model:
- Use `test_model.py` to load the saved model and predict labels for the test images.
- The script displays test images with their predicted labels.

## Use Cases

Integrate this feature into applications like photo management systems, social media platforms, and digital marketing tools to automatically identify and tag images with smiling faces, enhancing user experience and enabling more personalized content delivery.

## Getting Started
`

1. **Install the required libraries**:

pip install -r requirements.txt


2. **Train the model**:

python train_model.py --dataset_path path/to/dataset --model_path smiling_detection_model.h5


3. **Test the model**:

python test_model.py --test_path path/to/testing/dataset --model_path smiling_detection_model.h5


## License

This project is licensed under the MIT License.

Large diffs are not rendered by default.

Binary file not shown.
Loading