File "D:\tmp\pytorch-yolo3\cfg.py", line 134, in print_cfg

assert(prev_width == out_widths[layers[1]])

是因为cfg中有除法,python3中除法自动转为float类型,需要//变成整除

这个错误,把网络后面几层变成了55,

原版的:

87 conv    256  1 x 1 / 1    26 x  26 x 768   ->    26 x  26 x 256
   88 conv    512  3 x 3 / 1    26 x  26 x 256   ->    26 x  26 x 512
   89 conv    256  1 x 1 / 1    26 x  26 x 512   ->    26 x  26 x 256
   90 conv    512  3 x 3 / 1    26 x  26 x 256   ->    26 x  26 x 512
   91 conv    256  1 x 1 / 1    26 x  26 x 512   ->    26 x  26 x 256
   92 conv    512  3 x 3 / 1    26 x  26 x 256   ->    26 x  26 x 512
   93 conv    255  1 x 1 / 1    26 x  26 x 512   ->    26 x  26 x 255
   94 detection
   95 route  91
   96 conv    128  1 x 1 / 1    26 x  26 x 256   ->    26 x  26 x 128
   97 upsample           * 2    26 x  26 x 128   ->    52 x  52 x 128
   98 route  97 36
   99 conv    128  1 x 1 / 1    52 x  52 x 384   ->    52 x  52 x 128
  100 conv    256  3 x 3 / 1    52 x  52 x 128   ->    52 x  52 x 256
  101 conv    128  1 x 1 / 1    52 x  52 x 256   ->    52 x  52 x 128
  102 conv    256  3 x 3 / 1    52 x  52 x 128   ->    52 x  52 x 256
  103 conv    128  1 x 1 / 1    52 x  52 x 256   ->    52 x  52 x 128
  104 conv    256  3 x 3 / 1    52 x  52 x 128   ->    52 x  52 x 256
  105 conv    255  1 x 1 / 1    52 x  52 x 256   ->    52 x  52 x 255

106 detection

变错的:

87 conv    256  1 x 1 / 1    27 x  27 x 768   ->    27 x  27 x 256
   88 conv    512  3 x 3 / 1    27 x  27 x 256   ->    27 x  27 x 512
   89 conv    256  1 x 1 / 1    27 x  27 x 512   ->    27 x  27 x 256
   90 conv    512  3 x 3 / 1    27 x  27 x 256   ->    27 x  27 x 512
   91 conv    256  1 x 1 / 1    27 x  27 x 512   ->    27 x  27 x 256
   92 conv    512  3 x 3 / 1    27 x  27 x 256   ->    27 x  27 x 512
   93 conv    255  1 x 1 / 1    27 x  27 x 512   ->    27 x  27 x 255
   94 detection
   95 route  91
   96 conv    128  1 x 1 / 1    27 x  27 x 256   ->    27 x  27 x 128
   97 upsample           * 2    27 x  27 x 128   ->    55 x  55 x 128
   98 route  97 36
   99 conv    128  1 x 1 / 1    55 x  55 x 384   ->    55 x  55 x 128
  100 conv    256  3 x 3 / 1    55 x  55 x 128   ->    55 x  55 x 256
  101 conv    128  1 x 1 / 1    55 x  55 x 256   ->    55 x  55 x 128
  102 conv    256  3 x 3 / 1    55 x  55 x 128   ->    55 x  55 x 256
  103 conv    128  1 x 1 / 1    55 x  55 x 256   ->    55 x  55 x 128
  104 conv    256  3 x 3 / 1    55 x  55 x 128   ->    55 x  55 x 256
  105 conv    255  1 x 1 / 1    55 x  55 x 256   ->    55 x  55 x 255
  106 detection

