Giter Club home page Giter Club logo

Comments (20)

ntuyt avatar ntuyt commented on July 21, 2024 2

IF I set workers = 0, this error will disappear.

from tsn-pytorch.

yjxiong avatar yjxiong commented on July 21, 2024

Are you using the latest version of PyTorch?

from tsn-pytorch.

ntuyt avatar ntuyt commented on July 21, 2024

from tsn-pytorch.

yjxiong avatar yjxiong commented on July 21, 2024

You only have one GPU, use -j 1. A too high -j number or a too small GPU men size may cause this error.

from tsn-pytorch.

yjxiong avatar yjxiong commented on July 21, 2024

And you are using a Batchsize of 128 with only 1 GPU. I don’t think this is feasible. It typically needs 4 GPUs.

from tsn-pytorch.

ntuyt avatar ntuyt commented on July 21, 2024

@yjxiong Actually I have 4 GPUs, if I set j=1, it will stuck there. Only if j=0 works.

from tsn-pytorch.

yjxiong avatar yjxiong commented on July 21, 2024

I have explained why your case failed. Try use 4 GPUs instead.

from tsn-pytorch.

ntuyt avatar ntuyt commented on July 21, 2024

I have removed the --gpus option, it will automatically use 4 GPUs. It does not help.

from tsn-pytorch.

yjxiong avatar yjxiong commented on July 21, 2024

What is the memory size of your GPUs? If setting -j 4 or lower won’t work, I don’t know what’s the error then. We run this setting on 4 Titan X without problem.

from tsn-pytorch.

ntuyt avatar ntuyt commented on July 21, 2024

from tsn-pytorch.

yjxiong avatar yjxiong commented on July 21, 2024

Then I don’t have any instant idea for this. Seeing from the log, it says multiprocessing lib in the dataloaders cannot open/write to some kind of shared momery for communication between processes. It may be a problem in your permission setting or os, which I cannot identify on my side.

from tsn-pytorch.

ntuyt avatar ntuyt commented on July 21, 2024

from tsn-pytorch.

yjxiong avatar yjxiong commented on July 21, 2024

I don’t think this is a good choice tbh. It wastes too much time for data loading.

I’d rather suggest you either figure out the problem or go with Caffe TSN instead. I don’t want you to blame the code for running super slow at the end of the day.

from tsn-pytorch.

ntuyt avatar ntuyt commented on July 21, 2024

from tsn-pytorch.

ntuyt avatar ntuyt commented on July 21, 2024

I find it is caused by lack of shared memory.
I have increased the shared memory size and it can be trained using 8 workers!

from tsn-pytorch.

yjxiong avatar yjxiong commented on July 21, 2024

Good to know. This should lead to reasonable training speed.

from tsn-pytorch.

SmartPorridge avatar SmartPorridge commented on July 21, 2024

I met the same probles as you. Could you explain carefully how to solve this problem? I have no idea about the "lack of shared memory."
thank you

from tsn-pytorch.

ntuyt avatar ntuyt commented on July 21, 2024

@JiqiangZhou Please type in this command "df –k /dev/shm".
You will see the shared memory size in your PC or server.
Then if it is small, you will need to enlarge it.

from tsn-pytorch.

SmartPorridge avatar SmartPorridge commented on July 21, 2024

@ntuyt available is only 65536, I think it's too small! Iwill try to increase it. Thank you.

from tsn-pytorch.

SmartPorridge avatar SmartPorridge commented on July 21, 2024

I tried many times and the space of /dev/shm is at least 35GB.

from tsn-pytorch.

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.