Experimenting with midas on torch 1.12.1 led to a well documented but unfixed issue concerning jit tracing and unflatten layers (https://github.com/pytorch/pytorch/issues/49538).
This is a workaround from the mentioned thread (as well as minor adjustments respecting warnings) that should otherwise have no impact.
Experimenting with midas on torch 1.12.1 led to a well documented but unfixed issue concerning jit tracing and unflatten layers (https://github.com/pytorch/pytorch/issues/49538). This is a workaround from the mentioned thread (as well as minor adjustments respecting warnings) that should otherwise have no impact.