Update README.md
Browse files
README.md
CHANGED
@@ -41,15 +41,17 @@ with torch.inference_mode():
|
|
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=
|
47 |
target_sizes=[img.size[::-1]]
|
48 |
)
|
49 |
|
50 |
bbox_pred = img_proc.post_process_object_detection(
|
51 |
output,
|
52 |
-
threshold=
|
53 |
target_sizes=[img.size[::-1]]
|
54 |
)
|
55 |
```
|
|
|
41 |
input_ids = img_proc(img, return_tensors='pt')
|
42 |
output = model(**input_ids)
|
43 |
|
44 |
+
threshold=0.4
|
45 |
+
|
46 |
segmentation_mask = img_proc.post_process_segmentation(
|
47 |
out_seg,
|
48 |
+
threshold=threshold,
|
49 |
target_sizes=[img.size[::-1]]
|
50 |
)
|
51 |
|
52 |
bbox_pred = img_proc.post_process_object_detection(
|
53 |
output,
|
54 |
+
threshold=threshold,
|
55 |
target_sizes=[img.size[::-1]]
|
56 |
)
|
57 |
```
|