thnak / yolov7-2-tensorflow Goto Github PK
View Code? Open in Web Editor NEWexport any your YOLOv7 model to TensorFlow, TensorFlowJs, ONNX, OpenVINO, RKNN,...
License: GNU General Public License v3.0
export any your YOLOv7 model to TensorFlow, TensorFlowJs, ONNX, OpenVINO, RKNN,...
License: GNU General Public License v3.0
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!
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
....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.