neural-style-pt
neural-style-pt copied to clipboard
Error, But Only When Certain Image Combos Are Used
I get the following error, but only when using specific image combinations. I can use the content with other styles or style with other content. Very confusing.
Traceback (most recent call last):
File "D:\Neural Style Python\style_transfer_GUI.py", line 513, in
@spot92 I need more information to know if it's a neural-style-pt issue or a PyTorch/CUDA issue. If it's a PyTorch issue with the latest update, then trying to to simplify the code for reproducing the error will help their devs solve it.
Also, do any of the fixes in these issues solve things?
https://github.com/pytorch/pytorch/issues/16417
https://discuss.pytorch.org/t/runtimeerror-cuda-out-of-memory-tried-to-allocate-1-12-mib-gpu-0-11-91-gib-total-capacity-5-52-gib-already-allocated-2-06-mib-free-184-00-kib-cached/42080/9
https://www.kaggle.com/c/jigsaw-unintended-bias-in-toxicity-classification/discussion/91081
I'll look into them. I just thought it was weird that it only did it with specific combinations of images. Thanks!
Looks like the Geforce limitation on the usable memory, about 70% of VRAM in Linux with Pytorch (1 GPU). Image max size depends on the framework and option, try to reduce it.