Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection error while downloading seeta_fd_frontal_v1.0-c4619d06.bin #11

Closed
vijayendra-g opened this issue May 18, 2018 · 3 comments
Closed

Comments

@vijayendra-g
Copy link

I was successfully able to install pyseeta [ steps 1-4].
but getting the following error. Looks like it is connection error while downloading seeta_fd_frontal_v1.0-c4619d06.bin.

is there a work around. I am using ubuntu vm on amzon.

$ python test_opencv.py or test_pillow.py
test detector:
Downloading: "http://198.13.45.221/files/seeta_fd_frontal_v1.0-c4619d06.bin" to /root/.pyseeta/models/seeta_fd_frontal_v1.0-c4619d06.bin
Traceback (most recent call last):
File "//anaconda3/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "//anaconda3/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "//anaconda3/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "//anaconda3/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "//anaconda3/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "//anaconda3/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "//anaconda3/lib/python3.6/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "//anaconda3/lib/python3.6/socket.py", line 722, in create_connection
raise err
File "//anaconda3/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test_opencv.py", line 117, in
test_detector()
File "test_opencv.py", line 38, in test_detector
detector = Detector()
File "//anaconda3/lib/python3.6/site-packages/pyseeta-0.4-py3.6.egg/pyseeta/detector.py", line 67, in init
model_path = load_url(MODEL_URL)
File "//anaconda3/lib/python3.6/site-packages/pyseeta-0.4-py3.6.egg/pyseeta/model_zoo.py", line 74, in load_url
_download_url_to_file(url, cached_file, hash_prefix)
File "//anaconda3/lib/python3.6/site-packages/pyseeta-0.4-py3.6.egg/pyseeta/model_zoo.py", line 80, in _download_url_to_file
u = urlopen(url)
File "//anaconda3/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "//anaconda3/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "//anaconda3/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "//anaconda3/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "//anaconda3/lib/python3.6/urllib/request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "//anaconda3/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>

@TuXiaokang
Copy link
Owner

The reason is the web server was down. Now, it has been restarted.

@HandsLing
Copy link

@vijayendra-g do you download this file? can you share it to me? thx a lot

@TuXiaokang
Copy link
Owner

TuXiaokang commented Oct 21, 2019

Sorry, the server has gone out of use. You can download the model files from original repo ( https://github.com/seetaface/SeetaFaceEngine/tree/master/FaceDetection) and rename it,
then put it into ~/.pyseeta/models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants