GithubHelp home page GithubHelp logo

2d dct FLOPs computing method about fcanet HOT 5 CLOSED

cfzd avatar cfzd commented on August 20, 2024
2d dct FLOPs computing method

from fcanet.

Comments (5)

peterzpy avatar peterzpy commented on August 20, 2024

We compute the weight of 2d dct during initialization. The dct kernel is fixed and has no extra computation cost in the training phase.

from fcanet.

TianhaoFu avatar TianhaoFu commented on August 20, 2024

We compute the weight of 2d dct during initialization. The dct kernel is fixed and has no extra computation cost in the training phase.

Thanks.
Leave the paper aside. Do you know how to compute the FLOPs of 2d dct?

If you can provide me some idea or code or fomula about that, I will be thanks so much:) 👍 @peterzpy

from fcanet.

cfzd avatar cfzd commented on August 20, 2024

@TianhaoFu
The realization of 2d dct is actually element product. For a image with a size h x w and a dct basis with a size of h x w, the re would be total hw times of multiplication.

from fcanet.

cfzd avatar cfzd commented on August 20, 2024

The FLOPs is calculated by: https://github.com/sovrasov/flops-counter.pytorch

from fcanet.

TianhaoFu avatar TianhaoFu commented on August 20, 2024

Thanks

from fcanet.

Related Issues (20)

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.