-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the rendered flow a backward flow? #38
Comments
Thanks for your attention. |
Sorry for the confusion. I’m working on image warping using rendered optical flow, but I’m uncertain whether the rendered optical flow represents the motion from the current frame to the next frame (forward) or from the current frame to the previous frame (backward). Could you clarify? |
Yes, it is both possible for forward and backward flow. But I just discovered there is a bug in backward flow. I'll notify you once it's fixed. Before that, you can refer to this BlenderProc. |
Thank you, I am looking forward to your good news. Is the optical flow in the current version forward optical flow? And is the rendered optical flow accurate? |
I fixed it in this commit 8f8f2e0. You can use it by following these steps for now (before a new version is released): git clone https://github.com/openxrlab/xrfeitoria.git
cd xrfeitoria
git checkout alpha_channel
pip install .
python -c "import xrfeitoria as xf; xf.init_blender(replace_plugin=True, dev_plugin=True)"
As for your question, yes I think now the forward and backward flow are all accurate. And as for how to read |
I use UE5 as my dev, I find the render optical flow just |
Yes, in ue5 |
Thank you! If there are any plans to support generating backward optical flow with UE5, please let me know. |
Hello, I noticed that the all values of the rendered optical flow (EXR) are quite small, typically less than 1.0. How should these values be properly scaled? For instance, should they be scaled based on the rendered image size, such as flow[:,:,0] * width and flow[:,:,1] * height? |
Hi, firstly, you can try to use this class to visualize the flow to see if it's weird. |
The visualized optical flow appears correct, as the flow_vis.flow_to_color() function scales the flow appropriately when converting it to an RGB image. |
I guess it's because the object is too far away from the camera? The optical flow is in camera space, so the value is tiny. Try to place the object near the camera, and see if the value is getting significantly bigger? |
Excellent work! Is the rendered flow a backward flow?
The text was updated successfully, but these errors were encountered: