Skip to content
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

Optical Flow in VFX #17

Open
emlcpfx opened this issue Aug 21, 2024 · 3 comments
Open

Optical Flow in VFX #17

emlcpfx opened this issue Aug 21, 2024 · 3 comments

Comments

@emlcpfx
Copy link

emlcpfx commented Aug 21, 2024

I have dot (and other OF repos) exporting flow data as 32-bit EXR STMaps for use in visual effects.

https://www.linkedin.com/posts/ericlevy_my-little-optical-flow-project-is-coming-activity-7231701952487723008-W9ae?utm_source=share&utm_medium=member_ios

I’d love help — even just conceptually — on how to improve the results.

I have it so I can export an STMap from different reference frames, accumulating the flow forward and then backward from there.

I’m trying to get it as close to SmartVectors in Nuke as possible. I talked with someone who trained their own OF model, who said this about SmartVectors, “ …can output vectors in the SmartVector format. That is still just multiple motion vector sets. The actual processing and conversion to STMaps happens in the NukeX node VectorDistort.”

I’m not smart enough to figure out how to export multiple motion vector sets (presumably from different reference frames,) and then combine them to improve the accuracy and stability of the resulting track.

I can share my code if that helps! Thanks.

@16lemoing
Copy link
Owner

https://www.linkedin.com/posts/ericlevy_my-little-optical-flow-project-is-coming-activity-7231701952487723008-W9ae?utm_source=share&utm_medium=member_ios

Great project! Has this been done using dot? I would expect single reference to be enough for this kind of short clip.

We have been exploring ways to combine multiple reference frames to further improve the results but it is not yet implemented on this repo.

@emlcpfx
Copy link
Author

emlcpfx commented Aug 21, 2024

Hey, this was done with SEA-RAFT, and dot had the exact same output. I'm doing a similar workflow with Blackmagic Fusion, and their results are even more stable:

https://www.linkedin.com/posts/ericlevy_this-blackmagic-fusion-smartvector-workflow-activity-7232052769539457024-aSed?utm_source=share&utm_medium=member_desktop

Do you think we'd be able to join forces to beat them? :)

@16lemoing
Copy link
Owner

Results look great indeed!

I don’t have much bandwidth right now, but if there’s anything specific I can do to help, please let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants