Update README.md
#1
by
ybelkada
- opened
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 |
|