Git Product home page Git Product logo

Comments (5)

ZouJiu1 avatar ZouJiu1 commented on July 4, 2024

If you train a quantized model with lsq or lsq+, when you inference a image, you don't need lsqprepareV1, lsqprepareV2. s lsqplusprepareV1 or lsqplusprepareV2, because the model' s params had been quantized while training.

so evaluate.py h "Floatmodel = True" #QAT or float-32 train ole

from lsqplus.

yobuwen avatar yobuwen commented on July 4, 2024

If you train a quantized model with lsq or lsq+, when you inference a image, you don't need lsqprepareV1, lsqprepareV2. s lsqplusprepareV1 or lsqplusprepareV2, because the model' s params had been quantized while training.

so evaluate.py h "Floatmodel = True" #QAT or float-32 train ole

还有一个问题就是,发现s会出现负数,但这显然是不合理的,请问有什么方式可以避免么?

from lsqplus.

ZouJiu1 avatar ZouJiu1 commented on July 4, 2024

You need training the lsq+ network to get high accuracy, then the weight or ccale will converge to >0, it need training not by setting

from lsqplus.

ZouJiu1 avatar ZouJiu1 commented on July 4, 2024

so, just training the network, you will find the last result will better

from lsqplus.

yobuwen avatar yobuwen commented on July 4, 2024

so, just training the network, you will find the last result will better

实时上,我使用LSQ+V1训练了VGG,精度达到90.481,但s值仍然有大量负值。这个现象好像很容易出现。
image

from lsqplus.

Related Issues (16)

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.