Open nanmehta opened 4 years ago
Hey, @nan-rock. Higher PSNR dose not mean better visual quality but fidelity.
okay .. and thanks for the code
hey,i need your help. when i am using imresize_np() to generte set 14 low resolution images, my images are getting distorted. this is my code `path="D:/SR_testing_datasets/Set14" savepath="d:" for img_name in os.listdir(path): raw_img = cv2.imread(os.path.join(path, img_name)) shape=raw_img.shape
new_image=imresize_np(raw_img, (2)).astype(np.uint8)
#print("new",new_image.shape)
#new_image=tf.image.resize( raw_img, [shape[0]+1,shape[1]+1], method ='bilinear'4
result_img_path = os.path.join(savepath,img_name)
#print( result_img_path)
#print(result_img_path)
#print(os.listdir(result_img_path))
a=cv2.imwrite(result_img_path, new_image)
print(a) `
Try np.clip() value to 0 - 255 before astype to uint8
thanks a lot sir. wish u good luck.
hello sir, is the result evaluated on y channel or RGB
can u please tell me the reason, though esrgan has good results visually, but the psnr is low as compaired to psnr results