Jingya HF staff commited on
Commit
bc01a2c
1 Parent(s): 385e58b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -0
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
  ```