未验证 提交 fab789a5 编写于 作者: S SunAhong1993 提交者: GitHub

Update README_en.md

上级 94714ce3
...@@ -72,7 +72,22 @@ In the model conversion, when encounter an unsupported custom layer, users can a ...@@ -72,7 +72,22 @@ In the model conversion, when encounter an unsupported custom layer, users can a
2. Add ```import mylayer``` to `kaffe/custom_layers/__init__.py` 2. Add ```import mylayer``` to `kaffe/custom_layers/__init__.py`
3. Prepare your pycaffe as your customized version(same as previous env prepare) 3. Prepare your pycaffe as your customized version(same as previous env prepare)
- (option1) replace `proto/caffe.proto` with your own caffe.proto and compile it - (option1)
1. replace `proto/caffe.proto` with your own caffe.proto and compile it
2. modify the ./kaffe/caffe/resolver.py
```python
try:
# Try to import PyCaffe first
import caffe
self.caffe = caffe
except ImportError:
# Fall back to the protobuf implementation
self.caffepb = import_caffepb()
show_fallback_warning()
# replace the above code with:
self.caffepb = import_caffepb()
show_fallback_warning()
```
- (option2) change your `pycaffe` to the customized version - (option2) change your `pycaffe` to the customized version
4. Convert the Caffe model to Fluid model 4. Convert the Caffe model to Fluid model
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册