Cyrile commited on
Commit
68451f4
1 Parent(s): 8bbbab6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
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
- segmentation = model(**input_ids)
65
 
66
- segmentation_mask = img_proc.post_process_semantic_segmentation(
67
- segmentation,
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
  ```