Li-Chongyi / Zero-DCE

Zero-DCE code and model
774 stars 187 forks source link

test CUDA out of memory #52

Open nikeaddidaslining opened 1 year ago

nikeaddidaslining commented 1 year ago

Why do I have this problem when I test: OutOfMemoryError: CUDA out of memory. Tried to allocate 1.71 GiB (GPU 0; 6.00 GiB total capacity; 3.49 GiB already allocated; 1.04 GiB free; 3.50 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