-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Neural network improved [v0.1.0] (#1)
* Artifact - Best parameter for train neural network (.json) - Face rappresentation 'pickled' for avoid face recognition process (.dat) - Neural network model tuned * v0.1.0 BugFix - predict_image: Ensure that classifier is loaded before apply face recognition - load_classifier_from_file: Avoid to raise exception in case of no valid classifier written in configuration. Instead handle only the training/tuning process - init_dataset: Ensure that image is processable Enhancements - dump_model: Handle more use case - Set model path as default if not provided - Set 'model' as file name if not provided - Dump model parameter + model name - init_peoples_list: Initialization of new people is now parallelized - init_peoples_list_core is delegated to execute the core work - init_dataset: Recognition and parsing of new face is now parallelized - init_dataset_core is delegated to execute the core work New Features - unzip_data: Create method for unzip archive in oreder to semplify upload/storage phase - remove_dir: Create method for remove the data after be processed - dump_dataset: Create method for 'picklelize' the image processed and recognized - verify_extension: Create a basecode for verify the type of the file uploaded - tune_network: Create method for tune the hyperparameter of the nerual network - Handle zip file (apply face recognition process - Handle pre-processed data (picklelized dataset) - tuning: Search among every possibile hyperparameter combination and train the neural network - verify_performance: Print lot of usefull information about the trained model
- Loading branch information
Alessio Savi
authored and
GitHub Enterprise
committed
May 19, 2019
1 parent
16997c7
commit e3faf10
Showing
10 changed files
with
316 additions
and
50 deletions.
There are no files selected for viewing
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### Neural Network model folder | ||
|
||
This directory will contains the model generated by the neural network training among the give images | ||
|
||
#### image_dataset-DATE_TIME.**dat** | ||
|
||
Contains the dataset parsed from the image | ||
|
||
#### model-DATE_TIME.**clf** | ||
|
||
Is the neural model able to classify a given face | ||
|
||
#### model-DATE_TIME.**json** | ||
|
||
Contains the json configuration for training the neural network with the best parameters |
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"classifier_file": "dataset/model/model-20190519_210950", | ||
"params": { | ||
"algorithm": "ball_tree", | ||
"metric": "minkowski", | ||
"n_neighbors": 78, | ||
"p": 2, | ||
"weights": "distance" | ||
} | ||
} |
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
Oops, something went wrong.