专栏算法工具链ai_benchmark上板测试,运行脚本报错

ai_benchmark上板测试,运行脚本报错

加利福尼亚不下雨5小时前
8
5
root@hobot:/map/zhengyim/ai_benchmark/j6/qat/script/detection/fcos3d_efficientnetb0_nuscenes# ls
accuracy.sh fps.sh latency.sh workflow_accuracy.json workflow_fps.json workflow_latency.json
root@hobot:/map/zhengyim/ai_benchmark/j6/qat/script/detection/fcos3d_efficientnetb0_nuscenes# ./fps.sh
./fps.sh: 11: source: not found
./fps.sh: 15: --config_file=workflow_fps.json: not found
root@hobot:/map/zhengyim/ai_benchmark/j6/qat/script/detection/fcos3d_efficientnetb0_nuscenes#
root@hobot:/map/zhengyim/ai_benchmark/j6/qat/script/detection/fcos3d_efficientnetb0_nuscenes# cat accuracy.sh
#!/bin/sh
# Copyright (c) 2020 Horizon Robotics.All Rights Reserved.
#
# The material in this file is confidential and contains trade secrets
# of Horizon Robotics Inc. This is proprietary information owned by
# Horizon Robotics Inc. No part of this work may be disclosed,
# reproduced, copied, transmitted, or used in any way for any purpose,
# without the express written permission of Horizon Robotics Inc.


source ../../env.sh
export SHOW_FPS_LOG=1

# image 512x896
${app} --config_file=./workflow_accuracy.json --log_level=2
root@hobot:/map/zhengyim/ai_benchmark/j6/qat/script/detection/fcos3d_efficientnetb0_nuscenes# ./accuracy.sh
./accuracy.sh: 11: source: not found
./accuracy.sh: 15: --config_file=./workflow_accuracy.json: not found
算法工具链
技术深度解析征程6
评论4
0/1000
  • Huanghui
    Lv.5
    收到, 验证了一下,确实有这个问题。
    脚本解释器的问题,板子上的sh不是bash, 但是source这些事bash语法。
    直接把脚本中的#!/bin/sh 改成 #!/bin/bash 吧,修改之后就OK了
    5小时前
    0
    0
  • DR_KAN
    Lv.4

    bash fps.sh即可

    4小时前
    0
    0
  • 冬日的雨天
    Lv.1

    1414141

    3小时前
    0
    0
  • 冬日的雨天
    Lv.1

    1114

    2小时前
    0
    0