Update README.md
Browse files
README.md
CHANGED
@@ -56,6 +56,7 @@ from optimum.onnxruntime import ORTModelForSemanticSegmentation
|
|
56 |
image_processor = SegformerImageProcessor.from_pretrained("optimum/segformer-b0-finetuned-ade-512-512")
|
57 |
model = ORTModelForSemanticSegmentation.from_pretrained("optimum/segformer-b0-finetuned-ade-512-512")
|
58 |
|
|
|
59 |
pipe = pipeline("image-segmentation", model=model, feature_extractor=image_processor)
|
60 |
pred = pipe(url)
|
61 |
```
|
|
|
56 |
image_processor = SegformerImageProcessor.from_pretrained("optimum/segformer-b0-finetuned-ade-512-512")
|
57 |
model = ORTModelForSemanticSegmentation.from_pretrained("optimum/segformer-b0-finetuned-ade-512-512")
|
58 |
|
59 |
+
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
60 |
pipe = pipeline("image-segmentation", model=model, feature_extractor=image_processor)
|
61 |
pred = pipe(url)
|
62 |
```
|