photosynthesis-team / piq

Measures and metrics for image2image tasks. PyTorch.
Apache License 2.0
1.41k stars 120 forks source link

Incorrect error message in Inception feature extractor #300

Closed snk4tr closed 1 year ago

snk4tr commented 2 years ago

Describe the bug If a data of incorrect range is passed, the error message prints out a misleading message.

To Reproduce Steps to reproduce the behavior:

  1. Take data from TID2013/KADID-10k/PIPAL datasets (range [0, 255])
  2. Try to compute any DB metric (e.g., IS, FID) without data normalization
  3. Get the following message: AssertionError: Input tensor should be normalized in (0, 0) range

Expected behavior The following message is expected: AssertionError: Input tensor should be normalized in (0, 1) range