Skip to content

Error : Cuda out of Memory in Group_detr project #378

@z972778371

Description

@z972778371

作者你好!

我在运行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

均不起效果,请问这是什么问题导致的?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions