Browse Source

Add supported model to README

tags/v1.1.0
moran 5 years ago
parent
commit
6091288233
2 changed files with 22 additions and 2 deletions
  1. +11
    -2
      mindinsight/mindconverter/README.md
  2. +11
    -0
      mindinsight/mindconverter/README_CN.md

+ 11
- 2
mindinsight/mindconverter/README.md View File

@@ -100,11 +100,20 @@ For the second demand, the Graph mode is recommended. As the computational graph
Some typical image classification networks such as ResNet and VGG have been tested for the Graph mode. Note that:

> 1. Currently, the Graph mode does not support models with multiple inputs. Only models with a single input and single output are supported.

> 2. The Dropout operator will be lost after conversion because the inference mode is used to load the PyTorch model. Manually re-implement is necessary.

> 3. The Graph-based mode will be continuously developed and optimized with further updates.

Supported models list:

Supported Model | PyTorch Script |
| :----: | :----:|
| ResNet18 | [link](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/resnet.py) |
| ResNet34 | [link](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/resnet.py) |
| ResNet50 | [link](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/resnet.py) |
| ResNet101 | [link](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/resnet.py) |
| VGG11 | [link](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/vgg.py) |
| VGG11_BN | [link](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/vgg.py) |
| VGG19 | [link](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/vgg.py) |

## Example



+ 11
- 0
mindinsight/mindconverter/README_CN.md View File

@@ -95,6 +95,17 @@ MindConverter提供两种技术方案,以应对不同脚本迁移场景:
> 2. 基于图结构的脚本生成方案,由于要基于推理模式加载PyTorch模型,会导致转换后网络中Dropout算子丢失,需要用户手动补齐;
> 3. 基于图结构的脚本生成方案持续优化中。

支持网络列表:

| 支持网络 | PyTorch脚本 |
| :----: | :----:|
| ResNet18 | [脚本链接](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/resnet.py) |
| ResNet34 | [脚本链接](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/resnet.py) |
| ResNet50 | [脚本链接](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/resnet.py) |
| ResNet101 | [脚本链接](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/resnet.py) |
| VGG11 | [脚本链接](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/vgg.py) |
| VGG11_BN | [脚本链接](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/vgg.py) |
| VGG19 | [脚本链接](https://github.com/pytorch/vision/blob/v0.5.0/torchvision/models/vgg.py) |

## 使用示例
### 基于AST的脚本转换示例


Loading…
Cancel
Save