maudzung / Complex-YOLOv4-Pytorch

The PyTorch Implementation based on YOLOv4 of the paper: "Complex-YOLO: Real-time 3D Object Detection on Point Clouds"
https://arxiv.org/pdf/1803.06199.pdf
GNU General Public License v3.0
1.24k stars 256 forks source link

cuda out of memory #40

Open mouawiya opened 2 years ago

mouawiya commented 2 years ago

hi, i was wondering if anyone knows how to solve this cuda out of memory problem, i've tried everything, lowering the batch size to 1, lowering the epoch number, nothing works, but at the same time i've tried other programs and they worked fine with cuda and with even normal batch=2, so i don't what to do next if anyone have any solution please help

SinDongHwan commented 2 years ago

Hi, @mouawiya.

Could you tell me your situations detail(environment, which program, etc)?

mouawiya commented 2 years ago

yes of course, i am runing the code on a windows 10, i have a 2GB nvidia graphic card (model GTX 950m), and i5 CPU, i am working with the Kitti dataset, the weird thing that i tried your other code SFA3D and it worked fine with batch size =2 , but this YOLOv4 it just cant seem to work for some reason i can't figure out

SinDongHwan commented 2 years ago

Hi, @mouawiya

First, SFA3D uses the fpn_resnet_18 model and this repository uses the yolov4 model. Two repositories uses different networks.

So fpn_resnet_18 is lighter than yolov4, so SFA3D would have worked. Try loading the two models separately.

If you can't load the yolov4 model, you need to use a better graphics card to use this repository.

Good Luck~!!