Skip to content

rockerBOO/image_scorer

Repository files navigation

image_scorer

Web application for capturing image scores. Different experiments for capturing the image ratings.

Experiments

  • Score an image
  • Rate an image
  • Preference
  • Similarity

Score an image based on 1 to 10. Skip means give no rating, and back to the last rating to re-rate it.

Screenshot 2023-12-11 at 15-01-04 Screenshot

Get a predicted score, and modify it to the rating you think it should be. -- down by 1.0, - down by 0.1, + up by 0.1 ++ up by 1.0.

Screenshot 2023-12-11 at 16-28-47 Screenshot

Pick a image you prefer out of the list of 4 images. Alternative of best of 2 images.

Usage

git clone https://github.com/rockerBOO/image_scorer
cd image_scorer

Create images.json

We use images.json to create a list of images to rate. Images must be stored in images/ in the main directory. (Not ideal, but how it works)

python make_images_json.py images

Puts the images.json into priv/images.json

These images will be viewable though images/ URL.

Web service

Runs the web service for the UI

gleam run
 Compiled in 0.01s
  Running image_scorer.main
Listening on http://localhost:3030
Hello from image_scorer!

Then you can go to the web service:

http://localhost:3000/

Aesthetic prediction and similarity

Running the aesthetic predictive and similarity models. Using poetry to do package management.

poetry run uvicorn ae_scorer_server:app --port 3031
Loading CLIP ViT-L-14...
INFO:     Started server process [2399229]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:3031 (Press CTRL+C to quit)

No cross domain implementation, currently.

Tests

gleam test

Contribute

Not open for improvements as it's still a work in progress, but any feedback is open and welcome.

TODO

  • Finish rate.html plus/minus
  • Finish similarity file upload
  • Finish similarity dataset
  • Cleanup JS
  • Cleanup styling
  • Complete model hosting
  • Deploy

Additional improvements

  • Save each latent and CLIP image embeddings for the images

BUGS

There are no bugs. … Gotcha.

Preference

  • Preference when one of the items is 404 causes it the crash and can't proceed

About

Rating images interface for capturing image scores.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published