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

running VGG19_BN pretrained model need so much GPU memory #21

Open
xiaoxingzeng opened this issue Jan 23, 2018 · 3 comments
Open

running VGG19_BN pretrained model need so much GPU memory #21

xiaoxingzeng opened this issue Jan 23, 2018 · 3 comments

Comments

@xiaoxingzeng
Copy link

Hi thanks for your sharing, I running VGG19_BN caffemodel in py-faster-rcnn , the input size is 550, the wierd thing is GPU memory reaching up to 10G. VGG19_BN need more GPU memory than ResNet101?
Thanks for your reply

@MarcelSimon
Copy link
Contributor

Which ResNet implementation are you using? Usually VGG is smaller than ResNet-50, and hence also much smaller than ResNet-101 also for such a large input size. What is the batch size if 10GB of memory is used?

@Niudong
Copy link

Niudong commented Jan 26, 2018

hi, i have encountered the same things. I set the batch size equal 1 for the purpose of extracting the image feature. And the vgg19 network does not work either, the input image size is about 1024*768. Thanks for your response.

@MarcelSimon
Copy link
Contributor

This kind of resolution (>1000px) is too high for a VGG19 with Batch Normalization in caffe. If you really want to train with this image size, you should merge the BatchNorm and Scale layers into the Convolutional layers, then it might work, but most likely it will still take too much memory. Even VGG16 would be borderline for this.

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

3 participants