This repository provides an API server, called Wonny server, that evaluates images based on an aesthetic and technical image quality model. The model used in the server is from Image Quality Assessment, which is an implementation of Google's research paper "NIMA: Neural Image Assessment".
The evaluation using Wonny server is done in the following steps:
- User publishes an image file
- User queries Wonny server with the image url
- Wonny server returns a quality score of the image in the scale of 1 to 10
Note that the server is implemented in Node.js.
Wonny server is dockerized, so it can be built and run using docker commands.
docker build -t wonny -f Dockerfile-cpu .
or
docker build -t wonny -f Dockerfile .
docker run -p 80:80 -it wonny
Now the server is available at http://localhost. To learn how to query the server, see the next section.
Note that the docker image can be deployed using any docker-based deploy platform (e.g. ainize.ai).
The image to be evaluated needs to be published first. You can refer to the two following examples of how to publish image files:
Upload your image and get link.
For your convience, we share a Google Drive folder.
Once uploaded an image file, you can get a sharable link to the uploaded file from the image id provided by Google Drive:
https://drive.google.com/uc?export=view&id=${imageId}
Input Link for image.(Size of file should be less than 40Mb)