【问题描述】

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

【解决方法】

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. C语言实现傅里叶变换函数dft,idft,fft,ifft
  2. 直击阿里百度岗!助力求职,拿不到offer全额退款保证|第五期人工智能与推荐系统/NLP/CV专业方向...
  3. 服务器邮箱群发,独立IP独立账号日发万封的邮件群发服务器
  4. JDeveloper中的Java反编译器
  5. [vue] vue怎么获取DOM节点?
  6. JavaScript 弹出窗口总结
  7. t-sql还原数据库_如何更新T-SQL工具箱数据库
  8. Android横向滚动卡片,Android滑动卡片成效:Swipecards
  9. 如何保证kafka消息的可靠性传递?
  10. 当当网Python图书数据分析
  11. 最通俗的 Python3 网络爬虫入门
  12. springboot jpa 实体类继承
  13. PageHelper.startPage(pageNum,pageSize)分页不起作用
  14. 什么是视图?作用是什么?
  15. KU-600变电站综合自动化系统
  16. 强制开启android webview debug模式使用Chrome inspect
  17. 期权、期货及其他衍生产品 第一章 课程笔记整理
  18. Vue中使用swiper构建简易轮播图
  19. VS Code 快捷键(中英文对照版)
  20. STM32 | STM32CubeMX基础之TIM

热门文章

  1. OSS对象存储ssl证书部署
  2. ECDSA host key for vvv.vvv.vvv.vvv has changed and you have requested strict checking.
  3. 实现类知乎android客户端关注和取消关注的按钮点击效果
  4. 安装ubuntu并切换到Gnome经典桌面
  5. Netcat 介绍及使用
  6. 全方位揭秘!大数据从0到1的完美落地之Hive分区
  7. 牙科诊所信息管理系统:业务分析
  8. qt repaint 用法_qt的repaint的问题
  9. 卸载office2016kms密钥重新获取office安装密钥窗口
  10. github知名企业开源项目索引