nielsr HF staff commited on
Commit
09760d2
1 Parent(s): 51545d6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -46,7 +46,7 @@ Here is how to use this model:
46
  >>> masks_queries_logits = outputs.masks_queries_logits
47
 
48
  >>> # you can pass them to feature_extractor for postprocessing
49
- >>> output = feature_extractor.post_process_semantic_segmentation(outputs)
50
  ```
51
 
52
  For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/maskformer).
 
46
  >>> masks_queries_logits = outputs.masks_queries_logits
47
 
48
  >>> # you can pass them to feature_extractor for postprocessing
49
+ >>> predicted_semantic_map = feature_extractor.post_process_semantic_segmentation(outputs)[0]
50
  ```
51
 
52
  For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/maskformer).