megvii-research / RealFlow

The official implementation of the ECCV 2022 Oral paper: RealFlow: EM-based Realistic Optical Flow Dataset Generation from Videos
Other
90 stars 11 forks source link

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

Open Xjh-UCAS opened 1 year ago

Xjh-UCAS commented 1 year ago

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

coolbeam commented 1 year ago

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