Comments (2)
When we build PyTorch from source, we should also build torchvision from source because of the issue you've mentioned: pip-installing torchvision will reinstall different version of PyTorch.
You should:
- clone torchvision repo
- checkout to v0.5.0 tag (because torchvision v0.5.0 is the latest version compatible with PyTorch v1.4.1)
- run
python setup.py install
Note that running torchvision's NMS operation with Nimble will have a problem.
Nimble is built for optimized GPU task scheduling, so the PyTorch module passed to Nimble should perform all computation on GPU.
However, torchvision's NMS implementation does not satisfy this constraint, as it performs some logic on CPU.
You can try these two options.
- Carve out "GPU-only" "static" part(s) from your PyTorch module, apply Nimble on those parts separately, and wire the resulting Nimble modules and the rest of your PyTorch module.
- Adopt GPU-only NMS implementation. TensorRT's batchedNMS and NMS plugin could be a good choice.
from nimble.
Thanks for the quick reply.
By following your suggestion, I built torchvision from source and surprisingly, the error related to nms doesn't show up.
But still, I'm having the following error
AttributeError: module 'torch.distributed' has no attribute 'init_process_group'
.
I saw #1 , so is this expected for the current status?
Without distributed setting, the default training code runs smoothly.
In the process of applying nimble for this single GPU setup, I noticed that the model to be wrapped by nimble should have strict input and output format (mostly comprising of torch Tensors).
I don't know if this a must, but if not, the relaxation of this condition would make nimble easier to use :)
from nimble.
Related Issues (20)
- 토치 1.4.0, 쿠다10.1에서 작동테스트 해보신 분 있나요? HOT 2
- How to build Nimble? HOT 1
- Nimble training 시 에러가 납니다. HOT 2
- 윈도우에서도 사용가능한가요? HOT 7
- Can any deep learning model be used in nimble, such as yolov5?? HOT 3
- How to build the docker file? fatal: Not a git repository (or any of the parent directories): .git HOT 10
- getting the following error when building nimble in conda enviornment FAILED: caffe2/CMakeFiles/torch_cuda.dir/utils/torch_cuda_generated_math_gpu.cu.o subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '8']' returned non-zero exit status 1. HOT 4
- Please give instructions on how to setup your docker without running into any errors HOT 1
- What is the difference between nimble and deepstream?
- Can I debug in nimble?
- How to install torchvision with nimble
- module 'torch.cuda' has no attribute 'Nimble'
- The effect of multiple streams is not obvious
- The CMake erro in the process of setup
- Lightweight?
- Updates for PyTorch v1.7.1
- build error HOT 1
- 와... 이거 몰랐는데 서울대에서 개발한거군요?! 대단합니다.
- ModuleNotFoundError: No module named 'torch._C' HOT 7
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 nimble.