Open3D
Open3D copied to clipboard
open3d.cuda.pybind.geometry.Image to torch tensor dtype cuda without converting to numpy
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
mainbranch).
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'