infer.py 脚本运行时,出现 'infer.py: error: the following arguments are required: --recipe, --mode' 错误提示,这是因为缺少必要的参数 --recipe 和 --mode。

解决方案:

根据脚本的使用说明,需要提供正确的参数 --recipe 和 --mode。

示例:

python infer.py --recipe 'my_recipe.yaml' --mode 'gpu'

其中:

  • --recipe 参数指定了要使用的模型配置文件。
  • --mode 参数指定了模型运行的方式('CPU' 或 'GPU')。

请确保您已正确提供这两个参数,并根据您的需求选择合适的配置文件和运行模式。

infer.py 脚本运行错误:缺少必要参数 --recipe 和 --mode

原文地址: https://www.cveoy.top/t/topic/mKC0 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录