MiDaS icon indicating copy to clipboard operation
MiDaS copied to clipboard

Video input flickers badly

Open juntaosun opened this issue 1 year ago • 4 comments

This is a great project, when I use the video input, the depth picture is flickering badly, will the next version fix it? Thank you so much~

juntaosun avatar Jun 21 '23 11:06 juntaosun

@juntaosun You can try our video depth model ViTA is based on DPT (MiDaS 3.0).

KexianHust avatar Sep 05 '23 08:09 KexianHust

@juntaosun You can try our video depth model ViTA is based on DPT (MiDaS 3.0).

Not working, error wint torch.load(checkpoint) and cuda.

Cedvano avatar Sep 05 '23 09:09 Cedvano

@juntaosun You can try our video depth model ViTA is based on DPT (MiDaS 3.0).

Not working, error wint torch.load(checkpoint) and cuda.

You can change the Line 193 in demo.py:

os.environ["CUDA_VISIBLE_DEVICES"] = "1"

Because our machine has 2 GPUs, so we set 'CUDA_VISIBLE_DEVICES' to 1. If you only have 1 GPU, you can change '1' to '0'.

KexianHust avatar Sep 05 '23 11:09 KexianHust

Oh, sorry, I don't see this parameter :(

Now, that's work fine. Thanks.

Cedvano avatar Sep 05 '23 13:09 Cedvano