Coder Social home page Coder Social logo

tuxiaokang / pyseeta Goto Github PK

View Code? Open in Web Editor NEW
89.0 8.0 21.0 1.71 MB

python api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git)

License: MIT License

Python 100.00%
seetafaceengine python-api face-detection face-recognition face-alignment

pyseeta's Issues

Does this repo support SeetaFace2?

I read that SeetaFaceEngine2 has been release. So I want to know whether this repo support it, and the difference between two version of SeetaFaceEngine?

connection error while downloading seeta_fd_frontal_v1.0-c4619d06.bin

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>

Failed to map segment from shared object

Hi,
I'm trying to install the python package with
sudo python setup.py install

I created directory Release and run
cd Release
cmake ..
make

the files created in the folder are
selection_009

when i run
sudo python setup.py install
in appropriate directory
I got the following error
image

please help

RuntimeError: SeetaFaceEngine detector dynamic library libseeta_fd_lib.so can't find

First, thank you for your work!

I followed the setup steps for installation and everything works fine. When I change to example directory and run
python test_opencv.py
it throws RuntimeError.

Traceback (most recent call last):
File "test_opencv.py", line 25, in
from pyseeta import Detector
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/home/zijing/.local/share/virtualenvs/seetaface-cRn5R2_H/lib/python3.5/site-packages/pyseeta-0.4-py3.5.egg/pyseeta/init.py", line 4, in
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/home/zijing/.local/share/virtualenvs/seetaface-cRn5R2_H/lib/python3.5/site-packages/pyseeta-0.4-py3.5.egg/pyseeta/detector.py", line 36, in
File "/home/zijing/.local/share/virtualenvs/seetaface-cRn5R2_H/lib/python3.5/site-packages/pyseeta-0.4-py3.5.egg/pyseeta/config.py", line 49, in get_detector_library
File "/home/zijing/.local/share/virtualenvs/seetaface-cRn5R2_H/lib/python3.5/site-packages/pyseeta-0.4-py3.5.egg/pyseeta/config.py", line 46, in get_library_raise
RuntimeError: SeetaFaceEngine detector dynamic library libseeta_fd_lib.so can't find

I am thinking if it has to do with new setup step needed with release v0.4.0. Could you help me on this? Thank you!

data convert error

I am new to python.
when i ran your test.py . i got this error. any help will be pleasure, tks!

pyseeta/pyseeta/detector.py", line 77, in detect
byte_data = (c_ubyte * image.size)(*image.tobytes())
TypeError: an integer is required

numpy version is 1.12.1
OS is : ubuntu 14.04

155

2221223### ### ### ###

__

``

OSError: [WinError 193] %1 is not a valid Win32 application

When i run python setup.py install

the output will be

Traceback (most recent call last): File "setup.py", line 3, in <module> from pyseeta import config File "C:\thesis\pyseeta\__init__.py", line 4, in <module> from pyseeta.detector import Detector File "C:\thesis\pyseeta\detector.py", line 38, in <module> detect_lib = cdll.LoadLibrary(lib_path) File "C:\Users\user-pc\AppData\Local\Programs\Python\Python36\lib\ctypes\__init__.py", line 426, in LoadLibrary return self._dlltype(name) File "C:\Users\user-pc\AppData\Local\Programs\Python\Python36\lib\ctypes\__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application

i've opened the detector.py and i found that the lib_path value is seeta_fd_lib . Therefore, my hypothesis is seeta_fd_lib is not a valid Win32 application according to the error.

I have installed from seetaface itself or downloaded the pre-trained mode. But the result always OSError: [WinError 193] %1 is not a valid Win32 application

Can you help me solving this problem? Thank you!

Cannot download model file

It seems like I cannot run the test successfully because of the failure of downloading model files.
Downloading: "http://198.13.45.221/files/seeta_fd_frontal_v1.0-c4619d06.bin" to /home/hwan7885/.pyseeta/models/seeta_fd_frontal_v1.0-c4619d06.bin
ConnectionResetError: [Errno 104] Connection reset by peer

Maybe you can change the MODEL_URL to the model files in the origin repo directly.

about model

hello, i run your code,but the the accurate is bad, i use the model you provided,and need i train it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.