endernewton / tf-faster-rcnn

Tensorflow Faster RCNN for Object Detection
https://arxiv.org/pdf/1702.02138.pdf
MIT License
3.65k stars 1.57k forks source link

GPU memory issue when training #286

Closed snsie closed 1 year ago

snsie commented 6 years ago

I have run the test script successfully, but I am hitting memory errors when training. The log is pasted below. I have tried lowering the batch size, but that didn't fix the error. I am using a 1070GTX GPU and I have run smallcorgi's faster-rcnn repository in the past and didn't have memory issues. Has anyone else encountered this error?

endernewton commented 6 years ago

i think you may want to get a larger sized gpu? the gpu usage can change when you train, because each image comes with a different size.

SAVeselovskiy commented 6 years ago

@endernewton i got this this error with the same GPU but some time ago everything worked great. And i talking about detection on unlabeled COCO images not about training. I dont know the reason of this issue...

suixin567 commented 5 years ago

i have gpu memory error too! and i have no idea for a long time ,my gpu is 1060 , I have run the test script successfully too , and I have tried lowering the batch size, but that didn't fix the error too...

suixin567 commented 5 years ago

@endernewton @ScottSiegel

H-Wenfeng commented 5 years ago

Change the file in experiments/res101.yml BATCH_SIZE: and RPN_BATCHSIZE:

devendraswamy commented 4 years ago

Change the file in experiments/res101.yml BATCH_SIZE: and RPN_BATCHSIZE:

Sir/madam, is it work really ?