question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `flow_to_image()` visualization util

See original GitHub issue

Now that RAFT is done, it’d be nice to have a conversion util from a 2xHxW flow to a 3xHxW RGB image. I think the implementation of the original RAFT paper follows a standard color map, so we could do something similar (trimmed down to the minimal parts, e.g. no BRG etc.) https://github.com/princeton-vl/RAFT/blob/master/core/utils/flow_viz.py

Note: this is a visualization util meant to land in torchvision.utils; it’s not meant to be a transform nor an ops.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
oke-adityacommented, Dec 13, 2021

I can take this 😄

0reactions
oke-adityacommented, Dec 14, 2021

I’ll be on holidays the last 2 weeks of Dec, so there’s absolutely no rush on our side 😉

Happy Holidays Nicolas. 😃

I will have a look at the script and try to implement a minimalist version. I will ping you back in a PR hopefully soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flow Screen Input Component: Display Image
Easily insert images in flow screens. Upload images to Salesforce as static resources and then you can reference them while configuring the component.Requ....
Read more >
Tutorial 11: Normalizing Flows for image modeling
In this tutorial, we will review current advances in normalizing flows for image modeling, and get hands-on experience on coding normalizing flows.
Read more >
Utils — Torchvision main documentation
Draws Keypoints on given RGB image. Converts a flow to an RGB image. Make a grid of images. Save a given Tensor into...
Read more >
tf.keras.preprocessing.image.ImageDataGenerator
Generate batches of tensor image data with real-time data augmentation.
Read more >
Optical Flow
We will create a dense optical flow field using the cv.calcOpticalFlowFarneback() method. Optical Flow. Optical flow is the pattern of apparent motion of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found