mirror of
https://github.com/gbtb/nix-stable-diffusion.git
synced 2024-11-05 04:55:20 +03:00
41 lines
973 B
Nix
41 lines
973 B
Nix
|
# WARNING: This file was automatically generated. You should avoid editing it.
|
||
|
# If you run pynixify again, the file will be either overwritten or
|
||
|
# deleted, and you will lose the changes you made to it.
|
||
|
|
||
|
{ basicsr, buildPythonPackage, cython, facexlib, fetchPypi, gfpgan, lib, numpy
|
||
|
, opencv-python, pillow, torch, torchvision, tqdm }:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "realesrgan";
|
||
|
version = "0.3.0";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "0zpcri2pf33jmy64zvl2rj08zc6zrh1gb4bfc1qp0i4zmfbdldhd";
|
||
|
};
|
||
|
|
||
|
patches = [ ./root_dir.patch ];
|
||
|
|
||
|
buildInputs = [ cython numpy ];
|
||
|
propagatedBuildInputs = [
|
||
|
basicsr
|
||
|
facexlib
|
||
|
gfpgan
|
||
|
numpy
|
||
|
opencv-python
|
||
|
pillow
|
||
|
torch
|
||
|
torchvision
|
||
|
tqdm
|
||
|
];
|
||
|
|
||
|
# TODO FIXME
|
||
|
doCheck = false;
|
||
|
|
||
|
meta = with lib; {
|
||
|
description =
|
||
|
"Real-ESRGAN aims at developing Practical Algorithms for General Image Restoration";
|
||
|
homepage = "https://github.com/xinntao/Real-ESRGAN";
|
||
|
};
|
||
|
}
|