Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frigate/detectors/plugins/axengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def download_model(self, filename):
if not os.path.isdir(model_cache_dir):
os.mkdir(model_cache_dir)

GITHUB_ENDPOINT = os.environ.get("GITHUB_ENDPOINT", "https://github.com")
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.
model_cache_dir + filename,
)

Expand Down
Loading