Comments (12)
Make it single-threaded:
- Get rid of the body of
loop()
- Replace that with the actual data loading code
from fb.resnet.torch.
Try setting OMP_NUM_THREADS=1? This helps me solving #17.
from fb.resnet.torch.
I'm not sure I understand. Are you running the two training runs at the same time?
from fb.resnet.torch.
no, run one finished and then run next one, it's sequentially
from fb.resnet.torch.
If you run it again, does it hang?
from fb.resnet.torch.
yes, so far I tracked the problem down to the #99line in dataloader.lua threads:dojob().
from fb.resnet.torch.
this is perculiar since I run the code multiple times before and no problem. However, recently I have some library install and delete and environment change, which might have a influence on the low level thread library ?
from fb.resnet.torch.
Maybe there's an error loading the data that's getting hidden by the threads. I'd be surprised if the issue is actually in the threads library (as opposed to just being hidden by the multi-threading)
from fb.resnet.torch.
what's the best way to debug the dataloader ? Right now, I print everything out to see which is not working.
Thanks
from fb.resnet.torch.
Thanks, man, will try it laters
from fb.resnet.torch.
thanks guys, actually reinstall torch and cutorch fix the problem, I do not know what happened exactly, but I learned something through this problem.
Thank you
from fb.resnet.torch.
I faced a similar problem. My training code was just hanging(not showing any progress on the terminal) although the GPU memory was occupied. The GPU temperature was low(indicating inactivity). It was a multi-GPU model training with multi-threaded data loading. I faced the problem even when I tried the code on a single GPU and set the number of threads to 1.
I was getting a warning from DataparallelTable.lua that it coudn't load nccl(in the multi-GPU training). I installed nccl and also updated torch,cutorch,nn and cunn. None of this however resolved the issue.
I had to ultimately follow the suggestion of @colesbury and replace the code in the dataloader.loop() with the dataloading code. This seems to have resolved the issue and I don't see the freezing thing happening any more. Thanks! I hope someone else finds this useful.
from fb.resnet.torch.
Related Issues (20)
- dataset.lua,dataset-gen.lua HOT 1
- Random luajit errors
- How Can I Plot the Train Curve ? HOT 2
- running time of ResNets HOT 5
- DataSampler.lua:230: bad argument #3 to 'narrow'
- Missing batch norm in ResNet-18 weights HOT 1
- Retrain with different input size
- Can I use video or webcam to classify ? (I have a fine-tuned model with my own data.) HOT 1
- it's my code but i don't why it's show me this error...
- What are the settings of pretrained ResNet-101 and ResNet-152 model files? HOT 2
- How to extract the lower level feature with pretrained model?
- INIT.LUA not found
- How to control the CPU kernels that are used during training.
- Can not reach the validation error rate for Resnet-50 (single-crop 224*224) HOT 1
- TestOnly on different machines give different results HOT 1
- Using cifar-100 with 15 classes HOT 7
- nn
- CMake error while running install.sh HOT 7
- running lua in Pytorch HOT 1
- I want to retrain a resnext_101_32*4d.Is it possible?
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 fb.resnet.torch.