Giter Site home page Giter Site logo

Comments (8)

pxiangwu avatar pxiangwu commented on May 25, 2024

Hi, I never encountered this issue before. Which version of Pytorch are you using?

I tested my code on Pytorch1.0 and 1.1. Not sure if the latest Pytorch version (e.g., 1.6) would work well.

from motionnet.

fyaft2012 avatar fyaft2012 commented on May 25, 2024

Hi, I use the pytorch 1.1.0, not the latest one. And it runs on Ubuntu 18.04 (I previously trained on 16.04, same problem happened), with RTX 2080, 32GB RAM.

from motionnet.

pxiangwu avatar pxiangwu commented on May 25, 2024

@fyaft2012 , could you debug the code by setting the num_worker = 0? This would be helpful to check what happens.

from motionnet.

fyaft2012 avatar fyaft2012 commented on May 25, 2024

Hi Wu, okay I am just debugging as what you suggest. Let's see what will happen, while the speed is much reduced after setting num_worker = 0. I will let you know whether it helps or not. Thanks!

from motionnet.

pxiangwu avatar pxiangwu commented on May 25, 2024

Sure. Let me know what happens since I am quite curious about this. From the error you showed above, it could possibly related to the multithread data loading.

Also, from the error reported, one potential work-around could be: set the size of self.cache to be 0. In this way, we will not cache the pre-loaded data in the memory (although the speed could be slowed down a little bit).

from motionnet.

fyaft2012 avatar fyaft2012 commented on May 25, 2024

Okay, I will try both of them. And let you know the results.

from motionnet.

pxiangwu avatar pxiangwu commented on May 25, 2024

Also, one thing I forgot to mention. You may also need to observe the CPU memory to see if it is used up by the cache. Not sure 32GB RAM is OK, since I run the code on the cluster with 1TB memory ...

If the memory is not enough, you may reduce the cache size.

from motionnet.

fyaft2012 avatar fyaft2012 commented on May 25, 2024

Okay, I see. Thank you!

from motionnet.

Related Issues (17)

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.