NVDS
NVDS copied to clipboard
How to use different MiDaS model?
@RaymondWang987: We have tried NVDS with MiDaS, DPT, MiDaS 3.1, and NewCRFs. The results are quite satisfactory. You can simply change the depth predictor to MiDaS 3.1 (only adjusting one line in our demo code) and our NVDS can produce significant improvement in temporal consistency.
I suppose you were refering to these lines:
dpt = MidasNet_large('./dpt/checkpoints/midas_v21-f6b98070.pt', non_negative=True).to(device_flow)
dpt = DPTDepthModel(path='./dpt/checkpoints/dpt_large-midas-2f21e586.pt', etc.
I thought I could simply point it to a different model file (dpt_beit_large_512.pt
from MiDaS 3.1) but it crashes so it seems it's not that easy.
Would you mind adding some details?