forked from deepinx/megaface-evaluation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
15 lines (9 loc) · 1019 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
ALGO="r100ii" #ms1mv2
ROOT="./"
echo $ROOT
DEVKIT="$ROOT/devkit/experiments"
python -u gen_megaface.py --gpu 0 --algo "$ALGO" --model './models/model-r100-ii/model,0' --facescrub-lst "$ROOT/data/facescrub_lst" --megaface-lst "$ROOT/data/megaface_lst" --facescrub-root "$ROOT/data/facescrub_images" --megaface-root "$ROOT/data/megaface_images" --output "$ROOT/"$ALGO"_feature_out"
python -u remove_noises.py --algo "$ALGO" --facescrub-noises "$ROOT/data/facescrub_noises.txt" --megaface-noises "$ROOT/data/megaface_noises.txt" --facescrub-lst "$ROOT/data/facescrub_lst" --megaface-lst "$ROOT/data/megaface_lst" --feature-dir-input "$ROOT/"$ALGO"_feature_out" --feature-dir-out "$ROOT/"$ALGO"_feature_out_clean"
export LD_LIBRARY_PATH="/usr/local/lib/opencv2.4:$LD_LIBRARY_PATH"
python -u devkit/experiments/run_experiment.py "$ROOT/"$ALGO"_feature_out_clean/megaface" "$ROOT/"$ALGO"_feature_out_clean/facescrub" _"$ALGO".bin ./"$ALGO"_results/ -p ../templatelists/facescrub_features_list.json