1adrianb / face-alignment

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

python code issue on setup and demo #281

Open LinusLGL opened 2 years ago

LinusLGL commented 2 years ago

Hi, There is an issue that i am facing while running the python code.

erro2 error1
1adrianb commented 2 years ago

@LinusLGL It looks like something was not installed correctly or the package is at on older version. The first error implies that the package installation failed. Install it by running python setup.py install or pip install face-alignment (use the upgrade flag if appropriate).

1adrianb commented 2 years ago

To followup on this, the class does contain that argument (see https://github.com/1adrianb/face-alignment/blob/c49ca6fef8ffa95a0ac7ce698e0b752ac91f6d42/face_alignment/api.py#L53). Please make sure you are using the latest version (1.3.4). You can check this using face_alignment.__version__

1adrianb commented 2 years ago

@LinusLGL pip install face-alignment -U

LinusLGL commented 2 years ago

Manage to resolve that issue thanks.

But, where can I find an example of this in the file?

And is the image size fixed or can i use a different image resolution?

find

1adrianb commented 2 years ago

The resolutions is not fixed. The code will automatically detect the faces and pre-process the images as needed. The larger the images - the more time it will take thought.

The example provided however runs for a single image and then plots the points on top. You can modify the example code to produce results similar with the ones shown.