Comments (3)
You can do this by setting ${GPU_NUM} and the environment variable CUDA_VISIBLE_DEVICES
CUDA_VISIBLE_DEVICES=${GPU id list} ./tools/dist_train.sh
For example, train a SETR-PUP on Cityscapes dataset with 4 GPUs
CUDA_VISIBLE_DEVICES=0,1,2,3 ./tools/dist_train.sh configs/SETR/SETR_PUP_768x768_40k_cityscapes_bs_8.py 4
from setr.
thanks a lot but I met this error, how to deal with it...
Traceback (most recent call last):
File "/home/jing_liang/anaconda3/envs/zhaoxing/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/jing_liang/anaconda3/envs/zhaoxing/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/jing_liang/anaconda3/envs/zhaoxing/lib/python3.6/site-packages/torch/distributed/launch.py", line 173, in
main()
File "/home/jing_liang/anaconda3/envs/zhaoxing/lib/python3.6/site-packages/torch/distributed/launch.py", line 169, in main
run(args)
File "/home/jing_liang/anaconda3/envs/zhaoxing/lib/python3.6/site-packages/torch/distributed/run.py", line 624, in run
)(*cmd_args)
File "/home/jing_liang/anaconda3/envs/zhaoxing/lib/python3.6/site-packages/torch/distributed/launcher/api.py", line 116, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/jing_liang/anaconda3/envs/zhaoxing/lib/python3.6/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 348, in wrapper
return f(*args, **kwargs)
File "/home/jing_liang/anaconda3/envs/zhaoxing/lib/python3.6/site-packages/torch/distributed/launcher/api.py", line 247, in launch_agent
failures=result.failures,
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
from setr.
It may be that your environment is installed incorrectly. It is recommended to check the version of the package or reinstall the environment according to the A from-scratch setup script in the README.
from setr.
Related Issues (20)
- pascal_context dataset HOT 1
- Custom dataset how to use? HOT 1
- Question about optimizer config. HOT 2
- image size doesn't match model HOT 1
- MMCV Error(mmcv-full 1.2.2 torch1.6 python3.7) HOT 3
- Can you share the iter_40000.pth file?
- Which checkpoint file is the best? HOT 1
- AttributeError: 'DataContainer' object has no attribute 'shape' HOT 1
- error for using dist_train.sh HOT 2
- typo in Dockerfile HOT 1
- mmcv error ,python3.7.0,pytorch 1.9.1,windows HOT 2
- about single GPU HOT 1
- could you share the demo of SETR? HOT 1
- SETR-Naive-Base model HOT 5
- ZeroDivisionError: integer division or modulo by zero HOT 1
- Questions about "cls_token" and "pos_embed" in the code HOT 10
- multi-scale testing
- Difference with ViT
- 单GPU问题
- RecursionError while training the custom dataset
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 setr.