prepare_images_and_models.sh 741 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/bin/env bash

# decalre download paths of images and models
PADDLE_MOBILE_ROOT="$(pwd)/../"
IMAGES_AND_MODELS="opencl_test_src"
IMAGES_AND_MODELS_PATH="http://mms-graph.bj.bcebos.com/paddle-mobile/${IMAGES_AND_MODELS}.zip"

# download and unzip zip-files of images and models
mkdir ${PADDLE_MOBILE_ROOT}/download/
cd ${PADDLE_MOBILE_ROOT}/download/
wget -c ${IMAGES_AND_MODELS_PATH}
unzip -o ./${IMAGES_AND_MODELS}.zip

# create models and images directories below test
mkdir ${PADDLE_MOBILE_ROOT}/test/models
mkdir ${PADDLE_MOBILE_ROOT}/test/images

# move to test directory
cp ./${IMAGES_AND_MODELS}/input_3x224x224_banana ${PADDLE_MOBILE_ROOT}/test/images/
cp -r ./${IMAGES_AND_MODELS}/mobilenet ${PADDLE_MOBILE_ROOT}/test/models/