Update README.md
Browse files
README.md
CHANGED
@@ -61,10 +61,10 @@ model = AutoModel.from_pretrained(
|
|
61 |
|
62 |
with torch.inference_mode():
|
63 |
input_ids = img_proc(img, return_tensors='pt')
|
64 |
-
|
65 |
|
66 |
-
|
67 |
-
|
68 |
target_sizes=[img.size[::-1]]
|
69 |
)
|
70 |
```
|
|
|
61 |
|
62 |
with torch.inference_mode():
|
63 |
input_ids = img_proc(img, return_tensors='pt')
|
64 |
+
output = model(**input_ids)
|
65 |
|
66 |
+
segmentation = img_proc.post_process_semantic_segmentation(
|
67 |
+
output,
|
68 |
target_sizes=[img.size[::-1]]
|
69 |
)
|
70 |
```
|