提交 212c3d90 编写于 作者: C channingss

updatea

上级 be0f062f
......@@ -241,7 +241,6 @@ class ONNXDecoder(object):
model.opset_import[0].version)
check_model(model)
# model = convert_version(model, 10)
model = polish_model(model)
model = self.optimize_model_skip_op_for_inference(model)
......
......@@ -49,6 +49,12 @@ class ONNXOpMapper(OpMapper):
raise Exception("Model are not supported yet.")
#mapping op
print("Total nodes: {}".format(
sum([
isinstance(node, ONNXGraphNode)
for name, node in self.graph.node_map.items()
])))
for node_name in self.graph.topo_sort:
node = self.graph.get_node(node_name)
op = node.layer_type
......
......@@ -27,7 +27,6 @@
| mNASNet | [code](https://github.com/LiJianfei06/MnasNet-caffe) |
| MTCNN | [code](https://github.com/kpzhang93/MTCNN_face_detection_alignment/tree/master/code/codes/MTCNNv1/model) |
# ONNX
| 模型 | 来源 | operator version|
......@@ -44,7 +43,6 @@
| Shufflenet | [onnx official](https://github.com/onnx/models/tree/master/vision/classification/shufflenet) |9|
| Inception_v2 | [onnx official](https://github.com/onnx/models/tree/master/vision/classification/inception_and_googlenet/inception_v2) |9|
目前onnx2paddle主要支持onnx operator version 9,关于如何使用torchvison的model:
```
import torch
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册