Update README.md

This commit is contained in:
Niels Rogge 2022-11-10 10:22:38 +00:00 committed by huggingface-web
parent 955e5d5002
commit 6542b2da1d
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class_queries_logits = outputs.class_queries_logits
masks_queries_logits = outputs.masks_queries_logits
# you can pass them to feature_extractor for postprocessing
# we refer to the demo notebooks for visualization (see "Resources" section in the MaskFormer docs)
predicted_semantic_map = feature_extractor.post_process_semantic_segmentation(outputs, target_sizes=[image.size[::-1]])[0]
```