From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 59607@debbugs.gnu.org
Subject: [bug#59607] [PATCH 6/8] gnu: Add python-facexlib.
Date: Fri, 25 Nov 2022 23:31:24 +0100 [thread overview]
Message-ID: <237e70d8b319a981b9b992e4d7577aca8a1e988f.camel@gmail.com> (raw)
In-Reply-To: <a9bdd1f5c70f0879615809184653358d7f07def3.camel@gmail.com>
* gnu/packages/machine-learning.scm (python-facexlib): New variable.
---
gnu/packages/machine-learning.scm | 43 +++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index a5767a2c31..6116834578 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -816,6 +816,49 @@ (define-public python-basicsr
artifacts.")
(license license:asl2.0)))
+(define-public python-facexlib
+ (package
+ (name "python-facexlib")
+ (version "0.2.5")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "facexlib" version))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin (substitute* (find-files "." "\\.py$")
+ (("\\.cuda\\(\\)") "")
+ (("'cuda' if .* else ") "")
+ (("'cuda'") "'cpu'"))))
+ (sha256
+ (base32
+ "1r378mb167k2hynrn1wsi78xbh2aw6x68i8f70nmcqsxxp20rqii"))))
+ (build-system python-build-system)
+ (arguments
+ (list #:tests? #f ; No tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-requirements
+ (lambda _
+ (substitute* "requirements.txt"
+ (("opencv-python") ""))))))) ; installed without egg-info
+ (propagated-inputs (list opencv
+ python-filterpy
+ python-numba
+ python-numpy
+ python-pillow
+ python-scipy
+ python-pytorch
+ python-torchvision
+ python-tqdm))
+ (native-inputs (list python-cython))
+ (home-page "https://github.com/xinntao/facexlib")
+ (synopsis "Basic face library")
+ (description "This package provides a collection of face-related
+functions, such as detection, alignment, recognition or tracking.")
+ (license (list license:gpl3+
+ license:asl2.0
+ license:expat))))
+
(define-public ncnn
(package
(name "ncnn")
--
2.38.1
next prev parent reply other threads:[~2022-11-26 12:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-26 11:47 [bug#59607] [PATCH 0/8] Upscale your anime pictures, now with 99% less malware Liliana Marie Prikler
2022-11-19 23:14 ` [bug#59607] [PATCH 1/8] gnu: Add ncnn Liliana Marie Prikler
2022-11-20 1:16 ` [bug#59607] [PATCH 2/8] gnu: Add real-esrgan-ncnn Liliana Marie Prikler
2022-11-20 9:10 ` [bug#59607] [PATCH 3/8] gnu: Add python-addict Liliana Marie Prikler
2022-11-20 16:25 ` [bug#59607] [PATCH 4/8] gnu: Add python-basicsr Liliana Marie Prikler
2022-11-22 20:55 ` [bug#59607] [PATCH 8/8] gnu: Add python-real-esrgan Liliana Marie Prikler
2022-11-25 20:37 ` [bug#59607] [PATCH 5/8] gnu: Add python-filterpy Liliana Marie Prikler
2022-11-25 22:31 ` Liliana Marie Prikler [this message]
2022-11-26 10:46 ` [bug#59607] [PATCH 7/8] gnu: Add python-gfpgan Liliana Marie Prikler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=237e70d8b319a981b9b992e4d7577aca8a1e988f.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=59607@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).