-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Hi, great work ! I have problems installing the sr_model. I get several errors while trying to download it and only have a pth file at the end. Here are the errors
download_sr.sh: line 1: cd: data: No such file or directory
--2023-08-01 14:11:12-- https://github.com/Meta-Portrait/MetaPortrait/releases/download/v0.0.1/HDTF_warprefine.zip
Resolving github.com (github.com)... 140.82.113.3
Connecting to github.com (github.com)|140.82.113.3|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-08-01 14:11:13 ERROR 404: Not Found.
unzip: cannot find or open HDTF_warprefine, HDTF_warprefine.zip or HDTF_warprefine.ZIP.
download_sr.sh: line 5: cd: ../pretrained_ckpt: No such file or directory
--2023-08-01 14:11:13-- https://github.com/Meta-Portrait/MetaPortrait/releases/download/v0.0.1/temporal_gfpgan.pth
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/578117887/b58eebfd-0254-4f0e-be09-5c298ffc2e96?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230801%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230801T141113Z&X-Amz-Expires=300&X-Amz-Signature=f0de8c700119c9f07f5ce2227e6d92bca351a4535619bdeb868526ab2749a7f6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=578117887&response-content-disposition=attachment%3B%20filename%3Dtemporal_gfpgan.pth&response-content-type=application%2Foctet-stream [following]
--2023-08-01 14:11:13-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/578117887/b58eebfd-0254-4f0e-be09-5c298ffc2e96?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230801%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230801T141113Z&X-Amz-Expires=300&X-Amz-Signature=f0de8c700119c9f07f5ce2227e6d92bca351a4535619bdeb868526ab2749a7f6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=578117887&response-content-disposition=attachment%3B%20filename%3Dtemporal_gfpgan.pth&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1243357869 (1.2G) [application/octet-stream]
Saving to: ‘temporal_gfpgan.pth.3’
temporal_gfpgan.pth 100%[===================>] 1.16G 75.3MB/s in 9.0s
2023-08-01 14:11:22 (132 MB/s) - ‘temporal_gfpgan.pth.3’ saved [1243357869/1243357869]
unzip: cannot find or open temporal_gfpgan, temporal_gfpgan.zip or temporal_gfpgan.ZIP.
Plus, the folders tree is different thant what is written on github. I have no pretrained_ckpt folder or data folder. Even if I create them, the following error occurs and is still a problem to run inference. I give the logs but to sum up the problem is there is no folder lpips :
/usr/local/lib/python3.10/dist-packages/torch/distributed/launch.py:181: 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-rankargument to be set, please
change it to read fromos.environ['LOCAL_RANK']instead. See
https://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions
warnings.warn(
/usr/local/lib/python3.10/dist-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be removed in 0.17. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
warnings.warn(
Traceback (most recent call last):
File "/content/MetaPortrait/sr_model/Experimental_root/test.py", line 6, in
import Experimental_root.archs
File "/content/MetaPortrait/sr_model/Experimental_root/init.py", line 3, in
from .metrics import *
File "/content/MetaPortrait/sr_model/Experimental_root/metrics/init.py", line 1, in
from .lpips import calculate_lpips
File "/content/MetaPortrait/sr_model/Experimental_root/metrics/lpips.py", line 1, in
import lpips
ModuleNotFoundError: No module named 'lpips'
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 5206) of binary: /usr/bin/python3
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launch.py", line 196, in
main()
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launch.py", line 192, in main
launch(args)
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launch.py", line 177, in launch
run(args)
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/run.py", line 785, in run
elastic_launch(
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launcher/api.py", line 134, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
Experimental_root/test.py FAILED
Failures:
<NO_OTHER_FAILURES>
Root Cause (first observed failure):
[0]:
time : 2023-08-01_14:03:40
host : 5c248a434a40
rank : 0 (local_rank: 0)
exitcode : 1 (pid: 5206)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================
Thanks a lot for your help
Geoffrey