-
Notifications
You must be signed in to change notification settings - Fork 1
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
3 data preprocessing #8
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit includes a files to parse XML files. I am still working on loading images using Python's PIL. There is also a model to visualize the annotations by drawing bounding boxes around labeled images. The boxes are in one of three colors: - green for wearing a mask - yellow for wearing a mask incorrectly - red for not wearing a mask
Use python run_pipeline.py --help to see options. Also commented out pytorch code because it is too complicated for now and is causing compile-time errors.
The new dataset is formed by taking each of the original images and cropping out each face as specified by the annotations. To create this new dataset, you must have the original dataset in ./archive/images and ./archive/annotations. Then, run python crop.py, and a new directory will be created called ./archive/cropped_images. Furthermore, a file called cropped_labels.csv will be created to store the new labels for the images matching to their ids.
SimpleImage.py will make it so we can take a png file and convert it to an image array.
Ignores .idea
…/Face-Mask-Detection into 3-data-preprocessing
This was
linked to
issues
Oct 21, 2020
Closed
Closed
This pull request was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.