Commit
•
4e7800c
1
Parent(s):
3c2f350
Update README.md (#1)
Browse files- Update README.md (a05eabcb1201e0b0e8a27a19fc5c40cba20ffa0c)
Co-authored-by: Younes Belkada <ybelkada@users.noreply.huggingface.co>
README.md
CHANGED
@@ -64,13 +64,13 @@ prediction = torch.nn.functional.interpolate(
|
|
64 |
mode="bicubic",
|
65 |
align_corners=False,
|
66 |
)
|
67 |
-
```
|
68 |
|
69 |
# visualize the prediction
|
70 |
output = prediction.squeeze().cpu().numpy()
|
71 |
formatted = (output * 255 / np.max(output)).astype("uint8")
|
72 |
depth = Image.fromarray(formatted)
|
73 |
depth.show()
|
|
|
74 |
|
75 |
For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/dpt).
|
76 |
|
|
|
64 |
mode="bicubic",
|
65 |
align_corners=False,
|
66 |
)
|
|
|
67 |
|
68 |
# visualize the prediction
|
69 |
output = prediction.squeeze().cpu().numpy()
|
70 |
formatted = (output * 255 / np.max(output)).astype("uint8")
|
71 |
depth = Image.fromarray(formatted)
|
72 |
depth.show()
|
73 |
+
```
|
74 |
|
75 |
For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/dpt).
|
76 |
|