运行bash dist_train.sh报错。
Opened this issue · 2 comments
您好,我运行bash dist_train.sh报如下错误,请问是什么原因,环境问题吗(环境直接运行的setup.sh安装的),非常感谢
/home/luhu/anaconda3/envs/davar/bin/python: can't open file '/path/to/Davar-Lab-OCR//tools/train.py': [Errno 2] No such file or directory
/home/luhu/anaconda3/envs/davar/bin/python: can't open file '/path/to/Davar-Lab-OCR//tools/train.py': [Errno 2] No such file or directory
/home/luhu/anaconda3/envs/davar/bin/python: can't open file '/path/to/Davar-Lab-OCR//tools/train.py': [Errno 2] No such file or directory
/home/luhu/anaconda3/envs/davar/bin/python: can't open file '/path/to/Davar-Lab-OCR//tools/train.py': [Errno 2] No such file or directory
/home/luhu/anaconda3/envs/davar/bin/python: can't open file '/path/to/Davar-Lab-OCR//tools/train.py': [Errno 2] No such file or directory
/home/luhu/anaconda3/envs/davar/bin/python: can't open file '/path/to/Davar-Lab-OCR//tools/train.py': [Errno 2] No such file or directory
Killing subprocess 152393
Killing subprocess 152394
Killing subprocess 152395
Killing subprocess 152396
Killing subprocess 152397
Killing subprocess 152398
Killing subprocess 152399
Killing subprocess 152400
Traceback (most recent call last):
File "/home/luhu/anaconda3/envs/davar/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/luhu/anaconda3/envs/davar/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/luhu/anaconda3/envs/davar/lib/python3.7/site-packages/torch/distributed/launch.py", line 340, in
main()
File "/home/luhu/anaconda3/envs/davar/lib/python3.7/site-packages/torch/distributed/launch.py", line 326, in main
sigkill_handler(signal.SIGTERM, None) # not coming back
File "/home/luhu/anaconda3/envs/davar/lib/python3.7/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler
raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd)
subprocess.CalledProcessError: Command '['/home/luhu/anaconda3/envs/davar/bin/python', '-u', '/path/to/Davar-Lab-OCR//tools/train.py', '--local_rank=7', './configs/lgpma_pub.py', '--no-validate', '--launcher', 'pytorch']' returned non-zero exit status 2.
根据提示,你需要你路径'/path/to/Davar-Lab-OCR//tools/train.py' 改成你自己环境中的路径
上面问题已经搞定。非常感谢。不够我有另外一个疑惑(可能是我对这个工作了解不深入),对于这种行列对其的很好的表格,如果用一般的文本检测,根据文本检测的结果做后处理,是否也可以得到这样的效果?