Giter Club home page Giter Club logo

image_scorer's Introduction

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

image_scorer's People

Contributors

rockerboo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

image_scorer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.