Comments (20)
IF I set workers = 0, this error will disappear.
from tsn-pytorch.
Are you using the latest version of PyTorch?
from tsn-pytorch.
from tsn-pytorch.
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.
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.
@yjxiong Actually I have 4 GPUs, if I set j=1, it will stuck there. Only if j=0 works.
from tsn-pytorch.
I have explained why your case failed. Try use 4 GPUs instead.
from tsn-pytorch.
I have removed the --gpus option, it will automatically use 4 GPUs. It does not help.
from tsn-pytorch.
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.
from tsn-pytorch.
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.
from tsn-pytorch.
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.
from tsn-pytorch.
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.
Good to know. This should lead to reasonable training speed.
from tsn-pytorch.
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.
@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.
@ntuyt available is only 65536, I think it's too small! Iwill try to increase it. Thank you.
from tsn-pytorch.
I tried many times and the space of /dev/shm is at least 35GB.
from tsn-pytorch.
Related Issues (20)
- Error: return int(self._data[1]) IndexError: list index out of range
- what is the command of RGB and Flow modality fusion? HOT 2
- what is the command of RGB and Flow modality fusion? Thanks!! HOT 3
- How to fuse the scores from both RGB and FLOW on training and testing? HOT 1
- No module named 'mmaction.datasets.utils' HOT 1
- 请问经过模型后的输出是什么格式呢? HOT 2
- weried phenomenon about using main.py train ucf101 dataset HOT 1
- error about epoch print statement when i use the main.py to train with ucf101 dataset HOT 1
- RuntimeError: bool value of non-empty torch.cuda.ByteTensor objects is ambiguous
- getting 84% in ucf101 on split 1 HOT 2
- RuntimeError: Legacy autograd function HOT 1
- The score of rgb and flow
- Solved
- video live test?
- Training the TSN model on custom dataset - couldn't implement as mentioned in paper HOT 1
- Why subtract 'new_length' to calculate 'average_duration' ?
- Need pre-trained ActivityNet weights for Pytorch
- 报错求助magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '<'.(困扰我很久了救救孩子吧)) HOT 2
- f**k-est implementation HOT 3
- mean() received an invalid combination of arguments - got (Tensor, list, keepdim=bool), but expected one of: * (Tensor input) * (Tensor input, torch.dtype dtype) * (Tensor input, int dim, torch.dtype dtype, Tensor out) * (Tensor input, int dim, bool keepdim, torch.dtype dtype, Tensor out) * (Tensor input, int dim, bool keepdim, Tensor out)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsn-pytorch.