add example for loading the models
#4
by Lexiyutou - opened
17 unmodified lines181920212223242526272817 unmodified lines```pythonfrom pathlib import Pathfrom dlclibrary import download_huggingface_model# Creates a folder and downloads the model to itmodel_dir = Path("./prima_animal_model_pytorch")model_dir.mkdir()download_huggingface_model("prima_animal_model_pytorch", model_dir)```## Intended Use• Intended to be used for shape and pose estimation of quadruped images taken from a single view.17 unmodified lines181920212223242526272829303132333435363738394041424317 unmodified lines```pythonfrom pathlib import Pathfrom huggingface_hub import hf_hub_downloadrepo_id = "MLAdaptiveIntelligence/PRIMA"model_dir = Path("./prima_model")model_dir.mkdir(parents=True, exist_ok=True)# download stage-1 checkpoints1_path = hf_hub_download(repo_id=repo_id,filename="s1ckpt.ckpt",local_dir=model_dir)# donwload stage-3 checkpoints3_path = hf_hub_download(repo_id=repo_id,filename="s3ckpt.ckpt",local_dir=model_dir)```## Intended Use• Intended to be used for shape and pose estimation of quadruped images taken from a single view.
README.md+20-5