Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: CUDA out of memory #225

Open
coba0907 opened this issue Aug 29, 2023 · 0 comments
Open

RuntimeError: CUDA out of memory #225

coba0907 opened this issue Aug 29, 2023 · 0 comments

Comments

@coba0907
Copy link

During RCNN training, the following error occurred when I run the following command.
command: python train_rcnn.py --cfg_file cfgs/default.yaml --batch_size 2 --train_mode rcnn --epochs 70 --ckpt_save_interval 2 --rpn_ckpt ../output/rpn/default/ckpt/checkpoint_epoch_200.pth

RuntimeError: CUDA out of memory. Tried to allocate 512.— MiB (GPU 0; 2.95 GiB total capacity; 1.81 GiB already allocated; 356.00 MiB free; 1.89 GiB reserved in total by PyTorch )

The same Error occurred in RPN traing, which was solved by reducing batch_size to 2. but I don't think that reducing the batch_size anymore.

can you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant