Update README.md
Browse files
README.md
CHANGED
@@ -41,8 +41,9 @@ with torch.inference_mode():
|
|
41 |
input_ids = img_proc(img, return_tensors='pt')
|
42 |
output = model(**input_ids)
|
43 |
|
44 |
-
segmentation_mask = img_proc.
|
45 |
-
|
|
|
46 |
target_sizes=[img.size[::-1]]
|
47 |
)
|
48 |
|
|
|
41 |
input_ids = img_proc(img, return_tensors='pt')
|
42 |
output = model(**input_ids)
|
43 |
|
44 |
+
segmentation_mask = img_proc.post_process_segmentation(
|
45 |
+
out_seg,
|
46 |
+
threshold=0.5,
|
47 |
target_sizes=[img.size[::-1]]
|
48 |
)
|
49 |
|