【问题描述】

在跑深度学习训练模型时报此错误。

【解决方法】

1.尝试调小训练使用的batch size

2.尝试调小img size

3.修改电脑配置中页面文件的大小(我的python、anaconda啥的都装在D盘,所以我就把D盘的虚拟内存调大一点)。具体步骤可以参考:OSError: [WinError 1455] 解决方案_麻辣烫小胖子的博客-CSDN博客

其他参考链接:

RuntimeError:CUDA out of memory.Tried to allocate 20.00MiB._啊菜来了的博客-CSDN博客

RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB解决方案相关推荐

  1. RuntimeError: CUDA out of memory.Tried to allocate 20.00 MiB GPU 0 ,3.94 GiB total capacity 3.36 G

    RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.94 GiB total capacity; 3.36 ...

  2. RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 4.00 GiB total capacity; 2.44

    调试手写数字识别代码时出现的问题,将cpu的代码改用gpu训练时虽然可以训练,详见上一条博客(Mnist手写数字识别cpu训练与gpu训练),但是会出现Error.查找资料后以下是解决过程. 先说结论 ...

  3. RuntimeError: CUDA out of memory. Tried to allocate 132.00 MiB (GPU 2; 3.95 GiB total capacity; 3.41

    pytorch报错:RuntimeError: CUDA out of memory. Tried to allocate 132.00 MiB (GPU 2; 3.95 GiB total capa ...

  4. 报错`RuntimeError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 9.78 GiB total capaci

    报错RuntimeError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 9.78 GiB total capacity; 8. ...

  5. RuntimeError: CUDA out of memory. Tried to allocate 170.00 MiB (GPU 0; 3.82 GiB total capacity; 1.94

    错误: RuntimeError: CUDA out of memory. Tried to allocate 170.00 MiB (GPU 0; 3.82 GiB total capacity; ...

  6. RuntimeError: CUDA out of memory. Tried to allocate 50.00 MiB (GPU 0; 4.00 GiB total capacity; 682.9

    1. 问题 训练模型时报错: RuntimeError: CUDA error: out of memory CUDA kernel errors might be asynchronously re ...

  7. 已解决yolov5报错RuntimeError: CUDA out of memory. Tried to allocate 14.00 MiB

    问题 RuntimeError: CUDA out of memory. Tried to allocate 14.00 MiB (GPU 0; 4.00 GiB total capacity; 2. ...

  8. 解决:RuntimeError: CUDA out of memory. Tried to allocate 64.00 MiB (GPU 0; 4.00 GiB total capacity; 2

    引发pytorch:CUDA out of memory错误的原因有两个: 1.当前要使用的GPU正在被占用,导致显存不足以运行你要运行的模型训练命令不能正常运行 解决方法: 1.换另外的GPU 2. ...

  9. 解决:RuntimeError: CUDA out of memory. Tried to allocate 2.00 MiB

    方法一: 仅需减小batchsize 改文件的配置cfg的batchsize=4,一般在cfg文件下的查找batch或batchsize,将batchsize调小后,再次运行,类似于改下面 方法二 : ...

最新文章

  1. map集合遍历_java---map集合获取元素与存储元素
  2. 显卡之显卡型号及版本级别
  3. bzoj3626:[LNOI2014]LCA
  4. CoreCLR源码探索(八) JIT的工作原理(详解篇)
  5. Couchbase:使用Twitter和Java创建大型数据集
  6. Python中@staticmethod和@classmethod之间的区别
  7. id 重启event_windows 2003 R2 系统自动重启了. event ID 6008
  8. python预定义_【Python】python类中方法的预定义
  9. Sharepoint Server 2007结合AD RMS提高企业信息安全
  10. MySQL 时间函数
  11. 16进制颜色码转化rgba
  12. php 费率计算_如何计算您的小时费率
  13. 使用python的sklearn包实现CCA(典型相关分析)
  14. Spark实现jieba中文分词(scala)
  15. 【win10压缩卷问题解决】:无法将卷压缩到超出任何不可移动的文件所在点
  16. 不修改vender文件夹,重写laravel注册登录功能
  17. LeetCode知识点总结 - 884
  18. 名帖89 蔡襄 楷书《荔枝谱》
  19. 方舟手游非官方服务器修改器,方舟非官方服务器作弊码 | 手游网游页游攻略大全...
  20. 使用cookie防止恶意点击

热门文章

  1. unity转抖音小游戏笔记
  2. uniapp——打包上架微信小程序教程
  3. [图]微软再次推出两款适用于Windows 10的免费主题
  4. 推荐一款免费报表工具,一键自动生成分析报告
  5. 互联网公司很年轻?拼多多、字节人均年龄27岁,阿里31岁...
  6. 全方位揭秘!大数据从0到1的完美落地之Hive分区
  7. 【C++】「一本通 1.1 例 5」智力大冲浪
  8. 电信天翼网关自带路由器的那种,怎么再连接一个光猫? 顺便详解一下WAN口和LAN口
  9. 【转载】官场里流传的真理、领导的逻辑
  10. 《CSDN社区电子杂志——Java杂志》第二期发布!