Run FocalNet's published human-ranking model - #17
Merged
Merged
Conversation
AutogravityProject ID: Tip HTTPS and SSL certificates are handled automatically for all your Sites |
TorstenDittmann
marked this pull request as ready for review
September 15, 2026 15:30
|
Load format-v2 focalnet-human.onnx and rank candidate crops with the 0.05 importance-retention gate. Default backend stays YuNet + U²-Net. Docker copies the published 2026-09-14-rc1 weights only when their checksum matches; the test dummy is never packaged.
TorstenDittmann
force-pushed
the
torsten/focalnet-inference-7b70
branch
from
September 17, 2026 13:26
9701bbc to
78f8ee2
Compare
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.

Ship FocalNet as a selectable Autogravity backend using the published human-ranking ONNX graph, not an importance-only subset.
What this does
MODEL_BACKEND=focalnet(default remainsu2net).focalnet-human.onnxfrom the FocalNet2026-09-14-rc1release (image,boxes,content→importance,crop_scores).gravity.croprectangle to FocalNet/analyzeresponses. Optional?aspect_ratio=16:9(default1:1).make model-focalnetand copies them into the Docker image. They are not vendored in git.make model-focalnet MODEL_BACKEND=focalnet ./autogravity # or docker run --rm -p 8080:8080 -e MODEL_BACKEND=focalnet autogravityTests
content, andscore_cropmatch FocalNet Python goldens.source=focalnetpluscrop, and does not call YuNet.rose.png.focalnet-human.onnx: 1:1 and 16:9 crops onrose.png.Unit/vet/fmt passed. Dummy integration and the published human model both ran against ONNX Runtime 1.23.2.
Follow-up
Keep YuNet + U²-Net as the production default until FocalNet is validated in Autogravity traffic. Then flip
MODEL_BACKENDin the image.