Giter Site home page Giter Site logo

For loops in AliasMethod about cmc HOT 4 CLOSED

hobbitlong avatar hobbitlong commented on August 24, 2024
For loops in AliasMethod

from cmc.

Comments (4)

HobbitLong avatar HobbitLong commented on August 24, 2024

Hi @dandelin,

Thank you for finding it out. I think you can directly initialize them with ones and zeros instead.

Did you compare the difference of execution time between these two initializations? I thought the initialization function is only called once, so maybe the computation overhead is tolerable.

from cmc.

dandelin avatar dandelin commented on August 24, 2024

@HobbitLong
I'm trying a dataset larger than the ImageNet, so the initializing took some time (>15 minutes).
After the fix, the initialization was done immediately.
And yes, you are right since the actual training of CMC takes much longer than the initialization :) but it irritated me a lot while tuning the code so I left the issue.

+) Also I noticed that the memory bank took a few gigabytes on GPU RAM, so I moved them to a CPU RAM and it works fine for me with almost no overhead.
Although I added additional lines of code to move read features to GPU RAM and store inferred features back to CPU RAM.

++) Are you planning releasing your experiments on NYU-Depth-V2? It will be helpful to understand the implementation of >2 views case.

from cmc.

HobbitLong avatar HobbitLong commented on August 24, 2024

@dandelin,

  1. Nice! Thanks for your experiment of moving memory back to CPU. How much is the relative decrease of speed?
  2. Probably not now due to my limited capacity, but some hints are available here #9 and also our paper.

from cmc.

dandelin avatar dandelin commented on August 24, 2024

@HobbitLong
I did not measure the latency, but there was no difference in the feeling.
Again, thanks for sharing the code :) closing the issue.

from cmc.

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.