fudan-zvg / SETR

[CVPR 2021] Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers
MIT License
1.05k stars 150 forks source link

AttributeError: module 'signal' has no attribute 'SIGKILL' #62

Open wyk1998 opened 1 year ago

wyk1998 commented 1 year ago

System: windows 11, Nvidia GTX 4060Ti Configuration environment: torch 1.13.0+cu116 torchaudio 0.13.0+cu116 torchvision 0.14.0+cu116 mmcv 2.0.1 After running the command ./tools/dist_train.sh configs/SETR/SETR_PUP_DeiT_768x768_80k_cityscapes_bs_8.py 1, the following problem occurs:

NOTE: Redirects are currently not supported in Windows or MacOs. Traceback (most recent call last): File "E:\Anaconda\envs\setr\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "E:\Anaconda\envs\setr\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "E:\Anaconda\envs\setr\lib\site-packages\torch\distributed\launch.py", line 150, in from torch.distributed.run import get_args_parser, run File "E:\Anaconda\envs\setr\lib\site-packages\torch\distributed\run.py", line 386, in from torch.distributed.launcher.api import LaunchConfig, elastic_launch File "E:\Anaconda\envs\setr\lib\site-packages\torch\distributed\launcher__init.py", line 10, in from torch.distributed.launcher.api import ( # noqa: F401 File "E:\Anaconda\envs\setr\lib\site-packages\torch\distributed\launcher\api.py", line 15, in from torch.distributed.elastic.agent.server.api import WorkerSpec File "E:\Anaconda\envs\setr\lib\site-packages\torch\distributed\elastic\agent\server__init__.py", line 40, in from .local_elastic_agent import TORCHELASTIC_ENABLE_FILE_TIMER, TORCHELASTIC_TIMER_FILE File "E:\Anaconda\envs\setr\lib\site-packages\torch\distributed\elastic\agent\server\local_elastic_agent.py", line 19, in import torch.distributed.elastic.timer as timer File "E:\Anaconda\envs\setr\lib\site-packages\torch\distributed\elastic\timer__init__.py", line 44, in from .file_based_local_timer import FileTimerClient, FileTimerServer, FileTimerRequest # noqa: F401 File "E:\Anaconda\envs\setr\lib\site-packages\torch\distributed\elastic\timer\file_based_local_timer.py", line 63, in class FileTimerClient(TimerClient): File "E:\Anaconda\envs\setr\lib\site-packages\torch\distributed\elastic\timer\file_based_local_timer.py", line 81, in FileTimerClient def init__(self, file_path: str, signal=signal.SIGKILL) -> None: AttributeError: module 'signal' has no attribute 'SIGKILL'

I would like to know if anyone has had this problem and how to fix it please