训练yolov8时出现

类似以下错误:

  

RunTimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:

  if __name__ == '__main__':
freeze_support()
...

The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.

大概意思是 linux 是用 fork,windows 是用spawn,spawn要加 if __name__ == "__main__": 区分主进程。

参考:Python 中的多线程和多进程(上) - 知乎 (zhihu.com)

最新文章

  1. 利用Dockerfile构建一个基于centos 7,包括java 8, tomcat 7,php ,mysql+mycat的镜像
  2. C# 词法分析器(五)转换 DFA
  3. Python中setuptools做什么用的?
  4. SGU 455 Sequence analysis(Cycle detection,floyd判圈算法)
  5. SQL Server 2005 分区表创建实例
  6. php7+apache的环境安装配置
  7. HDU5029--Relief grain (树链剖分+线段树 )
  8. android的fragments管理
  9. Android在子线程中更新UI(二)
  10. Hibernate 系列教程4-单向多对一
  11. vue渐变淡入淡出轮播图
  12. python之爬虫学习记录与心得
  13. 微信小程序,前端大梦想(七)
  14. POJ-1915 Knight Moves (BFS)
  15. Java---实现邮件发送
  16. 【源码】HashMap源码及线程非安全分析
  17. 提取配置文件中无注释的内容方法--findstr
  18. python3 利用pip命令安装包和模块
  19. Python3 与 C# 并发编程之~ 线程篇
  20. VS诊断工具打开失败

热门文章

  1. 【SDOI2015】排序
  2. Git基础操作及协作流程
  3. 三天吃透Redis面试八股文
  4. 运维排查篇 | Linux 连接跟踪表满了怎么处理
  5. mongodump导出mongodb中的数据
  6. vscode注释插件
  7. loj3076
  8. C#获取各种当前日期时间
  9. vue 利用xlsx、xlsx-style、file-saver实现前端导出excel表格 (包括设置单元格居中、边框等样式) antdesignvue、elementui、vxetable 等都适用
  10. java 实现Excel导入导出功能