Skip to content

Menoh error loading model from onnx file #221

@glory-25078

Description

@glory-25078

Hi
I'm trying to run Menoh with the ONNX file converted from the Keras/Tensorflow model.
The following error occurs when calling the menoh function "make_model_data_from_onnx".
menoh invalid attribute type error: attribute type TENSOR for "value"

This ONNX file was created using mmdnn.
$ mmdownload -f keras -n vgg16 -o ./
$ mmconvert -sf keras -iw imagenet_vgg16.h5 -df onnx -om imagenet_vgg16.onnx

OS: Windows 10
Keras 2.2.2
Tensorflow 1.8.0
onnx-tf 1.2.1
Menoh 1.2.0

For the following file It works.
wget('https://preferredjp.box.com/shared/static/o2xip23e3f0knwc5ve78oderuglkf2wt.onnx', './data/vgg16.onnx')

What should I check?

Kind

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions