isl-org / isl-org/Open3D

open3d.cuda.pybind.geometry.Image to torch tensor dtype cuda without converting to numpy

Open
#7,019 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### My Question

Chat GPT suggesting `.as_tensor()` or `o3d.t.geometry.Image.from_legacy_image` and `torch.utils.dlpack.from_dlpack(o3d_tensor.to_dlpack())`
but 'AttributeError: 'open3d.cuda.pybind.geometry.Image' object has no attribute 'as_tensor''
and 'AttributeError: type object 'open3d.cuda.pybind.t.geometry.Image' has no attribute 'from_legacy_image'
`o3d.__version__
Out[12]: '0.18.0'`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.