From 7852215c0f6542337f4ec057c588b2b0791ec3d4 Mon Sep 17 00:00:00 2001 From: Jaap de Ruyter van Steveninck <32810691+deruyter92@users.noreply.github.com> Date: Mon, 2 Feb 2026 10:43:21 +0100 Subject: [PATCH] fix rename mapping in download_super_animal_snapshot (replaced str -> dict) --- deeplabcut/pose_estimation_pytorch/modelzoo/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deeplabcut/pose_estimation_pytorch/modelzoo/utils.py b/deeplabcut/pose_estimation_pytorch/modelzoo/utils.py index 2cb06e2ffe..3c8b09d14c 100644 --- a/deeplabcut/pose_estimation_pytorch/modelzoo/utils.py +++ b/deeplabcut/pose_estimation_pytorch/modelzoo/utils.py @@ -144,7 +144,9 @@ def download_super_animal_snapshot(dataset: str, model_name: str) -> Path: model_path = snapshot_dir / model_filename download_huggingface_model( - model_name, target_dir=str(snapshot_dir), rename_mapping=model_filename + model_name, + target_dir=str(snapshot_dir), + rename_mapping={model_filename: model_filename}, ) if not model_path.exists(): raise RuntimeError(f"Failed to download {model_name} to {model_path}")