报错信息:RuntimeError: Calculated padded input size per channel: (49). Kernel size: (64). Kernel size can't be greater than actual input size

解决方案:不用修改卷积核大小,修改stride和padding即可

修改前:

self.conv1 = nn.Conv1d(in_channels=3, out_channels=3, kernel_size=64, stride=16, padding=24)

修改后:

self.conv1 = nn.Conv1d(in_channels=3, out_channels=3, kernel_size=64, stride=2, padding=60)

Kernel size can‘t be greater than actual input size的解决方案相关推荐

  1. Inception-v3报错:RuntimeError: Calculated padded input size per channel: (3 x 3). Kernel size: (5 x 5)

    在PyTorch1.7.1环境下运行PyTorch官方提供的ImageNet预训练模型Inception-v3报错如下: RuntimeError: Calculated padded input s ...

  2. 【Unity】Unity报错success actual == (UInt64)size

    success && actual == (UInt64)size  UnityEditor.HostView:OnGUI() Building - Failed to write f ...

  3. 【StreamSets】 JDBC_502 - Batch size greater than maximal batch size allowed in sdc.properties

    [问题描述]  今天在CDH集群中使用StreamSets的时候报了如下的错误: JDBC_502 - Batch size greater than maximal batch size allow ...

  4. RuntimeError: Given input size: (256x4x4). Calculated output size: (256x0x0). Output size is too sma

    最近在跑一个联邦学习项目,用到的数据集是cifa-10,跑代码时出现以下报错: RuntimeError: Given input size: (256x4x4). Calculated output ...

  5. bn层Expected more than 1 value per channel when training, got input size torch.Size

    报错代码: File "E:/project/fenge/jacke121-U-2-Net-master_mse/nets/bisnet.py", line 106, in for ...

  6. Expected more than 1 value per channel when training, got input size torch.Size

    Expected more than 1 value per channel when training, got input size torch.Size 训练的时候,batch size必须大于 ...

  7. Debug Pytorch: ValueError: Expected more than 1 value per channel when training, got input size tor

    ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 512] ...

  8. The size of tensor a (4) must match the size of tensor b (3) at non-singletonThe size of

    报错: RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton 解决: ...

  9. python size和count_groupby 的妙用(注意size和count)

    Pandas的groupby()功能很强大,用好了可以方便的解决很多问题,在数据处理以及日常工作中经常能施展拳脚. 今天,我们一起来领略下groupby()的魅力吧. 首先,引入相关package: ...

最新文章

  1. python:dist-packages site-packages
  2. vSphere PowerCLI安装及命令
  3. 北京python培训班价格-北京Python启蒙班
  4. jQuery调试学习总结
  5. TCP/IP入门(4) --应用层
  6. 牛客题霸 [判断一个链表是否为回文结构] C++题解/答案
  7. 计算机网络匿名性,匿名文件传输协议
  8. https无法访问 宝塔_解决宝塔面板开启自带免费Let's Encrypt SSL证书后网站无法访问...
  9. Eclipse学习笔记——快捷键
  10. Spring Boot/Spring面试常见问题
  11. Python巨型文字游戏开发(带源码(1))
  12. 华为U2000云平台和APP管理系统建设
  13. kaka-manager和kafka-offset-monitor的安装和使用
  14. 使用 xrdp 远程桌面连接 RVBoards D1 哪吒开发板的桌面系统 lxde
  15. 基于Simulink的步进电机仿真实现(文末资源)
  16. R语言使用循环语句一次性画出多幅图
  17. 关于springmvc项目一加入validation-api包就报错的解决方法
  18. Pytorch丨expand函数
  19. 如何向Linux内核提交代码,华人教授向 Linux 内核提交含 Bug 代码,Linux 管理员直接拉黑整所大学!...
  20. 服务器配置篇 ━━ 中文域名(.公益)解析、党政机关挂标及如何正确运行在服务器

热门文章

  1. if(null)的判断
  2. HAC集群部署vip及相关操作
  3. 智能家居核心网关产品级解决方案(MT7620N+zigbee)
  4. 卜若的代码笔记-webgl系列-第三章:几何渲染Rendering Geometry
  5. 内存泄漏——恶魔天使之战(操作内存必看)
  6. 蜂巢科技发布首款创新产品“小清新”空气卫士
  7. php人群定向搜索,搜索人群定向功能
  8. 服务器设置开机自动登录
  9. pytorch——用resnet18做动物多分类问题(含可视化结果)
  10. php取名字算法,JavaScript排序算法之希尔排序的2个实例_基础知识