1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
7.1k stars 1.35k forks source link

RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory #360

Closed Razbolt closed 3 months ago

Razbolt commented 3 months ago

Hey, I realized also there is Issue in #351 However I havent seen a solution- at least works for me . I am trying to run the code but keep seeing above error even if I changed ./api.py "depth" into given solution I am still seeing it. Particularly I am under Red Hat Linux system and proxxy as well but it does not working as I expected.

I have attached the error also to make sure it may help to us ! Does anyone encountered the same error ?

Screenshot 2024-07-30 at 16 39 24
Razbolt commented 3 months ago

Hi guys, If oneone encouter this problem I am attaching the steps you need to do over again to make it clear. 1- As #351 stated go to ./face_allingment/api.py and change the line 34 from '2DFAN-4': 'https://www.adrianbulat.com/downloads/python-fan/2DFAN4-cd938726ad.zip', to 'depth': 'https://www.adrianbulat.com/downloads/python-fan/depth_1.6-2aa3f18772.zip',

2- For me since Its downloaded the 2DFAN4-cd938726ad.zip file. I just need to remove it. So if you are under proxxy or using a linux server just make sure to check. So I just followed the following scripts to first check if it is exist and then remove it. Otherwise it will try to access the same depreciated file. 1 - ls -l ~/.cache/torch/hub/checkpoints and rm ~/.cache/torch/hub/checkpoints/2DFAN4-cd938726ad.zip

Have a good day you all