Giter Site home page Giter Site logo

thnak / yolov7-2-tensorflow Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 4.0 626.25 MB

export any your YOLOv7 model to TensorFlow, TensorFlowJs, ONNX, OpenVINO, RKNN,...

License: GNU General Public License v3.0

Python 99.57% Shell 0.32% Dockerfile 0.11%
deep-learning directml object-detection windows yolov7 tensorflowjs tfjs tensorflow rknn

yolov7-2-tensorflow's People

Contributors

dependabot[bot] avatar thnak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

yolov7-2-tensorflow's Issues

TFlite export failed

Hi, thanks for sharing this amazing project.

However, I encounter an error when I try to export the yolov7.pt to tflite format by command line:

python export.py --weights "yolov7.pt" --include tflite

The error message is as below:

Traceback (most recent call last):
File "/content/yolov7-2-tensorflow/export.py", line 451, in
outputpath, s_models = export_saved_model(model_ori,
File "/content/yolov7-2-tensorflow/tools/auxexport.py", line 104, in export_saved_model
tf_model = TFModel(cfg=model.yaml, model=model.cpu(), nc=len(model.names), imgsz=imgsz)
File "/content/yolov7-2-tensorflow/models/tf.py", line 602, in init
self.model, self.savelist = parse_model(deepcopy(self.yaml), ch=[ch], model=model, imgsz=imgsz)
File "/content/yolov7-2-tensorflow/models/tf.py", line 575, in parse_model
else tf_m(*args, w=model.model[i]) # module
File "/content/yolov7-2-tensorflow/models/tf.py", line 72, in init
[TFConv2d(c1, c2, k, s, g=g, bias=False, w=w.rbr_dense[0]),
TypeError: 'NoneType' object is not subscriptable

Did I miss something?
Thank you again!

File not found: mydataset.yaml

Hi,
thanks for sharing your work, this repo is really useful! I found an issue when I try to use --int8. Any help would be appreciated!

python3 export.py --include tflite --int8 --weights ./yolov7-tiny.pt
....
Tensorflow lite: starting export with tensorflow 2.8.0...
Tensorflow lite: export failure❌:
File not found: mydataset.yaml
....

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.