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

Demo or Sample examples #1

Open
harshithdwivedi opened this issue Sep 18, 2020 · 1 comment
Open

Demo or Sample examples #1

harshithdwivedi opened this issue Sep 18, 2020 · 1 comment

Comments

@harshithdwivedi
Copy link

Hi @lidq92, great work as always!
I was wondering if you had a demo or some sample examples showcasing how the model performs across two similar images?

Thanks!

@lidq92
Copy link
Owner

lidq92 commented Sep 19, 2020

Hi @harshithdwivedi, Thank you for your attention.
Currently, I am busy with my PhD thesis, and here are the comments about your issue.
You can save the PLSR model parameters betaR in line 77 of QualityPrediction.m (for example, save the model on the 1st split experiment), then refer to line 90 for the inference stage.
More specifically, assume you have two images A and B and you have saved the trained PLSR model parameters betaR, you can extract their features F in the form of 2xf matrix by calling the function SFAfeature.m, then apply the inference stage of the PLSR model with [ones(2,1) F]*betaR, finally, you will see the predicted quality scores of images A and B.

When I am free, I may upload a demo (as well as simplify unnecessary code and improve the readability of the code).
But with these comments, you should be able to write the demo for your situation.
A pull request is welcomed.

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

No branches or pull requests

2 participants