insightface icon indicating copy to clipboard operation
insightface copied to clipboard

Unable to get http://storage.insightface.ai/files/models/buffalo_l.zip

Open sanidhyaagrawal opened this issue 3 years ago • 15 comments

I think http://storage.insightface.ai is down, are there any alternative links for the model from which I can download the model and set it in /root/.insightface/models/ manually?

Code:

from insightface.app import FaceAnalysis
app = FaceAnalysis()

Output:

download_path: /root/.insightface/models/buffalo_l
Downloading /root/.insightface/models/buffalo_l.zip from http://storage.insightface.ai/files/models/buffalo_l.zip...
---------------------------------------------------------------------------
TimeoutError                              Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/urllib3/connection.py in _new_conn(self)
    158             conn = connection.create_connection(
--> 159                 (self._dns_host, self.port), self.timeout, **extra_kw)
    160 

23 frames
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

NewConnectionError                        Traceback (most recent call last)
NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc7b71ce910>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

MaxRetryError                             Traceback (most recent call last)
MaxRetryError: HTTPConnectionPool(host='storage.insightface.ai', port=80): Max retries exceeded with url: /files/models/buffalo_l.zip (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc7b71ce910>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

ConnectionError                           Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
    514                 raise SSLError(e, request=request)
    515 
--> 516             raise ConnectionError(e, request=request)
    517 
    518         except ClosedPoolError as e:

ConnectionError: HTTPConnectionPool(host='storage.insightface.ai', port=80): Max retries exceeded with url: /files/models/buffalo_l.zip (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc7b71ce910>: Failed to establish a new connection: [Errno 110] Connection timed out'))

sanidhyaagrawal avatar Jan 27 '22 11:01 sanidhyaagrawal

bad news, I will check the url soon

nttstar avatar Jan 27 '22 11:01 nttstar

The file server donated by my friend is down. We will try to find an alternative server, but not sure. Before that, we will upload the model files to google driver and baidu driver, please wait.

nttstar avatar Jan 27 '22 14:01 nttstar

Thank you @nttstar for the great work! I've built a project using this this library and I need it to present it in a couple of days, it would be great if you can share the link! Thank you a lot!

sanidhyaagrawal avatar Jan 27 '22 15:01 sanidhyaagrawal

Buffalo_l consists of scrfd_10g_bnkps detection and w600k_r50 recognition models. You can get both models from Google drive links located at my repo

w600k_r50 model is the same as in package, scrfd_10g_bnkps is a bit different - it is converted from original PTH file, but with a bit different configs, though it's fully compatible with latest version of original package.

P.S. though I'm not sure if I have compatible gender/age model and additional alignment model.

SthPhoenix avatar Jan 27 '22 17:01 SthPhoenix

How about http://storage.insightface.ai/files/models/antelopev2.zip ? I any location I can get that from?

gregordr avatar Jan 27 '22 20:01 gregordr

@sanidhyaagrawal @gregordr Hi please download the following manual model packages and unzip them under ~/.insightface/models/ buffalo_l: https://drive.google.com/file/d/1qXsQJ8ZT42_xSmWIYy85IcidpiZudOCB/view?usp=sharing buffalo_m: https://drive.google.com/file/d/1net68yNxF33NNV6WP7k56FS6V53tq-64/view?usp=sharing buffalo_s: https://drive.google.com/file/d/1pKIusApEfoHKDjeBTXYB3yOQ0EtTonNE/view?usp=sharing buffalo_sc: https://drive.google.com/file/d/19I-MZdctYKmVf3nu5Da3HS6KH5LBfdzG/view?usp=sharing antelopev2: https://drive.google.com/file/d/18wEUfMNohBJ4K3Ly5wpTejPfDzp-8fI8/view?usp=sharing

nttstar avatar Jan 28 '22 04:01 nttstar

Hi, thank you very much.

sanazkhalili avatar Jan 28 '22 08:01 sanazkhalili

@sanazkhalili pip 0.6 is updated which supports model downloading again, you may check.

nttstar avatar Jan 29 '22 12:01 nttstar

@nttstar Yes. It is work now. Thanks.

sanazkhalili avatar Jan 29 '22 14:01 sanazkhalili

@nttstar Can you upload the person detection files scrfd_person_2.5g.onnx too?

acakici2020 avatar Jan 29 '22 16:01 acakici2020

@acakici2020 Done, please update to ver 0.6.2.

nttstar avatar Jan 29 '22 16:01 nttstar

HI, trying to download the file using to colab but it's not working Google Drive just sends html files saying it can't virus scan the file and do I really want to download it. Using the download link in that file just gives me the same.

EDIT: Had to use down to get it ! gdown 18wEUfMNohBJ4K3Ly5wpTejPfDzp-8fI8 in the end

And it this day and age you really shouldn't but asking people to download random files of Google drive in formats that can contain executable code.

Vargol avatar Jan 28 '24 13:01 Vargol

@nttstar

InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from ./models/antelopev2/glintr100.onnx failed:Protobuf parsing failed.

Can you help ? I downloaded from the drive you shared and thank you for that... but i am working on google colab and uploaded the downloaded models and it didnt work ...

nischalmudennavar avatar Jan 30 '24 06:01 nischalmudennavar

嗨,请下载以下手动模型包,并在buffalo_l下解压: https://drive.google.com/file/d/1qXsQJ8ZT42_xSmWIYy85IcidpiZudOCB/view?usp=sharing buffalo_m: https://drive.google.com/file/d/1net68yNxF33NNV6WP7k56FS6V53tq-64/view?usp=sharing buffalo_s: https://drive.google.com/file/d/1pKIusApEfoHKDjeBTXYB3yOQ0EtTonNE/view?usp=sharing buffalo_sc: https://drive.google.com/file/d/19I-MZdctYKmVf3nu5Da3HS6KH5LBfdzG/view?usp=sharing 羚羊2:https://drive.google.com/file/d/18wEUfMNohBJ4K3Ly5wpTejPfDzp-8fI8/view?usp=sharing~/.insightface/models/

我已经下载好了,也上传国内的网盘,有需要的自己下载: 链接:https://pan.quark.cn/s/ddcd385cd661 提取码:cgDt

k53247l2 avatar Feb 02 '24 07:02 k53247l2

it works,thanks very much

qwert1887 avatar Mar 11 '24 09:03 qwert1887