Coder Social home page Coder Social logo

Comments (6)

kitstar avatar kitstar commented on April 28, 2024

Hi, could you share the model files and output logs?

from mmdnn.

JackieLeeTHU11 avatar JackieLeeTHU11 commented on April 28, 2024

@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.

kitstar avatar kitstar commented on April 28, 2024

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.

JackieLeeTHU11 avatar JackieLeeTHU11 commented on April 28, 2024

@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.

kitstar avatar kitstar commented on April 28, 2024

It is a compatibility problem between py2 and py3. Fixed in newest code.

from mmdnn.

JackieLeeTHU11 avatar JackieLeeTHU11 commented on April 28, 2024

Ok, I will try the newest code. Thanks for your work!

from mmdnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.