Cyrile commited on
Commit
c5278fa
1 Parent(s): bbb6212

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
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.post_process_semantic_segmentation(
45
- output,
 
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