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

add depth compare example #6885

Merged
merged 8 commits into from
Jul 26, 2024
Merged

add depth compare example #6885

merged 8 commits into from
Jul 26, 2024

Conversation

pablovela5620
Copy link
Contributor

@pablovela5620 pablovela5620 commented Jul 14, 2024

What

A new example for Monocular Depth estimation.

This example demonstrates using rerun to compare different monocular depth estimation networks including DepthAnythingV1/V2, Unidepth, and Metric3DV2. It allows easy loading of each network and runs them side by side to show the depth map, disparity map, back project to camera space, and point cloud. This includes a huggingface space and an external repository. This is currently a draft PR as I'm waiting for gradio rerun viewer to upgrade to 0.17. This is to make it easy to use a viewer per tab, only with setting the image plane distance with blueprint
Huggingface Space
DepthCompare

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!
  • If have noted any breaking changes to the log API in CHANGELOG.md and the migration guide

To run all checks from main, comment on the PR with @rerun-bot full-check.

@pablovela5620 pablovela5620 marked this pull request as ready for review July 25, 2024 14:31
@02alexander
Copy link
Collaborator

02alexander commented Jul 26, 2024

The example directory must be added to the examples/manifest.toml for it to show on the rerun.io/examples page. But other than that it looks great.

@pablovela5620
Copy link
Contributor Author

Add depth_compare to the generative-vision section and also added the thumbnail!

@02alexander 02alexander added examples Issues relating to the Rerun examples include in changelog labels Jul 26, 2024
@02alexander 02alexander merged commit 4f3f1dc into rerun-io:main Jul 26, 2024
30 of 31 checks passed
@pablovela5620 pablovela5620 deleted the depth-compare branch July 26, 2024 13:56
02alexander added a commit that referenced this pull request Jul 26, 2024
<!--
Open the PR up as a draft until you feel it is ready for a proper
review.

Do not make PR:s from your own `main` branch, as that makes it difficult
for reviewers to add their own fixes.

Add any improvements to the branch as new commits to make it easier for
reviewers to follow the progress. All commits will be squashed to a
single commit once the PR is merged into `main`.

Make sure you mention any issues that this PR closes in the description,
as well as any other related issues.

To get an auto-generated PR description you can put "copilot:summary" or
"copilot:walkthrough" anywhere.
-->

### What
A new example for Monocular Depth estimation.

This example demonstrates using rerun to compare different monocular
depth estimation networks including
[DepthAnythingV1/V2](https://github.com/LiheYoung/Depth-Anything),
[Unidepth](https://github.com/lpiccinelli-eth/UniDepth/tree/main), and
[Metric3DV2](https://github.com/YvanYin/Metric3D). It allows easy
loading of each network and runs them side by side to show the depth
map, disparity map, back project to camera space, and point cloud. This
includes a huggingface space and an external repository. This is
currently a draft PR as I'm waiting for [gradio rerun viewer to upgrade
to 0.17](radames/gradio-rerun-viewer#3). This is
to make it easy to use a viewer per tab, only with setting the image
plane distance with blueprint
[Huggingface
Space](https://huggingface.co/spaces/pablovela5620/depth-compare)

![DepthCompare](https://github.com/user-attachments/assets/1b56363c-f3ba-43a4-aee9-1eae62f43916)

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using examples from latest `main` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6885?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6885?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!
* [x] If have noted any breaking changes to the log API in
`CHANGELOG.md` and the migration guide

- [PR Build Summary](https://build.rerun.io/pr/6885)
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

To run all checks from `main`, comment on the PR with `@rerun-bot
full-check`.

---------

Co-authored-by: Alexander Berntsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Issues relating to the Rerun examples include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants