Enable fetching scores at runtime again - #1560
Conversation
|
One of the main motivators for the motion refactor was it improved the multithreading performance significantly. See the graph data in the original PR here. I didn't test it yet, but I think your changes probably re-introduce a cross-frame dependency that limits the threading throughput. I agree that this is a problem we need to fix, however I think we need to make sure we are not hurting the multithreading performance. I have some ideas on how to do this, but I am curious to know what you think? |
|
Yes, I agree. These changes introduce a cross-frame dependency and block threads for some time in case the When I measure the performance impact of these changes, the runtime difference between and get Don't get me wrong, if you have ideas to solve this is a better way, let's do that. I am happy to help, but would need some more insight into your ideas. I just read your comment about an upcoming patch release and wanted to make sure that this is on the radar. |
Hey again 🙂 ,
In v3.2.0 fetching scores at runtime seems to be broken due to the change in flushing
integer_motionfeatures. It appears to me thatmotionxfeatures are not computed inextract()anymore but influshonce all pictures are read. However, here it is still stated thatvmaf_score_at_index(..)could be called to fetch a score once pictures are read.I suppose the current behavior was not intended and this PR provides a "hotfix". I know, it might not be the most elegant solution to poll for the
sadfeature to be available in a loop, but at least this works in local verification tests on my machine.If there is anything I could/should do to verify the behavior or on the implementation side, please let me know. I will do my best to make this ready for the patch release you announced here.