Browse Source

feat(emotion-detector): refine structure of the project

pull/2483/head
nprimo 9 months ago committed by Niccolò Primo
parent
commit
a1aee997f9
  1. 66
      subjects/ai/emotions-detector/README.md
  2. 50
      subjects/ai/emotions-detector/audit/README.md

66
subjects/ai/emotions-detector/README.md

@ -62,48 +62,40 @@ For that step, I suggest again to use **OpenCV** as much as possible. This link
``` ```
project project
│ README.md ├── data
│ environment.yml    ├── test.csv
   ├── train.csv
└───data    └── xxx.csv
│ │ train.csv ├── environment.yml
│ │ test.csv ├── README.md
│ │ xxx.csv ├── results
   ├── hack_cnn
└───results      ├── hacked_image.png
│ │      └── input_image.png
| |───model (free format)    ├── model
│ │ │ my_own_model.pkl      ├── learning_curves.png
│ │ │ my_own_model_architecture.txt      ├── my_own_model_architecture.txt
│ │ │ tensorboard.png      ├── my_own_model.pkl
│ │ │ learning_curves.png      ├── pre_trained_model_architecture.txt
│ │ │ pre_trained_model.pkl (optional)      └── pre_trained_model.pkl
│ │ │ pre_trained_model_architecture.txt (optional)    └── preprocessing_test
│ │    ├── image0.png
| |───hack_cnn (free format)    ├── image1.png
│ │ │ hacked_image.png (optional)    ├── image_n.png
│ │ │ input_image.png    └── input_video.mp4
│ │ └── scripts
| |───preprocessing_test ├── hack_the_cnn.py
| | | input_video.mp4 (free format) ├── predict_live_stream.py
│ │ │ image0.png (free format) ├── predict.py
│ │ │ image1.png ├── preprocess.py
│ │ │ imagen.png └── train.py
│ │ │ image20.png
|
|───scripts
│ │ train.py
│ │ predict.py
│ │ preprocess.py
│ │ predict_live_stream.py
│ │ hack_the_cnn.py
``` ```
- Run **predict.py** expected output: - Run **predict.py** expected output:
```prompt ```prompt
python predict.py python ./scripts/predict.py
Accuracy on test set: 72% Accuracy on test set: 72%
@ -112,7 +104,7 @@ Accuracy on test set: 72%
- Run **predict_live_stream.py** expected output: - Run **predict_live_stream.py** expected output:
```prompt ```prompt
python predict_live_stream.py python ./scripts/predict_live_stream.py
Reading video stream ... Reading video stream ...

50
subjects/ai/emotions-detector/audit/README.md

@ -2,47 +2,7 @@
##### Preliminary ##### Preliminary
``` ###### Does the structure of the project is equivalent to the one described in the subject `Delivery` section?
project
│ README.md
│ environment.yml
└───data
│ │ train.csv
│ │ test.csv
│ │ xxx.csv
└───results
│ │
| |───model (free format)
│ │ │ my_own_model.pkl
│ │ │ my_own_model_architecture.txt
│ │ │ tensorboard.png
│ │ │ learning_curves.png
│ │ │ pre_trained_model.pkl (optional)
│ │ │ pre_trained_model_architecture.txt (optional)
│ │
| |───hack_cnn (free format)
│ │ │ hacked_image.png (optional)
│ │ │ input_image.png
│ │
| |───preprocessing_test
| | | input_video.mp4 (free format)
│ │ │ image0.png (free format)
│ │ │ image1.png
│ │ │ imagen.png
│ │ │ image20.png
|
|───scripts
│ │ train.py
│ │ predict.py
│ │ preprocess.py
│ │ predict_live_stream.py
│ │ hack_the_cnn.py
```
###### Does the structure of the project look as above?
###### Does the readme file summarize how to run the code and explain the global approach? ###### Does the readme file summarize how to run the code and explain the global approach?
@ -64,10 +24,10 @@ project
###### Does the text document explain why the architecture was chosen and what were the previous iterations? ###### Does the text document explain why the architecture was chosen and what were the previous iterations?
###### Does the following command `python predict.py ` run without any error and returns an accuracy greater than 70%? ###### Does the following command `python ./scripts/predict.py` run without any error and returns an accuracy greater than 70%?
```prompt ```prompt
python predict.py python ./scripts/predict.py
Accuracy on test set: 72% Accuracy on test set: 72%
@ -87,10 +47,10 @@ project
###### If there's an issue related to the webcam, does the code takes as input a video recorded video stream? ###### If there's an issue related to the webcam, does the code takes as input a video recorded video stream?
###### Does the following command `predict_live_stream.py` run without any error and return the following? ###### Does the following command `python ./scripts/predict_live_stream.py` run without any error and return the following?
```prompt ```prompt
python predict_live_stream.py python ./scripts/predict_live_stream.py
Reading video stream ... Reading video stream ...

Loading…
Cancel
Save