Skip to content

Update axmodel download URL to Hugging Face#11

Merged
ZhaiSoul merged 1 commit intoFrigate-CN:dev-axfrom
ivanshi1108:dev-ax
Mar 10, 2026
Merged

Update axmodel download URL to Hugging Face#11
ZhaiSoul merged 1 commit intoFrigate-CN:dev-axfrom
ivanshi1108:dev-ax

Conversation

@ivanshi1108
Copy link
Copy Markdown

Proposed change

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code
  • Documentation Update

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • UI changes including text have used i18n keys and have been added to the en locale.
  • The code has been formatted using Ruff (ruff format frigate)

Copilot AI review requested due to automatic review settings March 10, 2026 15:30
@ZhaiSoul ZhaiSoul merged commit 93f5ec9 into Frigate-CN:dev-ax Mar 10, 2026
6 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_ENDPOINT usage with HF_ENDPOINT.
  • Update the Axengine model download URL to the Hugging Face AXERA-TECH/frigate-resource repository.

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}",
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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}",

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants