Cuda out of memory #68
Answered by
victorca25
Jun 10, 2022
Replies: 2 comments
|
Hello! Typically 1x models will consume more VRAM than 4x models if the same configuration is used (specially batch size and crop size). If using the standard ESRGAN architecture, the recommendation here is to reduce either the batch size, the crop size or both, so the tensors fit in memory. Alternatively, you can try to use the pixel-unshuffle wrapper, but that depends on how you plan to use the model after it's trained and if it that code supports using the models with the wrappers. |
0 replies
Answer selected by
3majsie
|
Thanks to Victoria also gives her Train_sr.yml maybe you will come up with an idea what can be improved. Thanks again!
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hello! Typically 1x models will consume more VRAM than 4x models if the same configuration is used (specially batch size and crop size).
If using the standard ESRGAN architecture, the recommendation here is to reduce either the batch size, the crop size or both, so the tensors fit in memory.
Alternatively, you can try to use the pixel-unshuffle wrapper, but that depends on how you plan to use the model after it's trained and if it that code supports using the models with the wrappers.