You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be straightforward, as it mainly involves converting the Vision Transformer to ONNX. We plan to look into this in the near future, and we’d also welcome a pull request if you have a better implementation.
I +1 this! I tried converting to ONNX myself but kept running into problems. The main problems were relating to xformers / flash attention. When I got a working ONNX after some monkey-patching, inference went from sub 2 seconds to 15 seconds, so I'm sure I did something wrong. I would like to run this model on a Triton server.
I wanted to share my experience with this model. First of all, the depth completion performance is absolutely amazing! I tested it in a PyTorch environment across various challenging outdoor conditions (e.g., marble floors, water puddles, daytime, and nighttime), and the refinement results were highly accurate.
However, I ran into significant roadblocks when trying to export the model to ONNX for deployment. Initially, the ONNX export failed completely because of the dynamically changing number of input depth tokens.
To work around this, I modified the code to use a fixed maximum number of tokens with padding and managed to compile a TensorRT engine. Unfortunately, this approach resulted in increased latency. Furthermore, the inference quality noticeably degraded, particularly in regions where the input depth map had missing values (empty pixels).
For future releases, it would be incredibly helpful if the model size could be scaled down (e.g., lighter backbone) and if the architecture could be made more ONNX-friendly (such as supporting static graphs without dynamic token masking).
Activity
cherubicXN commentedon Feb 8, 2026
Hi @aa851182472,
This should be straightforward, as it mainly involves converting the Vision Transformer to ONNX. We plan to look into this in the near future, and we’d also welcome a pull request if you have a better implementation.
Thank you for your question.
dycoene03 commentedon Feb 25, 2026
I +1 this! I tried converting to ONNX myself but kept running into problems. The main problems were relating to xformers / flash attention. When I got a working ONNX after some monkey-patching, inference went from sub 2 seconds to 15 seconds, so I'm sure I did something wrong. I would like to run this model on a Triton server.
JeonHyeongJunKW commentedon Mar 18, 2026
Hi @cherubicXN
I wanted to share my experience with this model. First of all, the depth completion performance is absolutely amazing! I tested it in a PyTorch environment across various challenging outdoor conditions (e.g., marble floors, water puddles, daytime, and nighttime), and the refinement results were highly accurate.
However, I ran into significant roadblocks when trying to export the model to ONNX for deployment. Initially, the ONNX export failed completely because of the dynamically changing number of input depth tokens.
To work around this, I modified the code to use a fixed maximum number of tokens with padding and managed to compile a TensorRT engine. Unfortunately, this approach resulted in increased latency. Furthermore, the inference quality noticeably degraded, particularly in regions where the input depth map had missing values (empty pixels).
For future releases, it would be incredibly helpful if the model size could be scaled down (e.g., lighter backbone) and if the architecture could be made more ONNX-friendly (such as supporting static graphs without dynamic token masking).
Thanks for the great work!
Beauhowe commentedon Aug 25, 2026
How is it performing now? I'm planning to convert it to ONNX format as well.