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

Inference results from tensorflow version #11

Open
horizon0408 opened this issue Oct 7, 2019 · 3 comments
Open

Inference results from tensorflow version #11

horizon0408 opened this issue Oct 7, 2019 · 3 comments

Comments

@horizon0408
Copy link

horizon0408 commented Oct 7, 2019

Hi, I tried with the tensorflow verision and ran the inference code with the pretrained model you provide. I run with the command line --fullRes.

The images of the disparity map look pretty well. But when I save the disparity as a numpy array directly, I realized compared with ground truth, it seems to have some scaling problems: It looks like that the disparity values have been divided by 2. I have no idea why it happens.

I have two examples to explain my question. One from Flyingthings and one from KITTI
https://drive.google.com/open?id=12ddoPxYLgetrO9KsmmLKzicPFA__uHhD
https://drive.google.com/open?id=1xW3IX5Ys225cxBsAY5fjTP1Q_ReyzvUE

@AlessioTonioni
Copy link
Member

AlessioTonioni commented Oct 8, 2019

How have you serialized the predicitons to numpy?
Have you rescaled the input images?

@horizon0408
Copy link
Author

horizon0408 commented Oct 8, 2019

To get the predictions in numpy, I just run

disparity = full_res_prediction_np if args.fullRes else raw_prediction_np
np.save(dest[:-4], np.squeeze(disparity))

in your inference.py

The inputs are not rescaled. I run with command line --fullRes, and I also get the same size prediction as groud truth, which might confirm this.

@AlessioTonioni
Copy link
Member

As far as I remember there was no scaling in the tensorflow version of the code. If you are only interested in inference with dispnet you can also refer to this codebase as the implementation (and weights) of dispnet should be the same.
https://github.com/CVLAB-Unibo/Real-time-self-adaptive-deep-stereo

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