@@ -94,7 +94,7 @@ def get_available_datasets() -> list[str]:
9494
9595
9696def get_available_detectors (dataset : str ) -> list [str ]:
97- """ Only for PyTorch models.
97+ """Only for PyTorch models.
9898
9999 Returns:
100100 The detectors available for the dataset.
@@ -103,7 +103,7 @@ def get_available_detectors(dataset: str) -> list[str]:
103103
104104
105105def get_available_models (dataset : str ) -> list [str ]:
106- """ Only for PyTorch models.
106+ """Only for PyTorch models.
107107
108108 Returns:
109109 The pose models available for the dataset.
@@ -167,7 +167,11 @@ def download_huggingface_model(
167167 download_huggingface_model("superanimal_bird_resnet_50", remove_hf_folder=False)
168168
169169 >>> # Download and rename by specifying the new name directly
170- download_huggingface_model("superanimal_humanbody_rtmpose_x", target_dir="/path/to/,y/checkpoints", rename_mapping="superanimal_humanbody_rtmpose_x.pt")
170+ download_huggingface_model(
171+ model_name="superanimal_humanbody_rtmpose_x",
172+ target_dir="/path/to/,y/checkpoints",
173+ rename_mapping="superanimal_humanbody_rtmpose_x.pt"
174+ )
171175 """
172176 net_urls = _load_model_names ()
173177 if model_name not in net_urls :
0 commit comments