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

测试结果不在[0,1]区间 #32

Open
baoyu2020 opened this issue Nov 21, 2024 · 1 comment
Open

测试结果不在[0,1]区间 #32

baoyu2020 opened this issue Nov 21, 2024 · 1 comment

Comments

@baoyu2020
Copy link

您好!
请问为何测试结果不在[0,1]区间?
相同的输入,使用DBCNN, 结果是0.49859,LIQE是3.3864

######Test LIQE#####

import torch
import cv2
import torch.nn.functional as F
import pyiqa

iqa_metric = pyiqa.create_metric("liqe_mix", device="cuda")
img = cv2.imread('/data1/home/Testcodec/bench/jpeg-ai/invcompress/q8/00003_TE_1944x1296.png')
img = torch.tensor(img).permute(2, 0, 1).float()
img = img.unsqueeze(0) / 255.0
print(img.shape)
print(iqa_metric(img))
del img

######Out#####
torch.Size([1, 3, 1296, 1944])
tensor([3.3864], device='cuda:0')

00009_TE_1976x1312_rec

@zwx8981
Copy link
Owner

zwx8981 commented Dec 4, 2024

你好,LIQE的分数区间是[1,5]

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