nn_train.py: error: the following arguments are required:pycharm设置python运行参数

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nn_train.py: error: the following arguments are required:pycharm设置python运行参数相关的知识,希望对你有一定的参考价值。

参考技术A 但是,如果python脚本设置了运行参数的话直接这样运行时会报下列参数是需要的错的,。
nn_train.py: error: the following arguments are required: -d/--dataset, -m/--model, -l/--label-bin, -p/--plot

点击后出现下图页面,在Parameter文本框内填写所需参数的路径

如下图,可以看到,设置运行参数后程序运行正常

如下图,可以看到,训练开始,程序运行正确。

keil编译STM32工程时 #error directive: "Please select first the target STM32F10x device used in your

我们可以双击错误,然后会自动定位到文件 stm32f10x.h 中出错的地方,可以看到代码:

#if !defined (STM32F10X_LD) && !defined (STM32F10X_LD_VL) && !defined
(STM32F10X_MD) && !defined (STM32F10X_MD_VL) && !defined (STM32F10X_HD)
&& !defined (STM32F10X_HD_VL) && !defined (STM32F10X_XL) && !defined
(STM32F10X_CL)
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h
file)"
#endif

这是因为 3.5 版本的库函数在配置和选择外设的时候通过宏定义来选择的,所以我们需要配
置 一 个 全 局 的 宏 定 义 变 量 。 按 照 步 骤 16 , 定 位 到 c/c++ 界 面 , 然 后 copy
“STM32F10X_MD,USE_STDPERIPH_DRIVER”到 Define 里面。
这里解释一下,如果你用的是大容量那么 STM32F10X_MD 修改为 STM32F10X_HD,小容
量修改为 STM32F10X_LD. 然后点击 OK。

以上是关于nn_train.py: error: the following arguments are required:pycharm设置python运行参数的主要内容,如果未能解决你的问题,请参考以下文章

easygui.msgbox("Hello there!")报错:Tcl_Init error: Can't find a usable init.tcl in the f

Mac-codesign命令error: The specified item could not be found in the keychain

error execution phase upload-config/kubelet: Error writing Crisocket information for the control-pla

错误代码 1582 Incorrect parameter count in the call to native f

Android NDK Build: ld: error: failed to write to the output file: Permission denied

ubuntu启动报错 Errors were found while checking the disk-drive for /