Lornatang / SRGAN-PyTorch

A simple and complete implementation of super-resolution paper.
Apache License 2.0
410 stars 105 forks source link

Test out of memory #87

Open XYZ-916 opened 11 months ago

XYZ-916 commented 11 months ago

run python3 test.py --config_path ./configs/test/SRGAN_x4-SRGAN_ImageNet-Set5.yaml error: torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 1579.66 GiB (GPU 0; 79.35 GiB total capacity; 21.76 GiB already allocated; 54.55 GiB free; 23.29 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

arpanpoudel commented 4 months ago

It's because of your GPU not being enough. Change the batch size in configs file