Code for robust monocular depth estimation described in "Ranftl et. al., Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer, TPAMI 2022"
MIT License
4.27k
stars
599
forks
source link
Allow for Pytorch 2.0 JIT tracing and torch onnx conversion. #220
When creating ONNX file or Pytorch JIT trace, this utils file throws a type error, as the torch.Size() function expects an array of ints not torch tensors.
Fix:
Extract int from torch tensor, using .item()func call.
Issue:
When creating ONNX file or Pytorch JIT trace, this utils file throws a type error, as the
torch.Size()
function expects an array of ints not torch tensors.Fix:
Extract int from torch tensor, using
.item()
func call.