-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow showing image shaped tensors in the tensor view (#3583)
### What * Fixes #3569 Testcode: ``` import numpy as np import rerun as rr rr.init("tensor", spawn=True) rr.log("tensor", rr.Tensor(np.asarray(np.random.rand(100, 100, 3) * 255, dtype=np.uint8))) rr.log("image", rr.Image(np.random.rand(100, 100, 3))) ``` Before the `tensor` entity wouldn't show anything, now this shows two space views: <img width="1737" alt="image" src="https://github.com/rerun-io/rerun/assets/1220815/4542e132-b54e-4a2f-a722-a99fac262830"> In fact, we didn't allow tensor views for anything image shaped _at all_ before! Tested with `python ./scripts/run_all.py --fast` and (todo!) webdemo that this didn't break heuristic ### 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 [demo.rerun.io](https://demo.rerun.io/pr/3583) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/3583) - [Docs preview](https://rerun.io/preview/51350829da593ce510e685754a5df4df4a3fb4fe/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/51350829da593ce510e685754a5df4df4a3fb4fe/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
- Loading branch information
Showing
2 changed files
with
24 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters