czczup / ViT-Adapter

[ICLR 2023 Spotlight] Vision Transformer Adapter for Dense Predictions
https://arxiv.org/abs/2205.08534
Apache License 2.0
1.22k stars 135 forks source link

realtime semantic segmentation and video_demo.py concern #107

Open pkbeen opened 1 year ago

pkbeen commented 1 year ago

Hello. I use cityscapes pth file to segmentation image or demo.mp4 using image_demo.py , video_demo.py. But i want to use it at real time. How can i do that?? Can i do that using test.py??

And I have one more question. When I use video_demo.py some warning msg was appear like this.

OpenCV: FFMPEG: tag 0x47504a4d/'MJPG' is not supported with codec id 7 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'

So I use h264, xvid, mpeg, but there is no effect. This warning msg appears, video_demo.py's launching speed is so slow. Can you help me??

Thank you

pkbeen commented 1 year ago

I tried to using mask2former_beit_cityscapes.py's model. But that model's type is dict, so I can't use it. Can you help me?