UniAD
UniAD copied to clipboard
./uniad_dist_eval.sh
python ./tools/uniad_dist_eval.sh ./projects/configs/stage1_track_map/base_track_map.py ./ckpts/uniad_base_track_map.pth 8
File "./tools/uniad_dist_eval.sh", line 3
T=date +%m%d%H%M
^
SyntaxError: invalid syntax
Please tell me the mistake
@zhangzhongzhong1 The .sh
file is a shell script, not a python file.
./tools/uniad_dist_eval.sh ./projects/configs/stage1_track_map/base_track_map.py ./ckpts/uniad_base_track_map.pth 8 /usr/bin/python: No module named torch.distributed This execution of the file will report this error
@zhangzhongzhong1 Our torch version is 1.9.1 . You may consider installing compatible version of torch.
I installed it according to your installation instructions, and there is no problem with the torch version
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 12504) of binary: /home/zzz/anaconda3/envs/uniad/bin/python
Traceback (most recent call last):
File "/home/zzz/anaconda3/envs/uniad/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/zzz/anaconda3/envs/uniad/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/zzz/anaconda3/envs/uniad/lib/python3.8/site-packages/torch/distributed/launch.py", line 193, in
看一下你的uniad_dist_eval.sh里面的python -m torch.distributed.launch是不是要改成python3 -m torch.distributed.launch;有可能你的conda环境有关系
python ./tools/uniad_dist_eval.sh ./projects/configs/stage1_track_map/base_track_map.py ./ckpts/uniad_base_track_map.pth 8 File "./tools/uniad_dist_eval.sh", line 3 T=
date +%m%d%H%M
^ SyntaxError: invalid syntaxPlease tell me the mistake
你好,请问问题解决了吗