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

Question about polyfit in dnsmos_local.py #164

Open
luxiaolululu opened this issue Feb 14, 2023 · 1 comment
Open

Question about polyfit in dnsmos_local.py #164

luxiaolululu opened this issue Feb 14, 2023 · 1 comment

Comments

@luxiaolululu
Copy link

Hello,when i use dnsmos_local.py. I saw polyfit process after get dnsmos result from local model.

I am wondering which dnsmos result should i use? raw or poly?

    def get_polyfit_val(self, sig, bak, ovr, is_personalized_MOS):
        if is_personalized_MOS:
            p_ovr = np.poly1d([-0.00533021,  0.005101  ,  1.18058466, -0.11236046])
            p_sig = np.poly1d([-0.01019296,  0.02751166,  1.19576786, -0.24348726])
            p_bak = np.poly1d([-0.04976499,  0.44276479, -0.1644611 ,  0.96883132])
        else:
            p_ovr = np.poly1d([-0.06766283,  1.11546468,  0.04602535])
            p_sig = np.poly1d([-0.08397278,  1.22083953,  0.0052439 ])
            p_bak = np.poly1d([-0.13166888,  1.60915514, -0.39604546])

        sig_poly = p_sig(sig)
        bak_poly = p_bak(bak)
        ovr_poly = p_ovr(ovr)
@hiroshisato111
Copy link

Hi, I had exact the same question and searched for the explanation.

The difference seems to be responded here:
#123

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