Closed alex-moon closed 2 years ago
For completeness: if we modify vc/service/helper/midas/run.py
to add channels_last=True
to the instantiation of DPTDepthModel
for dpt_hybrid
, we get the same error.
OK got it - as per https://github.com/isl-org/DPT/issues/37 the solution is to downgrade timm. Fine.
At present, the DPT hybrid model gives us this error:
This is in
vc/service/helper/midas/midas/vit.py
More details:
This is certainly a problem with
torch.nn.Conv2d
which calls are defined inDPTDepthModel.__init__
Can confirm we get exactly the same error if we use the DPT codebase itself:
https://github.com/isl-org/DPT
I reckon this is liable to be a torch version problem.