Comments (6)
Hi, could you share the model files and output logs?
from mmdnn.
@kitstar
The commond is
python -m mmdnn.conversion._script.convertToIR -f tensorflow -d smallnet_v3 -n smallnet_v3_CSattention/smallnet_v3.ckpt.meta --dstNodeName 3dface_smallnet_v3/e_Regresion/e_regresion_layer/weights
the output log is:
Parse file [smallnet_v3_CSattention/smallnet_v3.ckpt.meta] with binary format successfully. Tensorflow model file [smallnet_v3_CSattention/smallnet_v3.ckpt.meta] loaded successfully. IR network structure is saved as [smallnet_v3.json]. IR network structure is saved as [smallnet_v3.pb]. Warning: weights are not loaded.
The model file is models, and the password is cxn7
from mmdnn.
Hi, your dstNode is squeeze_logits, not 3dface_smallnet_v3/e_Regresion/e_regresion_layer/weights. Please try it again. And there are some layers conversion not completed. I will inform you if it finishs.
Thanks.
from mmdnn.
@kitstar Hi, you are right. However, when I set dstNode with squeeze_logits, there is a bug. And the log is:
File "mmdnn/conversion/tensorflow/tensorflow_parser.py", line 281, in gen_IR
func(current_node)
File "mmdnn/conversion/tensorflow/tensorflow_parser.py", line 360, in rename_Conv2D
IR_node = self._convert_identity_operation(source_node, 1, 'Conv')
File "mmdnn/conversion/tensorflow/tensorflow_parser.py", line 387, in _convert_identity_operation
TensorflowParser._copy_and_reop(source_node, IR_node, new_op)
File "mmdnn/conversion/tensorflow/tensorflow_parser.py", line 303, in _copy_and_reop
assign_IRnode_values(IR_node, kwargs)
File "mmdnn/conversion/common/utils.py", line 45, in assign_IRnode_values
assign_attr_value(IR_node.attr[name], val)
File "mmdnn/conversion/common/utils.py", line 40, in assign_attr_value
raise NotImplementedError('AttrValue cannot be of %s' % type(val))
NotImplementedError: AttrValue cannot be of <type 'unicode'>
from mmdnn.
It is a compatibility problem between py2 and py3. Fixed in newest code.
from mmdnn.
Ok, I will try the newest code. Thanks for your work!
from mmdnn.
Related Issues (20)
- Handling multiple inputs in keras
- load higher version pytorch model error
- AttributeError: 'NoneType' object has no attribute 'name' in FusedBatchNorm HOT 3
- KeyError while converting PyTorch model to IR
- How to make modifications?
- Make upgrades?
- Fail to convert resnet101 from PyTorch to IR
- Convert Inception_v3 from Caffe to PyTorch
- SpaceToBatchND/BatchToSpaceND not supported while converting from tensorflow to caffe
- Fail to Convert resnet from Caffe to onnx and Pytorch
- mmtoir from PyTorch 2 IR missing .json, .npy and .pb file
- Getting ValueError: axes don't match array
- Pytorch model GFPGANv1.3.pth
- onnx2IR? HOT 1
- This repo is missing important files HOT 2
- How can I convert tf(.pb) to pytorch?
- Error to convert a model from IR to Pytorch
- Error converting caffe to torch model HOT 1
- pytorch to onnx
- pytorch to onnx
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmdnn.