princeton-vl / RAFT

BSD 3-Clause "New" or "Revised" License
3.12k stars 621 forks source link

CUDA error: an illegal memory access was encountered #149

Open Davidyao99 opened 1 year ago

Davidyao99 commented 1 year ago

I am using the demo.py code on a relatively large image size of 1408x1408. However, it is raising a CUDA error: illegal memory access was encountered.

This seems to be happening after the line flow_low, flow_up = model(image1, image2, iters=50, test_mode=True) After this line, trying to access flow_up or image1 leads to the above error. I suspect this might be due to cuda memory issues? When I use a smaller image this error does not occur. Any idea how I can resolve this? Thank you!