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

"Request for Clarification: AssertionError Message in erqa.py File" #2

Open
aabuabat opened this issue Jun 15, 2023 · 1 comment
Open

Comments

@aabuabat
Copy link

Hello,

I hope this message finds you well. I would like to suggest a clarification for the AssertionError message in the erqa.py file. I encountered an issue which appears to be related to your package's requirement for the target image and the ground truth (gt) to have the same size and be in BGR order. The error message I received was as follows:

File ~/mambaforge/envs/image_quality/lib/python3.9/site-packages/erqa/erqa.py:62, in ERQA.__call__(self, img, gt, return_vis)
     61 def __call__(self, img, gt, return_vis=False):
---> 62     assert gt.shape == img.shape
     63     assert gt.shape[2] == 3, 'Compared images should be in BGR format'
     65     if self.global_compensation:

AssertionError: 

Assuming that img refers to the target image, it implies that both images must have the same size. If this is not the case, I'm uncertain about the purpose of the assert statement in this context.

I greatly appreciate your valuable contributions in this area.

Take care and stay safe!

@Kirillova-Anastasia
Copy link

Hello,
It was the case, the method was developed to work on two images of the same size.

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