top_xiaowang 2022-11-21 16:57 采纳率: 50%
浏览 0

Unable to allocate 37.5 MiB for an array with shape (8, 640, 640, 3) and data type float32

训练数据集的时候出现如下报错,3060 laptop的显卡、16g内存不应该不够他描述的这点大小吧,这是是什么回事呀qwq

Epoch 00617: LearningRateScheduler reducing learning rate to 0.0009801900625528459.
67/93 [====================>.........] - ETA: 8s - loss: 0.18782022-11-21 15:08:04.927003: W tensorflow/core/framework/op_kernel.cc:1751] Resource exhausted: MemoryError: Unable to allocate 37.5 MiB for an array with shape (8, 640, 640, 3) and data type float32
Traceback (most recent call last):

File "D:\Anaconda3\envs\tensorflow2-gpu\lib\site-packages\tensorflow\python\ops\script_ops.py", line 249, in call
ret = func(*args)

File "D:\Anaconda3\envs\tensorflow2-gpu\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 620, in wrapper
return func(*args, **kwargs)

File "D:\Anaconda3\envs\tensorflow2-gpu\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 891, in generator_py_func
values = next(generator_state.get_iterator(iterator_id))

File "D:\Anaconda3\envs\tensorflow2-gpu\lib\site-packages\tensorflow\python\keras\engine\data_adapter.py", line 807, in wrapped_generator
for data in generator_fn():

File "D:\Anaconda3\envs\tensorflow2-gpu\lib\site-packages\tensorflow\python\keras\engine\data_adapter.py", line 933, in generator_fn
yield x[i]

File "D:\NWAFU\AAA\yolov5\yolov5-tf2-wang\yolov5-tf2-main\utils\dataloader.py", line 61, in getitem
image_data = np.array(image_data)

MemoryError: Unable to allocate 37.5 MiB for an array with shape (8, 640, 640, 3) and data type float32

  • 写回答

2条回答

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 创建了问题 11月21日

      悬赏问题

      • ¥15 C/C++程序详细注解
      • ¥30 django项目,配值nginx 和 awsgi ,POST 不起作用,请教!
      • ¥15 数据集形式转换,将下面转换成上面的形式
      • ¥15 pmp项目管理干系人分析
      • ¥15 请问DenseNet图像输入大小是否是固定的?
      • ¥15 template模板的参数问题
      • ¥15 查找处理学生信息问题,含多个文件,显示问题是无法调用其中一个文件
      • ¥15 simulink生成代码后提示告警
      • ¥16 jieba提取高频词,生成文件是空的
      • ¥15 怎么读取服务器中的文件去配置mongo的连接