Comments (4)
In theory, you can, but the batchsize has to be reduced. In this case, the training might not be optimal.
from shelfnet.
@juntang-zhuang Think for your answer.But how can I change two GPU to one?Change "CUDA_VISIBLE_DEVICES=0,1" to "CUDA_VISIBLE_DEVICES=0"?
from shelfnet.
Yes, you will need to modify that. But there might be potential problems, depending on which branch you are using: (1) for all branches, I'm not sure if the synchronized batch-norm can run normally on only 1 GPU; if not, you can replace all synchronized BN layer with normal BN. (2) for branches "citys" and "pascal", the loss function is specially written for multi-GPU case, not sure if it works on one GPU. If not, you need to call a normal loss function defined in official PyTorch. (3) for branch "citys_lw", things might be complicated with distributed training, I'm not so familiar. But since the model and loss are already written, you can re-write your own training script.
from shelfnet.
ok,I understand it.Thank you for the details!
from shelfnet.
Related Issues (20)
- Some question about pascal voc test set HOT 1
- 关于arxiv论文 HOT 1
- Compile Errors HOT 5
- pretrained model in google driver untar failed HOT 2
- C++ Api HOT 1
- Functionality difference between pytorch batchnorm and synchronised batchnorm HOT 3
- Bad results on custom training data HOT 4
- TypeError: __init__() got an unexpected keyword argument 'find_unused_parameters' HOT 1
- How to load pretrained weights for training HOT 2
- Tips for better training HOT 2
- RuntimeError: storage has wrong size: expected -4885659930368473377 got 589824 HOT 1
- ImportError: No module named 'inplace_abn' HOT 5
- Which Nvidia GPU card do you use for training? HOT 2
- Get the confidence of the segmented class during test tme HOT 4
- What is the License for this repo? HOT 1
- RuntimeError: ONNX export failed: Couldn't export Python operator InPlaceABNSync
- 关于论文中对Cityscapes的测试结果 HOT 3
- import encoding issue : note: template argument deduction/substitution failed:\nninja: build stopped: subcommand failed.\n" HOT 1
- About data augmentation HOT 1
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 shelfnet.