Open MLDrago opened 3 years ago
niqe is not supported in METRIC_REGISTRY yet, since it's parameters are incompatible with other metrics (niqe is blind and doesn't need gt). The quickest fix is like this:
@METRIC_REGISTRY.register()
def calculate_niqe(img1, img2, crop_border, input_order='HWC', convert_to='y'):
img = img1.astype(np.float32)
I am trying to run the niqe.py script mapping to the results directory.
I am getting this error :
root@xsjatg1:/usr/local/lib/python3.8/dist-packages/basicsr/metrics# python niqe.py /workspace/Real-ESRGAN/APDrawingDB/mask/ALL/img_1585.png /workspace/Real-ESRGAN/results/img_1585_out.png
niqe.py:5: DeprecationWarning: Please use convolve
from the scipy.ndimage
namespace, the scipy.ndimage.filters
namespace is deprecated.
from scipy.ndimage.filters import convolve
Traceback (most recent call last):
File "niqe.py", line 144, in
I did plugin the above code and post this i am seeing this issue.
Hello,
I'am trying to test my trained model and evaluate it on the niqe metric. In put this in my yaml file:
Which gives me the following error:
I also tried to pass: no parameters; only the crop_border but I have still this issue