DRNet icon indicating copy to clipboard operation
DRNet copied to clipboard

How could I run the repo on a video and see the result?

Open munaiyi719 opened this issue 3 years ago • 4 comments

How could I run the repo on a video and see the result?
I want to test a video like https://www.bilibili.com/video/BV1cY411H7hr/.

munaiyi719 avatar Jan 09 '23 09:01 munaiyi719

We provide the demo_code in this repo, which includes how to fragment a video to frames and then inference on those frames. After that, you can reorgnized the predicted results to a video like the demo you referenced.

Hope this reply can help you!

taohan10200 avatar Jan 09 '23 11:01 taohan10200

I run video2img.py and run test_beijng.py. However I find that there is no Video_Crowd_Counting in model.VIC.

munaiyi719 avatar Jan 09 '23 12:01 munaiyi719

After I transform video to imgs, what need I do next?

munaiyi719 avatar Jan 09 '23 12:01 munaiyi719

Please change the counter name to Video_Individual_Counter. After obtaining the imgs, you should modify the dir name in test_CroHD.py and then perform inference.

taohan10200 avatar Jan 10 '23 10:01 taohan10200