You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My errors:
/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launch.py:183: FutureWarning: The module torch.distributed.launch is deprecated
and will be removed in future. Use torchrun.
Note that --use-env is set by default in torchrun.
If your script expects --local-rank argument to be set, please
change it to read from os.environ['LOCAL_RANK'] instead. See https://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions
warnings.warn(
Traceback (most recent call last):
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launch.py", line 198, in
main()
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launch.py", line 194, in main
launch(args)
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launch.py", line 179, in launch
run(args)
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/run.py", line 870, in run
elastic_launch(
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 132, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 230, in launch_agent
spec = WorkerSpec(
File "", line 14, in init
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/elastic/agent/server/api.py", line 94, in post_init
assert self.local_world_size > 0
AssertionError
My objective: I want to test my own photos but it doesn't work. I also tried :
torchrun --standalone --nnodes=1 --nproc_per_node=1 tools/test.py configs/config_wormswin_mmdetection.py ../Documents/Stage/worm-swin-main/synthetic_csb-1_epoch_36.pth --eval bbox segm --out outputs/resultat.pkl
But it doesn't work either. :( Could you help me, please? TT
The text was updated successfully, but these errors were encountered:
LiuxinYLX
changed the title
AssertionError | he module torch.distributed.launch is deprecated and will be removed in future.
AssertionError | The module torch.distributed.launch is deprecated and will be removed in future.
May 31, 2024
My command:
tools/dist_test.sh configs/config_wormswin_mmdetection.py ../Documents/Stage/worm-swin-main/synthetic_csb-1_epoch_36.pth 0 --eval bbox segm --out outputs/resultat.pkl
My errors:
/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launch.py:183: FutureWarning: The module torch.distributed.launch is deprecated
and will be removed in future. Use torchrun.
Note that --use-env is set by default in torchrun.
If your script expects
--local-rank
argument to be set, pleasechange it to read from
os.environ['LOCAL_RANK']
instead. Seehttps://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions
warnings.warn(
Traceback (most recent call last):
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launch.py", line 198, in
main()
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launch.py", line 194, in main
launch(args)
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launch.py", line 179, in launch
run(args)
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/run.py", line 870, in run
elastic_launch(
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 132, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 230, in launch_agent
spec = WorkerSpec(
File "", line 14, in init
File "/home/liuxinyang/miniconda3/envs/openmmlab/lib/python3.8/site-packages/torch/distributed/elastic/agent/server/api.py", line 94, in post_init
assert self.local_world_size > 0
AssertionError
My objective: I want to test my own photos but it doesn't work. I also tried :
torchrun --standalone --nnodes=1 --nproc_per_node=1 tools/test.py configs/config_wormswin_mmdetection.py ../Documents/Stage/worm-swin-main/synthetic_csb-1_epoch_36.pth --eval bbox segm --out outputs/resultat.pkl
But it doesn't work either. :( Could you help me, please? TT
The text was updated successfully, but these errors were encountered: