Commit 2e3ebad672d8303875ef16946286736369ba49b4
1 parent
c4c126e7
added training scripts
Showing
3 changed files
with
35 additions
and
0 deletions
scripts/trainAgeRegression-PCSO.sh
0 โ 100755
| 1 | +#!/bin/bash | ||
| 2 | +if [ ! -f trainAgeRegression-PCSO.sh ]; then | ||
| 3 | + echo "Run this script from the scripts folder!" | ||
| 4 | + exit | ||
| 5 | +fi | ||
| 6 | + | ||
| 7 | +#rm -f ../models/features/FaceClassificationRegistration | ||
| 8 | +#rm -f ../models/features/FaceClassificationExtraction | ||
| 9 | +rm -f ../models/algorithms/AgeRegression | ||
| 10 | + | ||
| 11 | +br -algorithm AgeRegression -path ../data/PCSO/Images -train "../data/PCSO/PCSO.db[query='SELECT File,Age,PersonID FROM PCSO WHERE Age >= 15 AND AGE <= 75', subset=0:200]" ../share/openbr/models/algorithms/AgeRegression |
scripts/trainFaceRecognition-PCSO.sh
0 โ 100755
| 1 | +#!/bin/bash | ||
| 2 | +if [ ! -f trainFaceRecognition-PCSO.sh ]; then | ||
| 3 | + echo "Run this script from the scripts folder!" | ||
| 4 | + exit | ||
| 5 | +fi | ||
| 6 | + | ||
| 7 | +#rm -f ../models/features/FaceRecognitionRegistration | ||
| 8 | +#rm -f ../models/features/FaceRecognitionExtraction | ||
| 9 | +#rm -f ../models/features/FaceRecognitionEmbedding | ||
| 10 | +#rm -f ../models/features/FaceRecognitionQuantization | ||
| 11 | +rm -f ../models/algorithms/FaceRecognition | ||
| 12 | + | ||
| 13 | +br -algorithm FaceRecognition -path ../data/PCSO/Images -train "../data/PCSO/PCSO.db[query='SELECT File,'S'||PersonID,PersonID FROM PCSO', subset=0:5:6000]" ../share/openbr/models/algorithms/FaceRecognition |
scripts/trainGenderClassification-PCSO.sh
0 โ 100755
| 1 | +#!/bin/bash | ||
| 2 | +if [ ! -f trainGenderClassification-PCSO.sh ]; then | ||
| 3 | + echo "Run this script from the scripts folder!" | ||
| 4 | + exit | ||
| 5 | +fi | ||
| 6 | + | ||
| 7 | +#rm -f ../models/features/FaceClassificationRegistration | ||
| 8 | +#rm -f ../models/features/FaceClassificationExtraction | ||
| 9 | +rm -f ../models/algorithms/GenderClassification | ||
| 10 | + | ||
| 11 | +br -algorithm GenderClassification -path ../data/PCSO/Images -train "../data/PCSO/PCSO.db[query='SELECT File,Gender,PersonID FROM PCSO', subset=0:8000]" ../share/openbr/models/algorithms/GenderClassification |