Instructions to use facebook/sapiens2-normal-5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sapiens2
How to use facebook/sapiens2-normal-5b with sapiens2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- sapiens
How to use facebook/sapiens2-normal-5b with sapiens:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Transformers
How to use facebook/sapiens2-normal-5b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="facebook/sapiens2-normal-5b")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, Sapiens2ForNormalEstimation processor = AutoImageProcessor.from_pretrained("facebook/sapiens2-normal-5b") model = Sapiens2ForNormalEstimation.from_pretrained("facebook/sapiens2-normal-5b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add HF-compatible model.safetensors, config.json, and preprocessor_config.json (#1)
- Add HF-compatible model.safetensors, config.json, and preprocessor_config.json (c58df67823847d9cbd202186e2ad4a5e01cf4a70) - Remove 'pos_embed_dtype' from config.json (9c2591e192d534696b4efa18a01b7f0c767238d8) - Update config.json and preprocessor_config.json (8cc1a6d1e6eb54d636137835ccf105b9af1bfc54) - Update config.json and preprocessor_config.json (0f77eb9d480b55caf270c2339839e9bd674f41e4) - Update config.json and preprocessor_config.json (f006187f3a1e39858566ee083873e054f9d16284) - Update config.json and preprocessor_config.json (b59e8639f808811ca073c80304f13ff99caafebb) Co-authored-by: guarin <guarin@users.noreply.huggingface.co>88b38db