Skip to content

Commit 03f7625

Browse files
committed
procedure to convert paddleseg to onnx
1 parent b1eaae2 commit 03f7625

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,26 @@ wget https://github.com/Megvii-BaseDetection/YOLOX/releases/download/0.1.1rc0/yo
131131
### [Semantic Segmentation Paddle Seg](https://github.com/PaddlePaddle/PaddleSeg)
132132
***
133133

134-
- Download PaddleSeg's bisenetv2 trained on cityscapes dataset that has been converted to onnx [HERE](https://drive.google.com/file/d/1e-anuWG_ppDXmoy0sQ0sgrdutCTGlk95/view?usp=sharing)
134+
- Download PaddleSeg's bisenetv2 trained on cityscapes dataset that has been converted to onnx [HERE](https://drive.google.com/file/d/1e-anuWG_ppDXmoy0sQ0sgrdutCTGlk95/view?usp=sharing) and copy to [./data directory](./data)
135+
136+
<details>
137+
<summary>You can also convert your own PaddleSeg with following procedures</summary>
138+
139+
* [export PaddleSeg model](https://github.com/PaddlePaddle/PaddleSeg/blob/release/2.3/docs/model_export.md)
140+
* convert exported model to onnx format with [Paddle2ONNX](https://github.com/PaddlePaddle/Paddle2ONNX)
141+
142+
</details>
143+
144+
- Test inference apps
135145

136146
```bash
137147
./build/examples/semantic_segmentation_duc ./data/bisenetv2_cityscapes.onnx ./sample_city_scapes.png
138148
./build/examples/semantic_segmentation_duc ./data/bisenetv2_cityscapes.onnx ./odaiba.jpg
139149
```
140150

141151
- Test results:
142-
+ test result on sample image of cityscapes dataset (this model is trained on cityscapes dataset)
143-
152+
+ test result on sample image of cityscapes dataset (this model is trained on cityscapes dataset)
144153
![paddleseg city scapes](./data/images/sample_city_scapes_result.jpg)
145154

146-
+ test result on a new scene at Odaiba, Tokyo, Japan
155+
+ test result on a new scene at Odaiba, Tokyo, Japan
147156
![paddleseg odaiba](./data/images/odaiba_result.jpg)

0 commit comments

Comments
 (0)