Code Monkey home page Code Monkey logo

Comments (3)

Britefury avatar Britefury commented on June 14, 2024
  1. Although both networks are initialised randomly, the EMAWeightOptimizer constructor starts by first copying the student weights over those of the teacher (lines 29-30), so the teacher and student will be identical before training starts.
  2. Not really. The teacher network should follow the student slowly, hence teacher = teacher * 0.99 + student * 0.01. The 'trajectory' of its weights is therefore more smooth. It can therefore be used in effect to produce reliable pseudo-labels.
  3. It erases the weights of the teacher by copying the weights of the student over them.

from self-ensemble-visual-domain-adapt.

hydxqing avatar hydxqing commented on June 14, 2024

If the two weights are the same before training,
How to train the consistency loss? Isn't the goal of training consistency loss to make the weight of the two net equal?
When you execute teacher = teacher * 0.99 + student * 0.01, the teacher weight cannot change. Isn't it?

from self-ensemble-visual-domain-adapt.

Britefury avatar Britefury commented on June 14, 2024

Please read the 'temporal ensembling' (https://arxiv.org/abs/1610.02242) and 'mean teachers are better role models' (https://arxiv.org/abs/1703.01780) papers; they should give you a better idea of how consistency regularization and the mean teacher model work.

from self-ensemble-visual-domain-adapt.

Related Issues (13)

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.