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

Output in grayscale, so the maps are usable #62

Open
gituser123456789000 opened this issue Mar 27, 2024 · 3 comments
Open

Output in grayscale, so the maps are usable #62

gituser123456789000 opened this issue Mar 27, 2024 · 3 comments

Comments

@gituser123456789000
Copy link

gituser123456789000 commented Mar 27, 2024

Please add an option to output maps in grayscale (the standard white front / black back), so the maps are usable, instead of looking fancy in color, but being unusable.

Also the option to output the maps alone and not with the other images above and below it.. just the depth map in the original gray tone, before colormap is added.

@JUGGHM
Copy link
Collaborator

JUGGHM commented Mar 29, 2024

Don't worry, just uncomment this line

#save_raw_imgs(pred_depth.detach().cpu().numpy(), rgb_torch, osp.join(an['folder'], an['filename']), save_imgs_dir, 1000.0)
. We will support this soon.

@gituser123456789000
Copy link
Author

Thank you JUGGHM. Simple solution, but I'm not a coder, so I didn't notice it. My fix was to change 'rainbow' to 'binary' and make some other modifications to stop the other 2 images from being combined with the depth map. It's nice to have an official solution and I'm curious to see if the results from my solution matched or not.

@WorldofDepth
Copy link

It would be wonderful if the v2 Huggingface demo could have this as a toggle and/or download option! Thank you for considering.

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

3 participants