Open netrunner-exe opened 10 months ago
usage: faceswap_portrait.py
[-h]
[--save_img SAVE_IMG]
[--tgt_scale TGT_SCALE]
[--world_size WORLD_SIZE]
[--local_rank LOCAL_RANK]
[--dist_on_itp]
[--dist_url DIST_URL]
checkpoint
faceswap_portrait.py: error: unrecognized arguments: --local-rank=0
It is caused by different torch version. You can change the --local_rank
in faceswap_portrait.py into --local-rank
tests/face_swap.sh: line 2: ss: command not found
shuf: write error: Broken pipe
shuf: write error
/opt/conda/envs/DiffSwap/lib/python3.8/site-packages/torch/distributed/launch.py:178: 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(
usage: faceswap_portrait.py [-h] [--save_img SAVE_IMG] [--tgt_scale TGT_SCALE] [--world_size WORLD_SIZE] [--local-rank LOCAL_RANK] [--dist_on_itp] [--dist_url DIST_URL] checkpoint
faceswap_portrait.py: error: unrecognized arguments: --local_rank=0
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 2) local_rank: 0 (pid: 31223) of binary: /opt/conda/envs/DiffSwap/bin/python3
Traceback (most recent call last):
File "/opt/conda/envs/DiffSwap/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/envs/DiffSwap/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/conda/envs/DiffSwap/lib/python3.8/site-packages/torch/distributed/launch.py", line 193, in <module>
main()
File "/opt/conda/envs/DiffSwap/lib/python3.8/site-packages/torch/distributed/launch.py", line 189, in main
launch(args)
File "/opt/conda/envs/DiffSwap/lib/python3.8/site-packages/torch/distributed/launch.py", line 174, in launch
run(args)
File "/opt/conda/envs/DiffSwap/lib/python3.8/site-packages/torch/distributed/run.py", line 715, in run
elastic_launch(
File "/opt/conda/envs/DiffSwap/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 131, in __call__
return launch_agent(self._config, self._entrypoint, list(args))
File "/opt/conda/envs/DiffSwap/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 245, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
tests/faceswap_portrait.py FAILED
------------------------------------------------------------
Failures:
<NO_OTHER_FAILURES>
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
time : 2024-01-08_09:33:36
host : task-20240108094624-45015
rank : 0 (local_rank: 0)
exitcode : 2 (pid: 31223)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================
Traceback (most recent call last):
File "pipeline.py", line 420, in <module>
repair_by_mask()
File "pipeline.py", line 351, in repair_by_mask
gen_type_list = os.listdir(swap_path)
FileNotFoundError: [Errno 2] No such file or directory: 'data/portrait/swap_res'
Hello,author,I changed "--local_rank" to "--local-rank" but it didn't work. Do you know why? Thank you!
Set the default value as 0
Run python
pipeline.py
1 error:After creating swap_res folder - 2 error:
And finally, full log after creating swap_res_repair folder:
I think we need more detailed step-by-step installation instructions or troubleshooting problems with the code. Thank you.