Skip to content

RuntimeError: CUDA out of memory. Tried to allocate 756.00 MiB (GPU 0; 6.00 GiB total capacity; 3.41 GiB already allocated; 0 bytes free; 4.59 GiB reserved in total by PyTorch) #5

@909982211

Description

@909982211

The GPU i used is RTX 2060 6G...really not enough?

OK,It's my fault,i should use --gpu1(because the 0 is not the Nvidia gpu),but .....an other problem appears when the program was to be end:

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

i am sure that my cuda version is correct and it match the pytorch .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions