|
发表于 2024-6-10 11:35:46
|
显示全部楼层
我也遇到同样的问题:
6G显卡电脑报错:
MencryBrror : CUDA out of memory. Tried to allocate 128.00 MiB(GPU 0; 6.00 GiB total capacity; 4.09 GiBalready allocated;O bytes free;4.37 GiB reserved in total by PyTorch) If reserved memory is >> al1ocated memory try setting max_split_size mb to avoid fragmentation. See documentation for Memory Management and PYTORCH CUDA ALLOC COMF
内存错误:CUDA 内存不足。试图分配 128.00 兆字节(GPU 0;总容量 6.00 吉字节;已分配 4.09 吉字节;0 字节可用;PyTorch 总共预留 4.37 吉字节)。如果预留内存远大于已分配内存,尝试设置最大分割大小(以兆字节为单位)以避免碎片。请参阅内存管理和 PyTorch CUDA 分配的文档。
12G显卡电脑报错:
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 3.01 GiB for an array with shape (4106, 256, 256, 3) and data type float32
numpy 核心._异常._数组内存错误:无法为具有形状(4106, 256, 256, 3)和数据类型 float32 的数组分配 3.01 GB字节。
以上点内存都是16GB
|
|