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

depth question #73

Open
453875726 opened this issue Sep 11, 2024 · 1 comment
Open

depth question #73

453875726 opened this issue Sep 11, 2024 · 1 comment

Comments

@453875726
Copy link

Can I use scripts/demo.py to estimate exact depth by inputting my own images?
I mean if the min distance in an image is 1cm, the max distance in an image is 10m, will I get a same colorized image as the min distance in an image is 10cm, the max distance in an image is 100m?

@lpiccinelli-eth
Copy link
Owner

The vmin and vmax parameters of the function colorize define the range that the minimal color and maximal color of the colormap will correspond (yellow and deep purple for for magma_r colormap, respectively).

However, I suggest predicting the float values and saving it as a tensor or array, namely sth like: np.save("filename.npy", depth_pred), and then you can load and colorize it however you prefer in a second moment.

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