UniAD icon indicating copy to clipboard operation
UniAD copied to clipboard

./uniad_dist_eval.sh

Open zhangzhongzhong1 opened this issue 1 year ago • 7 comments

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 avatar Aug 28 '23 10:08 zhangzhongzhong1

@zhangzhongzhong1 The .sh file is a shell script, not a python file.

ilnehc avatar Aug 28 '23 10:08 ilnehc

./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 avatar Aug 28 '23 10:08 zhangzhongzhong1

@zhangzhongzhong1 Our torch version is 1.9.1 . You may consider installing compatible version of torch.

YTEP-ZHI avatar Aug 28 '23 11:08 YTEP-ZHI

I installed it according to your installation instructions, and there is no problem with the torch version

zhangzhongzhong1 avatar Aug 28 '23 11:08 zhangzhongzhong1

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 main() File "/home/zzz/anaconda3/envs/uniad/lib/python3.8/site-packages/torch/distributed/launch.py", line 189, in main launch(args) File "/home/zzz/anaconda3/envs/uniad/lib/python3.8/site-packages/torch/distributed/launch.py", line 174, in launch run(args) File "/home/zzz/anaconda3/envs/uniad/lib/python3.8/site-packages/torch/distributed/run.py", line 689, in run elastic_launch( File "/home/zzz/anaconda3/envs/uniad/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 116, in call return launch_agent(self._config, self._entrypoint, list(args)) File "/home/zzz/anaconda3/envs/uniad/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 244, in launch_agent raise ChildFailedError( torch.distributed.elastic.multiprocessing.errors.ChildFailedError: Can you explain this mistake?

zhangzhongzhong1 avatar Aug 28 '23 12:08 zhangzhongzhong1

看一下你的uniad_dist_eval.sh里面的python -m torch.distributed.launch是不是要改成python3 -m torch.distributed.launch;有可能你的conda环境有关系

yudefu avatar Sep 07 '23 07:09 yudefu

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

你好,请问问题解决了吗

longlongaa avatar Oct 20 '23 11:10 longlongaa