Giter Club home page Giter Club logo

Comments (3)

7aughing avatar 7aughing commented on June 1, 2024 1

我后续在转别的模型到tflite的时候,也遇到了这个问题,可能是环境的问题。我会按您的建议再试一下,谢谢!

from onnx_tflite_yolov3.

zldrobit avatar zldrobit commented on June 1, 2024

可否把你的操作步骤简要地贴出来,这样分析问题更方便。
WARNING是警告,按理不应该导致出错的。
从你的出错信息看,prep.py 21行是出错处,但master分支的代码是:

conv_nodes = [n for n in sess.graph.get_operations() if n.type in ['Conv2D','MaxPool','AvgPool']]
for n_org in conv_nodes:
# print(n_org.name, n_org.type)
# Transpose input
assert len(n_org.inputs)==1 or len(n_org.inputs)==2
org_inp_tens = sess.graph.get_tensor_by_name(n_org.inputs[0].name)
inp_tens = tf.transpose(org_inp_tens, [0, 2, 3, 1], name=n_org.name +'_transp_input')
op_inputs = [inp_tens]

master分支代码与你使用的代码不一致。
或许你可以尝试一下在拉去镜像后,重新git clone master分支,再跑一下转换。

from onnx_tflite_yolov3.

zldrobit avatar zldrobit commented on June 1, 2024

另外,如果你希望使用YOLOv5,也有对应的tensorflow转换代码:
ultralytics/yolov5#1127

from onnx_tflite_yolov3.

Related Issues (12)

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.