FastSAM icon indicating copy to clipboard operation
FastSAM copied to clipboard

hwo to integrate sahi for high resolution image? CUDA out of memory

Open zouxiaodong opened this issue 2 years ago • 1 comments

hwo to integrate with sahi for high resolution image(5472x2648) has some samll objects?

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 16.06 GiB. GPU 0 has a total capacty of 23.87 GiB of which 13.69 GiB is free. Including non-PyTorch memory, this process has 10.17 GiB memory in use. Of the allocated memory 8.49 GiB is allocated by PyTorch, and 920.86 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

zouxiaodong avatar Nov 17 '23 05:11 zouxiaodong

Do you have code that FastSAM intregated to SAHI?

spped2000 avatar Mar 20 '24 06:03 spped2000