We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rr.Tensor
Describe the bug Seems like tensors that have a shape like (H, W, C=1 or 3 or 4) do not show up in the viewer.
(H, W, C=1 or 3 or 4)
To Reproduce
import numpy as np import rerun as rr rr.init("tensor", spawn=True) rr.log("tensor", rr.Tensor(np.random.rand(100,100,3)))
shows the empty viewer.
Rerun version
rerun_py 0.9.0-alpha.4 [rustc 1.72.1 (d5c2e9c34 2023-09-13), LLVM 16.0.5] x86_64-unknown-linux-gnu db71899, built 2023-09-30T10:33:12Z
The text was updated successfully, but these errors were encountered:
Allow showing image shaped tensors in the tensor view (#3583)
02a0eae
### 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/)
Wumpf
Successfully merging a pull request may close this issue.
Describe the bug
Seems like tensors that have a shape like
(H, W, C=1 or 3 or 4)
do not show up in the viewer.To Reproduce
shows the empty viewer.
Rerun version
The text was updated successfully, but these errors were encountered: