image-quality-assessment icon indicating copy to clipboard operation
image-quality-assessment copied to clipboard

Is it possible to predict other type of images like png?

Open jaceblake opened this issue 4 years ago • 1 comments

Although I am trying to predict png file, the error shows jpg file not found. Any idea?

image_test

Thanks in advance

jaceblake avatar Feb 23 '20 02:02 jaceblake

Hi,

I was having the same problem with my png files, and it seems like in the code somewhere it adds .jpg extension to the filename, regardless of the file format.

Although one could change one line of code to make it work for png, I figured it would be faster for me to convert all the png files to jpgs other than trying to track down the codes that the authors wrote.

I used software called 'Imagemagick' to batch process all images from png to jpg (https://imagemagick.org/index.php):

sudo apt install imagemagick mogrify -monitor Detail -path "OuputFolderName" -format jpg *.png

Please note that above command needs to be run on the folder where you have png images.

It took about 10 minutes to process 2.5G worth of 60,000 images on my laptop, so it doesn't take that long.

johnypark avatar Jul 27 '20 08:07 johnypark