Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Timozen committed Sep 27, 2023
1 parent 2630231 commit ccaa4a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
28 changes: 6 additions & 22 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[metadata]
name = face-projection
description = Add a short description here!
description = This projects main goal is to have a simple library to project information into faces while retaining the facial structure.
author = Tim Büchner
author_email = [email protected]
license = MIT
Expand All @@ -15,21 +15,16 @@ long_description_content_type = text/markdown; charset=UTF-8; variant=GFM
url = https://github.com/pyscaffold/pyscaffold/
# Add here related links, for example:
project_urls =
Documentation = https://pyscaffold.org/
# Source = https://github.com/pyscaffold/pyscaffold/
# Changelog = https://pyscaffold.org/en/latest/changelog.html
# Tracker = https://github.com/pyscaffold/pyscaffold/issues
# Conda-Forge = https://anaconda.org/conda-forge/pyscaffold
# Download = https://pypi.org/project/PyScaffold/#files
# Twitter = https://twitter.com/PyScaffold
Source = https://github.com/cvjena/face-projection
Tracker = https://github.com/cvjena/face-projection/issues

# Change if running only on Windows, Mac or Linux (comma-separated)
platforms = any

# Add here all kinds of additional classifiers as defined under
# https://pypi.org/classifiers/
classifiers =
Development Status :: 4 - Beta
Development Status :: 5 - Production/Stable
Programming Language :: Python


Expand All @@ -51,8 +46,8 @@ install_requires =
numpy
meshpy
opencv-python-headless
mediapipe; platform_system != "Darwin" or platform.machine != "arm64"
mediapipe-silicon; platform_system == "Darwin" and platform.machine == "arm64"
mediapipe==0.9.3.0; platform_system != "Darwin" or platform.machine != "arm64"
mediapipe-silicon==0.9.2.1; platform_system == "Darwin" and platform.machine == "arm64"

[options.packages.find]
where = src
Expand All @@ -70,17 +65,6 @@ testing =
pytest
pytest-cov

[options.entry_points]
# Add here console scripts like:
# console_scripts =
# script_name = face_projection.module:function
# For example:
# console_scripts =
# fibonacci = face_projection.skeleton:run
# And any other entry points, for example:
# pyscaffold.cli =
# awesome = pyscaffoldext.awesome.extension:AwesomeExtension

[tool:pytest]
# Specify command line options as you would do when invoking pytest directly.
# e.g. --cov-report html (or xml) for html/xml output or --junitxml junit.xml
Expand Down
2 changes: 1 addition & 1 deletion src/face_projection/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def apply(
raise TypeError("beta must be a float between 0 and 1")

if not self.face_model.check_valid(img_data):
raise ValueError(f"img_dat is not valid for the face model, expected shape: [{self.face_model.height, self.face_model.width, 3}]")
raise ValueError(f"img_dat is not valid for the face model, expected shape: [{self.face_model.height, self.face_model.width, 3}], got: {img_data.shape}")

if lms_face is None:
self.get_landmarks(img_face)
Expand Down

0 comments on commit ccaa4a1

Please sign in to comment.