Use Efficient RAFT Implementation (Inference Only)
mainFor inference, you can use an efficient RAFT implementation that uses significantly less GPU memory during the forward pass, though it is slightly slower than the all-pairs implementation.
Warning: This implementation does not support the backward function and must not be used during training.
- Compile the CUDA extension:
cd alt_cuda_corr && python setup.py install && cd .. - In your config files, change the
corr_fnflag toefficient.
cd alt_cuda_corr && python setup.py install && cd ..