Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spin train.py 报错 #149

Open
Delay0123456789 opened this issue Mar 16, 2023 · 0 comments
Open

spin train.py 报错 #149

Delay0123456789 opened this issue Mar 16, 2023 · 0 comments

Comments

@Delay0123456789
Copy link

问题一
根据spin readme,
运行(mmdetection) db306@db306:/media/db306/data/zxs/DAVAR-Lab-OCR-main/DAVAR-Lab-OCR-main$ cd .
(mmdetection) db306@db306:/media/db306/data/zxs/DAVAR-Lab-OCR-main/DAVAR-Lab-OCR-main$ bash ./train.sh
报错 bash: ./train.sh: 没有那个文件或目录
问题二
(mmdetection) db306@db306:/media/db306/data/zxs/DAVAR-Lab-OCR-main/DAVAR-Lab-OCR-main$ bash ./demo/text_recognition/spin/train_gaspin.sh


Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.


train_piplines: [{'type': 'LoadImageFromLMDB', 'character': '/data1/open-source/demo/text_recognition/dictionary/Scene_text_68.txt', 'test_mode': False, 'sensitive': False, 'color_types': ['gray'], 'fil_ops': True}, {'type': 'ResizeNormalize', 'size': (100, 32), 'interpolation': 2, 'mean': [127.5], 'std': [127.5]}, {'type': 'DavarDefaultFormatBundle'}, {'type': 'DavarCollect', 'keys': ['img', 'gt_text']}]
train_piplines: [{'type': 'LoadImageFromLMDB', 'character': '/data1/open-source/demo/text_recognition/dictionary/Scene_text_68.txt', 'test_mode': False, 'sensitive': False, 'color_types': ['gray'], 'fil_ops': True}, {'type': 'ResizeNormalize', 'size': (100, 32), 'interpolation': 2, 'mean': [127.5], 'std': [127.5]}, {'type': 'DavarDefaultFormatBundle'}, {'type': 'DavarCollect', 'keys': ['img', 'gt_text']}]
Traceback (most recent call last):
File "./tools/train.py", line 255, in
Traceback (most recent call last):
File "./tools/train.py", line 255, in
main()
File "./tools/train.py", line 164, in main
init_dist(args.launcher, **cfg.dist_params)
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/mmcv/runner/dist_utils.py", line 20, in init_dist
_init_dist_pytorch(backend, **kwargs)
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/mmcv/runner/dist_utils.py", line 34, in _init_dist_pytorch
dist.init_process_group(backend=backend, **kwargs)
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 455, in init_process_group
main()
File "./tools/train.py", line 164, in main
init_dist(args.launcher, **cfg.dist_params)
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/mmcv/runner/dist_utils.py", line 20, in init_dist
_init_dist_pytorch(backend, **kwargs)
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/mmcv/runner/dist_utils.py", line 34, in _init_dist_pytorch
dist.init_process_group(backend=backend, **kwargs)
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 455, in init_process_group
barrier()
barrier()
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 1960, in barrier
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 1960, in barrier
work = _default_pg.barrier()
RuntimeError: NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL.cpp:784, invalid usage, NCCL version 2.7.8
work = _default_pg.barrier()
RuntimeError: NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL.cpp:784, invalid usage, NCCL version 2.7.8
Traceback (most recent call last):
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/torch/distributed/launch.py", line 260, in
main()
File "/home/db306/anaconda3/envs/mmdetection/lib/python3.6/site-packages/torch/distributed/launch.py", line 256, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/home/db306/anaconda3/envs/mmdetection/bin/python', '-u', './tools/train.py', '--local_rank=1', './demo/text_recognition/spin/configs/gaspin_res32_attn.py', '--launcher', 'pytorch']' returned non-zero exit status 1.
非常希望和感谢您的回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant