Instructions to use apple/DepthPro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Depth Pro
How to use apple/DepthPro with Depth Pro:
# Download checkpoint pip install huggingface-hub huggingface-cli download --local-dir checkpoints apple/DepthPro
import depth_pro # Load model and preprocessing transform model, transform = depth_pro.create_model_and_transforms() model.eval() # Load and preprocess an image. image, _, f_px = depth_pro.load_rgb("example.png") image = transform(image) # Run inference. prediction = model.infer(image, f_px=f_px) # Results: 1. Depth in meters depth = prediction["depth"] # Results: 2. Focal length in pixels focallength_px = prediction["focallength_px"] - Notebooks
- Google Colab
- Kaggle
Upload 4 files
Browse files- weights/JungKook.pth +3 -0
- weights/Jungkook.zip +3 -0
- weights/rahafdongle_21.pth +3 -0
- weights/rahafdongle_21.zip +3 -0
weights/JungKook.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e234233c57b77daf4698d0354138b1e9317853ecc1e621d67ec2c326b51019f
|
| 3 |
+
size 55223738
|
weights/Jungkook.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:892fde878718abf0e49040575058bd9577e3840fb880ca432e8ff22e6a974c10
|
| 3 |
+
size 114106139
|
weights/rahafdongle_21.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95f937f1dcc4ed565b0aea88caa13c386b83a684506545958209ff34fb8b73ba
|
| 3 |
+
size 55226939
|
weights/rahafdongle_21.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d574eab3623510c1e3aeb70554ab13d64384577754690fa1b8c5113765f2264a
|
| 3 |
+
size 51140882
|