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

Test images with CUDA ERROR: Out of memory #45

Closed
cydiachen opened this issue Jan 21, 2020 · 2 comments
Closed

Test images with CUDA ERROR: Out of memory #45

cydiachen opened this issue Jan 21, 2020 · 2 comments

Comments

@cydiachen
Copy link

Dear Xintao:
I am now using your mmsr module to train my own model. Your code works excellent during training. But when it comes to testing, Your algorithm displayed out of memory error when processing images. I assume it is because the size of output images caused this error. I am wondering whether to solve this problem.

@xinntao
Copy link
Collaborator

xinntao commented Feb 8, 2020

You may have too large input images during testing.
If so, try to crop the input image to several sub-images, process each and finally stitch them.

@ryul99
Copy link

ryul99 commented Apr 29, 2020

I uploaded my script for cropping to sub-images and stitch sub-images.
I hope this could help you.
https://gist.github.com/ryul99/a192310cf2cd3ce94f83b928d44a141f

@xinntao xinntao closed this as completed Jul 8, 2020
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