1kesou

关注

RuntimeError: CUDA out of memory. Tried to allocate 64.00 MiB (GPU 0; 10.76 GiB total capacity; 7.64

1kesou

关注

阅读 82

2022-02-27

错误原因:

使用了CUDA_VISIBLE_DEVICES指定了空闲的3090显卡,但仍报错,原因是batchsize设置得太高,设置了128.

解决方案:

降低到64即可。

或者使用两张及以上的卡。

相关推荐

伊人幽梦

爆显存:RuntimeError: CUDA out of memory. Tried to allocate 5.66 GiB (GPU 0; 12.00 GiB total capacity; 2

伊人幽梦 26 0 0

梦幻之云

torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.31 GiB. GPU 0 has a total capacity o

梦幻之云 32 0 0

安七月读书

GPU 显存不够用,RuntimeError: CUDA out of memory

安七月读书 101 0 0

梅梅的时光

Out of memory error on GPU 0. Cannot allocate xxxGB memory on GPU 0, available memory is only xxx

梅梅的时光 162 0 0

小铺有酒一两不够

解决报错RuntimeError: CUDA out of memory

小铺有酒一两不够 83 0 0

颜路在路上

复现monodepth2过程中碰到的错误3:RuntimeError: CUDA out of memory.

颜路在路上 413 0 0

精彩评论(0)

0 0 举报