Update code example
Browse files
README.md
CHANGED
@@ -35,8 +35,8 @@ from transformers import SegformerFeatureExtractor, SegformerForSemanticSegmenta
|
|
35 |
from PIL import Image
|
36 |
import requests
|
37 |
|
38 |
-
feature_extractor = SegformerFeatureExtractor.from_pretrained("nvidia/segformer-
|
39 |
-
model = SegformerForSemanticSegmentation.from_pretrained("nvidia/segformer-
|
40 |
|
41 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
42 |
image = Image.open(requests.get(url, stream=True).raw)
|
|
|
35 |
from PIL import Image
|
36 |
import requests
|
37 |
|
38 |
+
feature_extractor = SegformerFeatureExtractor.from_pretrained("nvidia/segformer-b5-finetuned-ade-512-512")
|
39 |
+
model = SegformerForSemanticSegmentation.from_pretrained("nvidia/segformer-b5-finetuned-ade-512-512")
|
40 |
|
41 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
42 |
image = Image.open(requests.get(url, stream=True).raw)
|