oscarknagg / few-shot

Repository for few-shot learning machine learning projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CUDA out of memory

RajeshPandey057 opened this issue · comments

CUDA out of memory

RuntimeError: CUDA out of memory. Tried to allocate 1.21 GiB (GPU 0; 3.95 GiB total capacity; 1.27 GiB already allocated; 889.19 MiB free; 1.27 GiB reserved in total by PyTorch)

@oscarknagg @RajeshPandey057 @LIAOJUNJIE-OBJ , When I run the experiments.proto_nets on the dataset miniImageNet, it reports RuntimeError: CUDA out of memory. Though I have modified the parameters episodes_per_epoch and num_workers to make them smaller, this error still occurs. How can I resolve this problem? Thank you very much.