Git Product home page Git Product logo

Comments (1)

TNTWEN avatar TNTWEN commented on May 30, 2024 2

@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)

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.