create_module.sh 377 字节
Newer Older
W
wuzewu 已提交
1 2 3 4 5 6 7 8 9
#!/bin/bash
set -o nounset
set -o errexit

script_path=$(cd `dirname $0`; pwd)
cd $script_path

model_name="ResNet50"

W
wuzewu 已提交
10
while getopts "m:" options
W
wuzewu 已提交
11 12 13 14 15 16 17 18 19 20
do
	case "$options" in
        m)
            model_name=$OPTARG;;
		?)
			echo "unknown options"
            exit 1;;
	esac
done

W
wuzewu 已提交
21
python create_module.py --pretrained_model=resources/${model_name}_pretrained --model ${model_name}