Skip to content

problem with making batch inference with converted graph #3

@dshawul

Description

@dshawul

There is a problem in the k2tf_convert.py file with aliasing the output nodes. The following line
pred[i] = tf.identity(net_model.output[i], name=pred_node_names[i])
should be
pred[i] = tf.identity(net_model.outputs[i], name=pred_node_names[i])

I have wasted days wondering why I am not able to make batch inference with the converted graph and this turned out to be the reason. The output shape did not have a [None] index that allows it to do multiple outtputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions