{"id":16137664,"url":"https://github.com/rockerboo/aesthetics-score","last_synced_at":"2025-03-18T16:30:31.936Z","repository":{"id":162214912,"uuid":"636811099","full_name":"rockerBOO/aesthetics-score","owner":"rockerBOO","description":"Find the aesthetic score of your images using a neural network predictor","archived":false,"fork":false,"pushed_at":"2025-03-14T15:01:25.000Z","size":96,"stargazers_count":13,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T21:51:15.417Z","etag":null,"topics":["aesthetics","machine-learning","neural-network","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rockerBOO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-05T17:46:35.000Z","updated_at":"2024-10-18T03:24:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"a157a2ac-0af6-4707-8005-f5fe30b30741","html_url":"https://github.com/rockerBOO/aesthetics-score","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockerBOO%2Faesthetics-score","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockerBOO%2Faesthetics-score/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockerBOO%2Faesthetics-score/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockerBOO%2Faesthetics-score/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rockerBOO","download_url":"https://codeload.github.com/rockerBOO/aesthetics-score/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244259799,"owners_count":20424617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aesthetics","machine-learning","neural-network","python"],"created_at":"2024-10-09T23:28:53.850Z","updated_at":"2025-03-18T16:30:31.931Z","avatar_url":"https://github.com/rockerBOO.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aesthetic Score\n\n\u003c!--toc:start--\u003e\n- [Aesthetic Score](#aesthetic-score)\n  - [Install](#install)\n  - [Usage](#usage)\n    - [File](#file)\n    - [Directory](#directory)\n    - [CSV](#csv)\n  - [Development](#development)\n  - [Future](#future)\n  - [Contributions](#contributions)\n  - [Thanks](#thanks)\n\u003c!--toc:end--\u003e\n\nFind the aesthetic score of your images. \n\n\u003e A linear estimator on top of clip to predict the aesthetic quality of pictures \n\n## Install\n\n```\ngit clone aesthetic-score\ncd aesthetic-score\n```\n\n```bash\npython -m venv venv\n# In cmd.exe\n# venv\\Scripts\\activate.bat\n# In PowerShell\n# venv\\Scripts\\Activate.ps1\n# Linux/macOS\n# source venv/bin/activate\npip install -r requirements.txt\n```\n\n## Usage\n\n### File\n\nSupports a single image or directory of images.\n\n```bash\n$ python ae-score.py 42.png\n42.png 5.879870414733887\naverage score: 5.879870414733887\n```\n\n### Directory\n\n```bash\n$ python ae-score.py outputs/\n20230421140324_000010_02_42.png 7.030520439147949\n20230421140321_000010_01_42.png 6.584927082061768\n20230421140338_000010_07_1268125741.png 6.544317245483398\n20230421140335_000010_06_3948340960.png 6.528767108917236\n20230421140332_000010_05_1963709028.png 6.520832538604736\n20230421140327_000010_03_2661845567.png 6.517449855804443\n20230421140329_000010_04_13623292.png 6.31651496887207\n20230421140344_000010_09_42.png 6.113379001617432\n20230421140319_000010_00_42.png 5.516891002655029\n20230421140725_000020_10_42.png 5.190633296966553\n20230421140346_000010_10_42.png 5.174572944641113\n20230421141439_000040_00_42.png 5.082925319671631\n20230421141048_000030_02_42.png 5.081836223602295\n20230421141051_000030_03_2661845567.png 5.081359386444092\n20230421141109_000030_09_42.png 5.081345558166504\n20230421141503_000040_08_42.png 5.081308364868164\n20230421141451_000040_04_13623292.png 5.081301212310791\n20230421141456_000040_06_3948340960.png 5.081297397613525\n20230421141059_000030_06_3948340960.png 5.081272125244141\n20230421141509_000040_10_42.png 5.0812506675720215\n20230421141448_000040_03_2661845567.png 5.081150054931641\n20230421141442_000040_01_42.png 5.081146717071533\n20230421141057_000030_05_1963709028.png 5.081067085266113\n20230421141453_000040_05_1963709028.png 5.081051349639893\n20230421141500_000040_07_1268125741.png 5.080873012542725\n20230421141104_000030_07_1268125741.png 5.080867290496826\n20230421141046_000030_01_42.png 5.080856800079346\n20230421141506_000040_09_42.png 5.08085298538208\n20230421141054_000030_04_13623292.png 5.080564022064209\n20230421141445_000040_02_42.png 5.080531120300293\n20230421141107_000030_08_42.png 5.080453395843506\n20230421141043_000030_00_42.png 5.080273628234863\n20230421141112_000030_10_42.png 5.080152988433838\n20230421140701_000020_01_42.png 5.043121814727783\n20230421140341_000010_08_42.png 5.041572093963623\n20230421140706_000020_03_2661845567.png 4.73273229598999\n20230421140711_000020_05_1963709028.png 4.537281513214111\n20230421140723_000020_09_42.png 4.5228352546691895\n20230421140658_000020_00_42.png 4.478741645812988\n20230421140720_000020_08_42.png 4.4732279777526855\n20230421140703_000020_02_42.png 4.472269535064697\n20230421140708_000020_04_13623292.png 4.331034183502197\n20230421140714_000020_06_3948340960.png 4.285477161407471\n20230421140717_000020_07_1268125741.png 4.2842793464660645\naverage score: 5.227843523025513\n```\n\n### CSV \n\nSave the scores to a CSV file:\n\n```bash\n$ python ae-score.py 42.png --save_csv\n42.png 5.879870414733887\naverage score: 5.879870414733887\n```\n\nthen check for `scores-{timestamp}.csv`\n\n## `ae-filter.py`\n\nShow images that are scored with their score and image to view in the browser. Filter by score range.\n\n![Screenshot 2023-05-12 at 20-30-51 Aesthetics Score Filtering](https://github.com/rockerBOO/aesthetics-score/assets/15027/357bf922-c7f6-418a-9bf4-40ed8cc09a15)\n\n```\npython ae-filter.py scores-42.csv --server --port 3456 --images_dir /home/rockerboo/images/\n```\n\nNote: ae-filter runs a web server that is not designed for production use. Possibly vulnerable, runs only on localhost and not exposed for security. \n\n## Help\n\nSee the help for all the options.\n\n```\npython ae-score.py --help\n```\n\n```\npython ae-filter.py --help\n```\n\n## Changelog\n\n- 2023-05-12 - Add ae-filter.py. Use with `--server` to launch a webserver for your CSV scores file.\n\n\n## Development\n\n\n## Future\n\nWorking towards building a validation pipeline for fine-tuning training. One component will be checking the aesthetic score.\n\n## Contributions\n\nOpen for contributions or integrations into other tooling. Any better predictive models would be appreciative.\n\n## Thanks\n\n- https://github.com/grexzen/SD-Chad\n- https://github.com/christophschuhmann/improved-aesthetic-predictor\n- https://github.com/LAION-AI/aesthetic-predictor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockerboo%2Faesthetics-score","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frockerboo%2Faesthetics-score","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockerboo%2Faesthetics-score/lists"}