Skip to content
Snippets Groups Projects
Commit e182e723 authored by Alain KOMATY's avatar Alain KOMATY
Browse files

reformatted the README

parent 1c4e652e
No related branches found
No related tags found
No related merge requests found
...@@ -42,12 +42,27 @@ This repository is organised as follows: ...@@ -42,12 +42,27 @@ This repository is organised as follows:
## Running the pipeline ## Running the pipeline
1. Download the database from the following link: https://www.idiap.ch/en/dataset/phymatt 1. Download the database from the following link: https://www.idiap.ch/en/dataset/phymatt
2. Create a list of the videos to be used for the experiment. The list should contain the path for each video you want in the experiment. If you want all videos, you can use the following command: `find <path_to_database> -name "*.mp4" > <path_to_list>` 2. Create a list of the videos to be used for the experiment. The list should contain the path for each video you want in the experiment. If you want all videos, you can use the following command:
3. Run the frames extraction code as follows: `python preprocessor/extract_frames.py -l <path_to_list> -o <path_to_output_folder>`
4. Run the database organization code as follows: `python database/create_database_dataframe.py --frames_list --output_path -metadata_filename -save_mode --min_face_size` `find <path_to_database> -name "*.mp4" > <path_to_list>`
5. Run the pipeline as follows: `python pipeline_vuln.py --database_path --output_path --metadata_filename --save_mode --min_face_size --attack_type --attack_params --attac`
3. Run the frames extraction code as follows:
`python preprocessor/extract_frames.py -l <path_to_list> -o <path_to_output_folder>`
4. Run the database organization code as follows:
`python database/create_database_dataframe.py --frames_list --output_path -metadata_filename -save_mode --min_face_size`
5. Run the pipeline as follows:
`python pipeline_vuln.py --database_path --output_path --metadata_filename --save_mode --min_face_size --attack_type --attack_params --attac`
6. Once you have the score files, namely the `score-dev.csv`, you can use the script `utils/split_scores.sh` to split the scores into bona-fide and attack scores. The script will create three files: `scores-dev_print-attack.csv`, `scores-dev_replay-attack.csv` and `scores-dev_hyg-maks.csv`. 6. Once you have the score files, namely the `score-dev.csv`, you can use the script `utils/split_scores.sh` to split the scores into bona-fide and attack scores. The script will create three files: `scores-dev_print-attack.csv`, `scores-dev_replay-attack.csv` and `scores-dev_hyg-maks.csv`.
7. You can then use these files to compute the metrics as follows: `bob vuln metrics scores-dev_print-attack.csv scores-dev_replay-attack.csv scores-dev_hyg-maks.csv`
7. You can then use these files to compute the metrics as follows:
`bob vuln metrics scores-dev_print-attack.csv scores-dev_replay-attack.csv scores-dev_hyg-maks.csv`
## Contact ## Contact
For questions or reporting issues to this software package, contact our development [mailing list](https://www.idiap.ch/software/bob/discuss). For questions or reporting issues to this software package, contact our development [mailing list](https://www.idiap.ch/software/bob/discuss).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment