Giter Site home page Giter Site logo

Comments (3)

aaberdam avatar aaberdam commented on May 29, 2024

Hi,

Thank you for your interest in our work.

To enable EMA, set ema: True in the configuration file found at this link:


This will cause the program to use the script model_fusion_teacher_student_ema.py.

By default, the teacher gradients are stopped, but if you wish to change this, you can do so also in this configuration.

If you have any more questions, please let me know.
Aviad

from semimtr-text-recognition.

YuNie24 avatar YuNie24 commented on May 29, 2024

Thank you for reply :)

but still have some questions.

Would you explain more on how "model_fusion_teacher_student_ema.py" is called?

According to my test of your SemiMTR finetune scripts, "ConsistencyRegularizationFusionModel" model has about 36M trainable parameter and students and teacher use the same model parameters.

However, when using EMA, it seems that the parameters should be doubled because structure have to have a separate ABINetIterModel on student and teacher.

I set ema: True in the configuration file(semimtr_finetune.yaml), but trainable parameter has still 36M and looks not using TeacherStudentFusionEMA.

from semimtr-text-recognition.

YuNie24 avatar YuNie24 commented on May 29, 2024

Ah, I just checked another config line.

name: 'semimtr.modules.model_fusion_consistency_regularization.ConsistencyRegularizationFusionModel'

and it looks like it should be name: semimtr.modules.model_fusion_teacher_student_ema.TeacherStudentFusionEMA
instead of semimtr.modules.model_fusion_consistency_regularization.ConsistencyRegularizationFusionModel if we apply EMA.

then TeacherStudentFusionEMA and ConsistencyRegularizationFusionModel cannot be executed simultaneously.
is it right ?

from semimtr-text-recognition.

Related Issues (14)

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.