DepthViewer icon indicating copy to clipboard operation
DepthViewer copied to clipboard

Can't pause/rewind/ff new depth-anything beta build videos

Open 311-code opened this issue 1 year ago • 6 comments

The new Unity beta build with depth-anything works great for me, the only issue I have is the numpad 5, 6, 4 no longer fast forward rewind or pause when using the depth-anything model when playing a video. Any way to fix this?

311-code avatar Feb 07 '24 09:02 311-code

Weird, in my environment it works with vitb14 loaded. You aren't using ffpymq.py, right?

See if the key is being pressed using Debug.Log(): here

parkchamchi avatar Feb 12 '24 08:02 parkchamchi

Oh I am using mostly the large model with 4090 here, does it work on large model for you? I am once again out of town so I've been less active.

311-code avatar Feb 14 '24 04:02 311-code

Works for me. The model selected should not influence that behavior.

parkchamchi avatar Feb 14 '24 05:02 parkchamchi

Still doesn't work for me and did a fresh download, what keys should I be pressing? I did numberpad 5 for pause, etc. It works on older version when I test it with default mode and midas hmm.

Do you have maybe a video of exactly how you are launching, loading the depth-anything model, then showing you can pause the video? Not sure if I am doing something wrong here.

311-code avatar Feb 21 '24 06:02 311-code

Well, it should be not different from loading a midas onnx file. Does the console output any error?

Test if the key is pressed by changing here:


//CHECK `Keymapper.Inst` is not null
if (Keymapper.Inst == null)
	Debug.LogError("Keymapper.Inst is null");
else
	Debug.Log($"Pause: {Keymapper.Inst.VideoPause}");

if (Input.GetKeyDown(Keymapper.Inst.VideoRewind))
	Skip(-5f);
else if (Input.GetKeyDown(Keymapper.Inst.VideoPause)) {
	//CHECK IF THE KEY IS BEING PRESSED
	Debug.Log("Pause button pressed");

	PausePlay();
}
else if (Input.GetKeyDown(Keymapper.Inst.VideoForward))
	Skip(+5f);

parkchamchi avatar Feb 24 '24 08:02 parkchamchi

Sorry for delay, I will get back to this soon. I didn't see a console error. I will try what you wrote above soon.

311-code avatar Apr 05 '24 08:04 311-code