Coder Social home page Coder Social logo

Comments (4)

kitstar avatar kitstar commented on April 28, 2024

Hi, Please refer the last step of Tensorflow ReadME and see if it works. Thanks.

Btw, we just tested caffe vgg and googlenet model (with inference result validation). More pre-trained model samples are welcome.

from mmdnn.

seanchung2 avatar seanchung2 commented on April 28, 2024

Hi,

My numpy files were converted by ethereon's converter. Since the output by his converter will include from kaffe.tensorflow import Network, they can't be fit into your converter.

So I tried to use your caffe to IR converter. The error happened as following:

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/_script/convertToIR.py", line 156, in <module>
    _main()
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/_script/convertToIR.py", line 151, in _main
    ret = _convert(args)
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/_script/convertToIR.py", line 10, in _convert
    graph = transformer.transform_graph()
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/caffe/transformer.py", line 348, in transform_graph
    mapped_node = self.map_node(node)
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/caffe/transformer.py", line 368, in map_node
    mapped_node = map_func(node)
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/caffe/mapper.py", line 117, in map_pooling
    kwargs, padding = cls.get_kernel_params(node)
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/caffe/mapper.py", line 38, in get_kernel_params
    if node.kernel_parameters.p_h > 0 or node.kernel_parameters.p_w > 0:
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/caffe/graph.py", line 187, in kernel_parameters
    k_h = self.get_kernel_value(params.kernel_h, params.kernel_size, 0)
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/caffe/graph.py", line 180, in get_kernel_value
    raise ValueError('Unable to determine kernel parameter!')
ValueError: Unable to determine kernel parameter!

Can you please check it out?
If you wanna reproduce the error, here is my caffe model: Xception

Thank you.

from mmdnn.

kitstar avatar kitstar commented on April 28, 2024

@seanchung2 Checked the model. Currently we don't support Conv with groups attribute. We will implement it soon. Thanks.

from mmdnn.

kitstar avatar kitstar commented on April 28, 2024

Hi @seanchung2 ,
The problem is lacking support of Global Pooling in old version MMdnn. Newest master implement it and tested in my env. Please have a try.
Thanks.

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.