Coder Social home page Coder Social logo

Comments (2)

HaoKun-Li avatar HaoKun-Li commented on September 26, 2024

关于问题①,可以看以下截图的代码,在warm-up阶段只更新了生成器G,在finetune阶段同时更新生成器G和量化模型;
image
关于问题②,可以看以下截图的代码,在train的时候,特意把量化模型置为eval()模式。在此模式下,量化模型中的BN statistics就是固定住的,不会更新了。
image

在前四个epoch 里unfreeze_model,不固定激活范围,是因为前四个epoch里生成器逐渐稳定,生成的图像逐渐接近原始数据分布,此时让激活范围根据生成的样本进行调整。
后面的epoch里都选择fix激活范围,是为了降低量化模型参数的收敛难度,让微调过程更加稳定。

from gdfq.

songyonger avatar songyonger commented on September 26, 2024

谢谢!

from gdfq.

Related Issues (2)

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.