yolov3 pytorch错误集合相关推荐

  1. PCL安装常见的错误集合解决方案(一)

    常见的错误集合解决方案(一) No.1 提示错误 'Microsoft.VC90.CRT,version="9.0.21022.8" 把Microsoft.NET Framewor ...

  2. yolov3权重_目标检测之 YOLOv3 (Pytorch实现)

    1.文章目的 Github上已经有YOLOv3 Pytorch版本的实现,但我总觉得不是自己的东西直接拿过来用着不舒服.想着自己动手丰衣足食,因此,本文主要是出于学习的目的,将YOLO3网络自己搭建一 ...

  3. 错误集合_20220131

    文章目录 错误集合_20210131 [shell脚本遇到问题"\r': command not found"](https://www.cnblogs.com/bugutian/ ...

  4. Mapx 错误集合(转载)

    Mapx 错误集合(转载) 2011年10月04日 This is a table of the MapX errors encountered when writing MapX applicati ...

  5. PyTorch 错误 RuntimeError: invalid argument 5: k not in range for dimension at /pytorch/aten/src/THC/g

    PyTorch 错误 RuntimeError: invalid argument 5: k not in range for dimension at /pytorch/aten/src/THC/g ...

  6. pytorch 错误 AttributeError: ‘Tensor‘ object has no attribute ‘backword‘

    pytorch 错误 AttributeError: 'Tensor' object has no attribute 'backword' 按错误说明是没有backword属性. 错误代码 loss ...

  7. pytorch 错误 ImportError numpy.core.multiarray failed to import

    pytorch 错误 ImportError: numpy.core.multiarray failed to import 前言 我下载安装 Pytorch1.7.1 GPU版,但在测试是否支持GP ...

  8. 【tensorflow】【pytorch】_debug_错误集合

    [NO.1]AttributeError: 'str' object has no attribute 'decode' 这是字符解码和编码问题: conda install h5py==2.10.0 ...

  9. Pytorch错误:Torch not compiled with CUDA enabled

    一.问题 今天跑一个项目代码遇到了一个问题,大致是pytorch和CUDA版本不匹配,然后我就降低pytorch版本,结果1.7中网络不包含我所需的函数,我直接pip install pytorch= ...

最新文章

  1. UNIX文件mode_t详解
  2. python数据分析类库_python数据分析类库系列-Pandas入门之数据结构Series
  3. Java设计模式-工厂模式(2)工厂方法模式
  4. HDOJ 1228 A+B(map水题)
  5. Ant Design Blazor 组件库的路由复用多标签页介绍
  6. LeetCode 1021 删除最外层的括号
  7. bfo java_Java操作PDF文件(BFO) | 学步园
  8. php---header函数的示例代码
  9. windows server 2008r2 如何隐藏iis版本号_如何拥有自己炫酷的个人博客
  10. 共享网络获取树莓派ip_树莓派网络设置
  11. 还在纠结报表工具选型吗
  12. 芯片中的CP是什么CP
  13. Action大全和用法
  14. Scratch编程与游戏:大鱼吃小鱼!
  15. 统计指标 --- 集中趋势
  16. 数据索引---Solr DIH
  17. TPCC-Mysql 测试
  18. UBUNTU下安装MATLAB (ubuntu18.04 + 2021a)
  19. 概率逻辑——一辆跑车与两只山羊(理论分析+python实现)
  20. 阿里入股B站,到底意味着什么?

热门文章

  1. 作文计算机使用有什么问题,关于电脑利弊的作文
  2. android 开发环境简书,Android Studio 开发环境快速搭建
  3. c语言map作为参数传递,C++中map和vector作形参时如何给定默认参数?
  4. java after方法_spring AOP的After增强实现方法实例分析
  5. python中怎么把值添加进列表_在Python中为子列表添加值
  6. 限制用户对页的访问php,如何限制对Django中管理页的访问?
  7. java求平均值过程不输入,java-Flink:有没有其他方法来计算平均值和一个状态变量,而不是使用RichAggregateFunction?...
  8. mysql 分区表 归档_MySQL分区表
  9. 小巧但强大,浏览器开发常用工具插件一枚
  10. 你要的Spring Boot多图片上传回显功能已经实现了,赶紧收藏吃灰~