Comments (1)
@GotG
https://github.com/tanluren/yolov3-channel-and-layer-pruning This repos supports yolov3-tiny,yolov4-tiny pruning,But for tiny model ,we could only prune channels.
If you want to deploy pruned tiny model on openvino,you need to modify tensorflow code according pruned tiny model's .cfg file. Because tiny model's structure is relatively simple,i haven't written a script that generates code automatically at this time,you need to modify this parts:
For yolov3 tiny:https://github.com/mystic123/tensorflow-yolo-v3/blob/136fb66ac4b00e8dfc8391a7ea1c1568a6420206/yolo_v3_tiny.py#L59-L100
For yolov4 tiny :https://github.com/TNTWEN/OpenVINO-YOLOV4/blob/d82fa6ef43c341109a7014405530532dc4dc8471/yolo_v4_tiny.py#L79-L107
But because these parts have done a certain encapsulation of the model structure to make the code more concise.
This means you need to rewrite this part(Rewrite the structure of the model layer by layer just like this https://github.com/TNTWEN/OpenVINO-YOLO-Automatic-Generation/blob/a867aeb5831653fefb79a8a89a4e7a7de0a77910/demo/yolo_v4.py#L180-L192).
For the full version of the model,if we want to rewrite the whole structure every time we prune, it will take a lot of work and it is easy to make mistakes.So I wrote a script(https://github.com/TNTWEN/OpenVINO-YOLO-Automatic-Generation) to automatically parse the model cfg file and generate tensorflow code. This script does not support tiny model conversion now.
from pruned-openvino-yolo.
Related Issues (15)
- what are the different flags used while pruning
- The bounding boxes detected by model after channel pruning are small.
- What is the --prune 0 and --prune 1 stands for when doing sparsity training using train.py?
- Getting error while using model.convert function
- Shapefile
- yolov4.weight
- 想請問您關於Yolov4的訓練問題
- 单机多GPU训练问题 HOT 3
- about the training HOT 9
- about dataset HOT 6
- About trained from AlexeyAB HOT 68
- About the training HOT 2
- About out of the box models
- Convert pruned model to onnx
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pruned-openvino-yolo.