megvii-research/RealFlow

当我制作数据集时遇到了显存占满的问题,我想知道如何解决

Xjh-UCAS opened this issue · 1 comments

File "RealFLow.py", line 129, in
render_local(model, dataset, args.save_path, float(args.alpha),iters= int(args.iter))
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 828.00 MiB (GPU 0; 6.00 GiB total capacity; 2.38 GiB already allocated; 0 bytes free; 4.91 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

Could you try running this code on a machine with larger GPU memory more than 8G?