Git Product home page Git Product logo

Comments (1)

hunto avatar hunto commented on June 16, 2024

Hi @flyme-psp ,

我们的teacher模型follow的是之前检测KD paper的setting,用的是Cascade Mask R-CNN (config),而不是Mask R-CNN,因此teacher会有Cascade提出的三个bbox head。

KDShared2FCBBoxHead这个类在https://github.com/hunto/MasKD/blob/main/mmrazor/mmrazor/models/utils/kd_bbox_head.py ,如果你是用的这里的mmrazor代码跑训练,这个head会被自动注册进mmdet中,训练应该是正常的。

其他注释的部分该如何使用:你说的是我们的config里将cascade后面两个head给注释掉了?因为faster r-cnn只有一层回归和分类head,而cascade是3层head的级联,在kd中我们只需要使用第一层的输出做蒸馏,因此后面两层不需要算了,注释掉可以节省这部分计算量。如果你想使用注释掉的这些层的输出,把注释取消掉,再修改蒸馏的位置就好了。

from dist_kd.

Related Issues (11)

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.