Update the Aesthetic score endpoint to by based on Composition#703
Open
Update the Aesthetic score endpoint to by based on Composition#703
Conversation
… weighting, and increase model influence to raise overall score calibration.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Updates the scoring pipeline so the admin “Aesthetic score” UI is driven primarily by composition-related signals (with optional model-based scoring), and surfaces more detailed score context in the preview UI.
Changes:
- Switch
/scoresto return a richer scoring payload (composition/interest/thirds/sharpness/tips/model breakdown) instead of a singleaesthetic_score. - Update the organize-preview UI to display the new score and provide a tooltip breakdown.
- Add offline weight-loading Makefile targets and document the new scorer setup.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/ThumbImg/index.tsx | Adds editingThumb behavior to adjust viewed/highlight styling during thumb editing. |
| src/components/AdminAlbum/Thumbs.tsx | Enables editingThumb when rendering album thumbs. |
| src/components/OrganizePreviews/PreviewImage.tsx | Adapts score fetching/caching to the new payload and adds tooltip breakdown. |
| apps/api/main.py | Changes /scores endpoint handler to return the new scoring payload. |
| apps/api/aesthetic.py | Implements composition-based scoring, optional multi-attribute model scoring, and returns the expanded payload. |
| apps/api/requirements.txt | Adds transformers dependency for the new scorer. |
| apps/api/README.md | Documents how to fetch and run the new offline scorer weights. |
| Makefile | Adds targets to download the new scorer + CLIP backbone for offline use. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f6fc16c to
dcda68c
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 34 out of 35 changed files in this pull request and generated 12 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan