Код:
(GFPGAN) conda@DESKTOP-VT6C283:~/GFPGAN$ python -m torch.distributed.launch --nproc_per_node=4 --master_port=22021 gfpgan/train.py -opt options/train_gfpgan_v1.yml --launcher pytorch
/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/torch/distributed/launch.py:188: 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
FutureWarning,
WARNING:torch.distributed.run:
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
*****************************************
Traceback (most recent call last):
File "gfpgan/train.py", line 3, in <module>
from basicsr.train import train_pipeline
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/__init__.py", line 3, in <module>
from .archs import *
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/archs/__init__.py", line 5, in <module>
from basicsr.utils import get_root_logger, scandir
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/utils/__init__.py", line 4, in <module>
from .img_process_util import USMSharp, usm_sharp
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/utils/img_process_util.py", line 1, in <module>
import cv2
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "gfpgan/train.py", line 3, in <module>
from basicsr.train import train_pipeline
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/__init__.py", line 3, in <module>
from .archs import *
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/archs/__init__.py", line 5, in <module>
from basicsr.utils import get_root_logger, scandir
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/utils/__init__.py", line 4, in <module>
from .img_process_util import USMSharp, usm_sharp
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/utils/img_process_util.py", line 1, in <module>
import cv2
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "gfpgan/train.py", line 3, in <module>
from basicsr.train import train_pipeline
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/__init__.py", line 3, in <module>
from .archs import *
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/archs/__init__.py", line 5, in <module>
from basicsr.utils import get_root_logger, scandir
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/utils/__init__.py", line 4, in <module>
from .img_process_util import USMSharp, usm_sharp
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/utils/img_process_util.py", line 1, in <module>
import cv2
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "gfpgan/train.py", line 3, in <module>
from basicsr.train import train_pipeline
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/__init__.py", line 3, in <module>
from .archs import *
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/archs/__init__.py", line 5, in <module>
from basicsr.utils import get_root_logger, scandir
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/utils/__init__.py", line 4, in <module>
from .img_process_util import USMSharp, usm_sharp
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/basicsr/utils/img_process_util.py", line 1, in <module>
import cv2
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 1755) of binary: /home/conda/miniforge3/envs/GFPGAN/bin/python
Traceback (most recent call last):
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/torch/distributed/launch.py", line 195, in <module>
main()
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/torch/distributed/launch.py", line 191, in main
launch(args)
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/torch/distributed/launch.py", line 176, in launch
run(args)
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/torch/distributed/run.py", line 756, in run
)(*cmd_args)
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 132, in __call__
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/conda/miniforge3/envs/GFPGAN/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 248, in launch_agent
failures=result.failures,
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
gfpgan/train.py FAILED
------------------------------------------------------------
Failures:
[1]:
time : 2023-02-27_21:21:01
host : DESKTOP-VT6C283.
rank : 1 (local_rank: 1)
exitcode : 1 (pid: 1756)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
[2]:
time : 2023-02-27_21:21:01
host : DESKTOP-VT6C283.
rank : 2 (local_rank: 2)
exitcode : 1 (pid: 1757)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
[3]:
time : 2023-02-27_21:21:01
host : DESKTOP-VT6C283.
rank : 3 (local_rank: 3)
exitcode : 1 (pid: 1758)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
time : 2023-02-27_21:21:01
host : DESKTOP-VT6C283.
rank : 0 (local_rank: 0)
exitcode : 1 (pid: 1755)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================