Instructions to use keras/depth_anything_v2_small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use keras/depth_anything_v2_small with KerasHub:
import keras_hub # Create a DepthEstimator model task = keras_hub.models.DepthEstimator.from_preset("hf://keras/depth_anything_v2_small")import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://keras/depth_anything_v2_small") - Keras
How to use keras/depth_anything_v2_small with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://keras/depth_anything_v2_small") - Notebooks
- Google Colab
- Kaggle
Download model.weights.h5 from keras/depth_anything_v2_small: direct link, hf CLI and curl.
- Browser
- Download file 102 MB
-
https://huggingface.co/keras/depth_anything_v2_small/resolve/main/model.weights.h5
- Command line
-
hf download hf://keras/depth_anything_v2_small/model.weights.h5
-
curl -L -o model.weights.h5 https://huggingface.co/keras/depth_anything_v2_small/resolve/main/model.weights.h5
102 MB
- Xet hash:
- 731e180bd4a9d6b02858ea21b1e6a6bbca5d3ea7aaef1736b7d34432c9a25bca
- Size of remote file:
- 102 MB
- SHA256:
- 7367dabc7e0e28512aea7d94f845dba542e4bdd88142debf580cc98c8d683b49
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.