Cyrile commited on
Commit
34aa254
1 Parent(s): c5278fa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -2
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=0.5,
47
  target_sizes=[img.size[::-1]]
48
  )
49
 
50
  bbox_pred = img_proc.post_process_object_detection(
51
  output,
52
- threshold=0.5,
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
  ```