GithubHelp home page GithubHelp logo

大神,请教下,用自己数据集用官方的weight权重训练完成后,剪枝了,还能正常转成pb吗? about yolov3-channel-and-layer-pruning HOT 1 OPEN

tanluren avatar tanluren commented on July 30, 2024
大神,请教下,用自己数据集用官方的weight权重训练完成后,剪枝了,还能正常转成pb吗?

from yolov3-channel-and-layer-pruning.

Comments (1)

tanluren avatar tanluren commented on July 30, 2024

这个项目的权重可以选择保存为pt, darknet weights, 或者onnx格式,搜索一下很多方法转为pb,没验证过就不具体推荐了,但要注意的是,剪枝的模型结构发生了改变,要保证转换的tf模型和新的cfg具有相同的结构。tf剪枝的话,官方有模型优化工具包,但貌似并不实际‘剪’,你可以参考这个项目移植到tf里面,原理和方法并不难,可以看看各剪枝脚本的代码,特别是prune_utils的细节处理;要考虑两个基本的问题,一是什么样的规则确定哪些通道或者层是重要或者不重要的,二是怎么拿到保留的位置的权重。想快速动手写代码的话,也可以GitHub搜一下tensorflow pruning,参考相关开源项目是怎么写的。

from yolov3-channel-and-layer-pruning.

Related Issues (20)

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.