unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 59607@debbugs.gnu.org
Subject: [bug#59607] [PATCH 0/8] Upscale your anime pictures, now with 99% less malware
Date: Sat, 26 Nov 2022 12:47:05 +0100	[thread overview]
Message-ID: <a9bdd1f5c70f0879615809184653358d7f07def3.camel@gmail.com> (raw)

Hi Guix,

A certain post on This Week in GNOME [1] particular mentioning [2] got
me curious as to what Tencent is up to with their machine learning
stuff.
As it turns out, ncnn is a rather powerful platform that allows running
neural networks on your GPU via Vulkan.  That's right, Vulkan, none of
that CUDA bs.  Sadly, the training part appears to still be done using
good ol' pytorch, so I packaged the python variant as well.  To convert
models from one to the other, you do have to jump through some hoops
via onnx, but ncnn comes with a tool that translates from onnx' format
to theirs, so it should hopefully also be useful in other applications.

In order to keep the Guix package clean, I removed "everything" that
depends on CUDA and also dropped (some/most? of) the bits that download
pretrained models over the aether.  However, I only performed
non-automatic tests with a pretrained model for real-esrgan-ncnn, so
take this with a grain of salt.

Anyway, I hope you have some good, freedom-respecting time with this.

Cheers

[1] https://thisweek.gnome.org/posts/2022/11/twig-70/
[2] https://gitlab.com/TheEvilSkeleton/Upscaler

Liliana Marie Prikler (8):
  gnu: Add ncnn.
  gnu: Add real-esrgan-ncnn.
  gnu: Add python-addict.
  gnu: Add python-basicsr.
  gnu: Add python-filterpy.
  gnu: Add python-facexlib.
  gnu: Add python-gfpgan.
  gnu: Add python-real-esrgan.

 gnu/local.mk                                  |    2 +
 gnu/packages/machine-learning.scm             |  318 ++
 .../patches/python-basicsr-fuck-nvidia.patch  | 3233 +++++++++++++++++
 .../python-gfpgan-unfuse-leaky-relu.patch     |   57 +
 ...real-resgan-ncnn-simplify-model-path.patch |  195 +
 gnu/packages/python-science.scm               |   50 +
 gnu/packages/python-xyz.scm                   |   18 +
 7 files changed, 3873 insertions(+)
 create mode 100644 gnu/packages/patches/python-basicsr-fuck-nvidia.patch
 create mode 100644 gnu/packages/patches/python-gfpgan-unfuse-leaky-relu.patch
 create mode 100644 gnu/packages/patches/real-resgan-ncnn-simplify-model-path.patch


base-commit: 7e0ad0dd0f2829d6f3776648ba7c88acf9888d7a
-- 
2.38.1





             reply	other threads:[~2022-11-26 12:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-26 11:47 Liliana Marie Prikler [this message]
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 ` [bug#59607] [PATCH 6/8] gnu: Add python-facexlib Liliana Marie Prikler
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=a9bdd1f5c70f0879615809184653358d7f07def3.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).