Update axmodel download URL to Hugging Face#11
Merged
ZhaiSoul merged 1 commit intoFrigate-CN:dev-axfrom Mar 10, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Axengine detector’s model download location to fetch .axmodel assets from Hugging Face instead of GitHub, aligning model distribution with other HF-hosted assets in the codebase.
Changes:
- Replace
GITHUB_ENDPOINTusage withHF_ENDPOINT. - Update the Axengine model download URL to the Hugging Face
AXERA-TECH/frigate-resourcerepository.
| HF_ENDPOINT = os.environ.get("HF_ENDPOINT", "https://huggingface.co") | ||
| urllib.request.urlretrieve( | ||
| f"{GITHUB_ENDPOINT}/ivanshi1108/assets/releases/download/v0.16.2/{filename}", | ||
| f"{HF_ENDPOINT}/AXERA-TECH/frigate-resource/resolve/axmodel/{filename}", |
There was a problem hiding this comment.
The Hugging Face URL format is /resolve/<revision>/<path>. Here axmodel is being used as the revision, which will 404 unless the repo has a branch/tag literally named axmodel. If the intent is to download from an axmodel/ folder on the default branch, update the URL to include a revision (typically main) and treat axmodel as part of the path (e.g., /resolve/main/axmodel/...).
Suggested change
| f"{HF_ENDPOINT}/AXERA-TECH/frigate-resource/resolve/axmodel/{filename}", | |
| f"{HF_ENDPOINT}/AXERA-TECH/frigate-resource/resolve/main/axmodel/{filename}", |
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.
Proposed change
Type of change
Additional information
Checklist
enlocale.ruff format frigate)