How to test basicvsr++ on long video? #1208
-
|
@ckkelvinchan Hi, I have a simple question, how to test basicvsr++ on long video with many frames. I notice that you process whole video frames together as your config file shows. REDS dataset only has 100 frames per video clip, so this method will not have a problem, but when I want to test on a longer video, such as 300/6000 frames, how can I achieve it? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
you can check the file mmedit/apis/restoration_video_inference.py, in that file, It has the variable name: max_seq_len and you can set it to value with the maximal number of frames your computer can handle. It will process each sequence with length: max_seq_len and concat all the results at the end. |
Beta Was this translation helpful? Give feedback.
-
|
@grimoire Yeah, I found this very helpful, thank you for your timely response! But, I have another question, the last split may have the length of frames smaller than |
Beta Was this translation helpful? Give feedback.
-
|
sure, you can test and I think it can help improve your result. The approach to splitting is the simplest one. |
Beta Was this translation helpful? Give feedback.
-
|
@meobach Thanks! |
Beta Was this translation helpful? Give feedback.
you can check the file mmedit/apis/restoration_video_inference.py, in that file, It has the variable name: max_seq_len and you can set it to value with the maximal number of frames your computer can handle. It will process each sequence with length: max_seq_len and concat all the results at the end.