Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement SAST resizer from FUNQUE #1361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cosmin
Copy link
Contributor

@cosmin cosmin commented Apr 23, 2024

The FUNQUE implementation at https://github.com/cosmin/vmaf/tree/funque contains an optional SAST resizer which downscales the input image dimensions by a factor of 2.

This brings in that implementation of the resizer with an optimized code path for 0.5x downscaling with AVX2, AVX512 and NEON SIMD implementation.

In theory this could be used by more than just the FUNQUE extractor, for example SSIM can benefit from the same SAST transform[1] and we could use this for an optimized standalone eSSIM feature extractor.

[1] A. K. Venkataramanan, C. Wu, A. C. Bovik, I. Katsavounidis and Z. Shahid, "A Hitchhiker’s Guide to Structural Similarity," in IEEE Access, vol. 9, pp. 28872-28896, 2021, doi: 10.1109/ACCESS.2021.3056504 https://ieeexplore.ieee.org/document/9344648

#include <string.h>
#include <arm_neon.h>
#include <time.h>
#include "../resizer.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer specifying this without .. if possible - I think it can be converted to #include "resizer.h" directly with no other changes?

@nilfm99
Copy link
Collaborator

nilfm99 commented May 21, 2024

Hi, sorry for the delay here, I have looked at this a few times and haven't found any significant issues. Do you have any tests on your branches that could give us extra confidence in the changes?


#include "resizer.h"

//const int HBD_INTER_RESIZE_COEF_SCALE = 2048;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be removed, it is in resizer.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants