We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4653249 commit 5222cd9Copy full SHA for 5222cd9
docs/source/en/model_doc/zoedepth.md
@@ -35,13 +35,17 @@ The example below demonstrates how to generate text based on an image with [`Pip
35
```py
36
import torch
37
from transformers import pipeline
38
+from PIL import Image
39
+import requests
40
-pipeline = pipeline(
41
+image = Image.open(requests.get(url, stream=True).raw)
42
+pipe = pipeline(
43
task="depth-estimation",
44
model="Intel/zoedepth-nyu-kitti",
45
device=0
46
)
-pipeline(images="http://images.cocodataset.org/val2017/000000039769.jpg")
47
+results = pipe(image)
48
+depth = result['depth']
49
```
50
51
</hfoption>
0 commit comments