作者你好!
我在运行Group_detr_resnt50训练的时候,一直报错Cuda.OutOfMemoryError.
但是nvidia-smi显示四个显卡(4090 24GB)内存均没占用,查阅资料表明可能是cuda内存碎片化的问题,通过设置
torch.cuda.empty_cache()
pytorch_cuda_alloc_conf=expandable_segement:True
pytorch_cuda_alloc_conf=max_split_size_mb:128
均不起效果,请问这是什么问题导致的?