error: the following arguments are required: --cfg
先看错误代码:
parser.add_argument('--cfg', type=str, required=True, metavar="FILE", help='path to config file', )
–cfg 是定义为可选参数;required=True,表示必须在命令行输入
解决方案:
将required=True
改为required=False
error: the following arguments are required: --cfg相关推荐
- (理解和3种方法完全解决pycharm报错)main.py: error: the following arguments are required: -d/--dataset
文章目录 背景 理解 完全解决 方法1 方法2 方法3 背景 很多人只说解决方案,却不说原因,遂有此篇. 在pycharm中直接运行如下代码main.py报错: import argparse if ...
- error: the following arguments are required: cfg_file
error: the following arguments are required: cfg_file 这里一共列举4种情况: 1)参数前面没有加-- 2)参数没有加default值 3)没有这个 ...
- python3 运行argparse XX.py: error: the following arguments are required: N An exception has occurred,
Spyder(python 3.6) 运行含argparse模块的程序 # max sum.py import argparseparser = argparse.ArgumentParser(des ...
- error: the following arguments are required: img, config, checkpoint
目录 01问题描述 02 问题分析 03 解决方案 01问题描述 在验证mmdetection环境是否安装成功的时候,出现如下错误: error: the following arguments a ...
- main.py: error: the following arguments are required:
报错 "main.py: error: the following arguments are required:" 1.首先查看报错信息 如图下图所示 main.py: erro ...
- error: the following arguments are required
[1]usage: run_one_image.py [-h] [--use_cuda] [--use_cython] image_path templ ...
- “ error: the following arguments are required: --model, --data“解决办法
"error: the following arguments are required: --model, --data"解决办法 问题描述 解决办法 问题描述 pycharm运 ...
- train.py: error: the following arguments are required: --config解决办法
train.py: error: the following arguments are required: --config解决办法 最近在跑github上的深度学习开源项目,在导入项目运行trai ...
- CentOS 6.5 安装 Redis 执行 make #error Newer version of jemalloc required
为什么80%的码农都做不了架构师?>>> CentOS 6.5 安装 Redis 执行 make #error "Newer version of jemalloc ...
最新文章
- 摄像头PVD和CVD薄膜
- [2010国家集训队]Crash的旅游计划
- [阅读笔记] Java 7 新特性
- 去掉DataGridView最后一行的空白行,删除空白行
- 201771010120 苏浪浪 《面向对象程序设计(java)》第二周学习总结
- cmd pc如何开多个微信_抖音打击刷赞刷粉,240多个百万粉丝大V被封;微信PC版再更新...
- java内容置剪贴板
- STM32H743+CubeMX-两路FDCAN同时工作的终极方案(RTX5)
- 页面内部DIV让点击外部DIV 事件不发生(阻止冒泡事件)
- Cookie和Session的详细介绍和使用规范
- C++ container member map
- 395.至少有K个重复字符的最长子串
- 计算机cad制图软件有哪些,cad制图软件有哪些?
- SSM框架使用拦截器和过滤器实现登录的拦截
- 2018秋北京松松兄弟线下聚会干货分享
- 基于android的学单词app
- 题目 A : 勇士传说
- scons 手册_SCons用户手册
- 四、Docker安装 Portainer 可视化工具
- 深度学习图像视频压缩技术
热门文章
- 中关村银行与第四范式达成战略合作,携手开创供应链“AI+金融”新纪元
- 常见的数据库故障有哪些?
- gabor特征提取 matlab,Gabor特征提取
- 绘制图形可以使用什么python数据库_使用python图形模块turtle库绘制樱花、玫瑰、圣诞树代码实例...
- Mysql数据库存储的原理
- Tyramide Cy5.5,Cyanine5.5 Tyramide,花青素Cy5.5酪酰胺远红色近红外发射染料
- 微信小程序之满意度评价五星
- 数据仓库建模的模型分类和特点
- tushare积分获取办法
- N32G45导入芯片包出现Cannot install Pack Nationstech.N32G45x_DFP.1.0.4: Cannot find PDSC file at root direct