visinf / irr

Iterative Residual Refinement for Joint Optical Flow and Occlusion Estimation (CVPR 2019)
Apache License 2.0
194 stars 32 forks source link

Hi,How to test large images? #20

Closed 972461099 closed 4 years ago

972461099 commented 4 years ago

Thanks for your share code,that's great. But there is a problem, when I test large size images, the GPU is not enough. So I cut the picture into four pieces and stitched them after testing. But the lines are obvious. Could you tell me how to improve that?

glt

hurjunhwa commented 4 years ago

Hi,

If cropping the images into several pieces, it becomes more challenging to estimate optical flow especially when a corresponding pixel is in the other cropped image. In this case, it would be better to resize the image into 1/4 or 1/16, and then estimate the flow. There may be some accuracy drop (maybe for small objects), but it won't be too significant. How big is your input image?

Best, Jun

972461099 commented 4 years ago

My image is 2048 * 2048, , and my gpu is 24G,because I need the optical flow map as the feature map of my model. Thank you for your suggestions, I will try.