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

AttributeError: 'Namespace' object has no attribute 'work_dir' #16

Open
hhhhhhhhaaha opened this issue Apr 30, 2024 · 0 comments
Open

Comments

@hhhhhhhhaaha
Copy link

The specific issues are as follows:
Traceback (most recent call last):
File "tools/test.py", line 181, in
main()
File "tools/test.py", line 87, in main
if args.work_dir is not None:
AttributeError: 'Namespace' object has no attribute 'work_dir'
Traceback (most recent call last):
File "tools/test.py", line 181, in
main()
File "tools/test.py", line 87, in main
if args.work_dir is not None:
AttributeError: 'Namespace' object has no attribute 'work_dir'
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 1554819) of binary: /data1/anaconda3/envs/OVTrack/bin/python
Traceback (most recent call last):
File "/data1/anaconda3/envs/OVTrack/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/data1/anaconda3/envs/OVTrack/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/data1/anaconda3/envs/OVTrack/lib/python3.8/site-packages/torch/distributed/run.py", line 723, in
main()
File "/data1/anaconda3/envs/OVTrack/lib/python3.8/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 345, in wrapper
return f(*args, **kwargs)
File "/data1/anaconda3/envs/OVTrack/lib/python3.8/site-packages/torch/distributed/run.py", line 719, in main
run(args)
File "/data1/anaconda3/envs/OVTrack/lib/python3.8/site-packages/torch/distributed/run.py", line 710, in run
elastic_launch(
File "/data1/anaconda3/envs/OVTrack/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 131, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/data1/anaconda3/envs/OVTrack/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 259, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:

tools/test.py FAILED

Failures:
[1]:
time : 2024-04-28_16:25:13
host : ubuntu
rank : 1 (local_rank: 1)
exitcode : 1 (pid: 1554820)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html

Root Cause (first observed failure):
[0]:
time : 2024-04-28_16:25:13
host : ubuntu
rank : 0 (local_rank: 0)
exitcode : 1 (pid: 1554819)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
I hope to receive your answer!

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