Giter Club home page Giter Club logo

Comments (7)

1adrianb avatar 1adrianb commented on May 24, 2024

@aresgao A hidden folder was added to your home folder (it should be something named .facealignment ). Please emove it and rerun the installation.

from face-alignment.

ZhihuaGao avatar ZhihuaGao commented on May 24, 2024

@1adrianb Eh.......Then I got this......what can i do??

Downloading the face detection CNN. Please wait...
Traceback (most recent call last):
File "test.py", line 4, in
fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, enable_cuda=True, flip_input=False)
File "build/bdist.linux-x86_64/egg/face_alignment/api.py", line 85, in init
Boost.Python.ArgumentError: Python argument types in
cnn_face_detection_model_v1.init(cnn_face_detection_model_v1, str)
did not match C++ signature:
init(_object*, std::string)

from face-alignment.

ZhihuaGao avatar ZhihuaGao commented on May 24, 2024

@1adrianb The python dlib detect loader can not work corroct, what is your python version?I use 2.7,conda.

from face-alignment.

1adrianb avatar 1adrianb commented on May 24, 2024

@aresgao this is most likely a problem between the libboost version from your system and the one used to build dlib. I think there was a similar issue opened on the dlib github page. As an alternative you can run dlib in CPU mode which should work.

from face-alignment.

fauziwei avatar fauziwei commented on May 24, 2024

@1adrianb

I have same issue on windows 10.

Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import face_alignment
face_alignment.version
'0.1.0'
from face_alignment import FaceAlignment, LandmarksType
FACE_ALIGNMENT = FaceAlignment( LandmarksType._2D, enable_cuda=True, flip_input=False )
Traceback (most recent call last):
File "", line 1, in
File "E:\face2face\faceswap\faceswap_other\df\face-alignment\face_alignment\api.py", line 106, in init
map_location=lambda storage,
File "C:\Program Files\Anaconda3\lib\site-packages\torch\serialization.py", line 303, in load
return _load(f, map_location, pickle_module)
File "C:\Program Files\Anaconda3\lib\site-packages\torch\serialization.py", line 476, in _load
deserialized_objects[key]._set_from_file(f, offset, f_is_real_file)
RuntimeError: unexpected EOF. The file might be corrupted.

reinstall torch and face_alignment, still cannot solve it.

from face-alignment.

fauziwei avatar fauziwei commented on May 24, 2024

clean C:\Users\xxx\AppData\Local\face_alignment\data
solved.

from face-alignment.

YakshThakar avatar YakshThakar commented on May 24, 2024

[Solved]Clean cache of your pc
after that also clean path="C:\Users\Admin\AppData\Local\face_alignment"
run script face_alignment.py then wait for downloading Face Alignment Network(FAN)!!
After that it works Fine!! @aresgao

from face-alignment.

Related Issues (20)

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.