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

Fix image view not handling images with extra leading dimensions of size 1 #5579

Merged
merged 3 commits into from Mar 20, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Mar 19, 2024

What

Encountered this while inspecting the depth_guided_stable_diffusion example:

Before: Nothing shown for a depth image with dimensions 1x1x64x96
image

After:
image

Note that the changed shape_short is only used for image_height_width_channels.

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!

@Wumpf Wumpf added 🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself include in changelog labels Mar 19, 2024
@Wumpf Wumpf force-pushed the andreas/fix-handling-image-with-trailing-dimensions branch from f03d53a to 7908413 Compare March 19, 2024 17:01
### What

This was a tough one! But I'm somewhat happy with how this looks now.


![image](https://github.com/rerun-io/rerun/assets/1220815/c8813994-0cbe-4b11-8c39-62e507828b81)

For comparision, this is a social media post we did with this demo at
some point. It had a different aspect ratio though which is why I
diverged from this quite a bit

https://www.linkedin.com/posts/nikolauswest_visualizing-depth-guided-stable-diffusion-activity-7011344379873234945-IFS7/?trk=public_profile_like_view


### 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 newly built examples:
[app.rerun.io](https://app.rerun.io/pr/5582/index.html)
* Using examples from latest `main` build:
[app.rerun.io](https://app.rerun.io/pr/5582/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[app.rerun.io](https://app.rerun.io/pr/5582/index.html?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)!

- [PR Build Summary](https://build.rerun.io/pr/5582)
- [Docs
preview](https://rerun.io/preview/f3c0af0de4cf5cb54526428cf4aaaa6c23f2c91b/docs)
<!--DOCS-PREVIEW-->
- [Examples
preview](https://rerun.io/preview/f3c0af0de4cf5cb54526428cf4aaaa6c23f2c91b/examples)
<!--EXAMPLES-PREVIEW-->
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

---------

Co-authored-by: Clement Rey <cr.rey.clement@gmail.com>
@Wumpf Wumpf force-pushed the andreas/fix-handling-image-with-trailing-dimensions branch 2 times, most recently from 4f4903a to ce7eab6 Compare March 20, 2024 12:42
@Wumpf Wumpf merged commit c6bbfaf into main Mar 20, 2024
45 of 60 checks passed
@Wumpf Wumpf deleted the andreas/fix-handling-image-with-trailing-dimensions branch March 20, 2024 12:44
@emilk emilk changed the title Fix image view not handling images with extra leading dimensions of size 1 Fix image view not handling images with extra leading dimensions of size 1 Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working include in changelog 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants