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

Is it possible to output cost volume? #119

Open
topriss opened this issue Mar 27, 2019 · 1 comment
Open

Is it possible to output cost volume? #119

topriss opened this issue Mar 27, 2019 · 1 comment

Comments

@topriss
Copy link

topriss commented Mar 27, 2019

Hi,

It is amazing how good the disp map is even tested on challenging unseen image pairs.
I was wondering if anyone could also output the cost volume beside the disp map.
I checked the costVolumePlugin provided in lib, but didn't really understand how it works.

Thanks!

@Alexey-Kamenev
Copy link
Collaborator

That's an interesting question! In theory you should be able to get the output of the cost volume plugin by either modifying the TensorRT model generation script (like this one) which produces TRT C++ model files or directly auto-generated files themselves (like this one).
The idea is to make cost volume layer (cost_vol) an output layer by calling network->markOutput with appropriate parameters. Then you need to change the binding code in the sample app like here and other places where assumption are made about output layer.

Note that the cost volume values that you'll get will be in feature space, not pixel space. Also, in case of 3D model each value will actually be a vector as the output of cost volume plugin will be 5D tensor (see our paper for details).

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