#=============================================================================== | |
# | |
# FILE: infer.sh | |
# | |
# USAGE: ./infer.sh | |
# | |
# DESCRIPTION: | |
# | |
# OPTIONS: --- | |
# REQUIREMENTS: --- | |
# BUGS: --- | |
# NOTES: --- | |
# AUTHOR: fuliucansheng (fuliu), fuliucansheng@gmail.com | |
# ORGANIZATION: | |
# CREATED: 05/18/2023 22:50 | |
# REVISION: --- | |
#=============================================================================== | |
set -o nounset # Treat unset variables as an error | |
InputFile=$_InputFilePath_ | |
OutputFile=$_OutputFilePath_ | |
pip --no-cache-dir install --upgrade git+https://dev.azure.com/decui/_git/unitorch@dlis --user | |
unitorch-infer $1 --test_file $InputFile --output_file $OutputFile --test_batch_size $2 | |
if [ $? -ne 0 ];then | |
touch $_CompleteFilePath_ | |
touch $_ErrorsFilePath_ | |
fi | |