working on making stable-diffusion-webui work

This commit is contained in:
Rolf Verschuuren 2022-10-20 15:21:36 +02:00 committed by gbtb
parent fee56542ad
commit 4f0c355379
4 changed files with 39 additions and 13 deletions

3
.gitmodules vendored
View File

@ -2,3 +2,6 @@
path = InvokeAI
url = https://github.com/invoke-ai/InvokeAI
branch = main
[submodule "stable-diffusion-webui"]
path = stable-diffusion-webui
url = git@github.com:AUTOMATIC1111/stable-diffusion-webui.git

View File

@ -19,6 +19,16 @@
torchvision
numpy
addict
future
lmdb
pyyaml
scikitimage
tqdm
yapf
gdown
lpips
albumentations
opencv4
pudb
@ -86,6 +96,7 @@
realesrgan = rmCallPackage ./packages/realesrgan { opencv-python = self.opencv4; };
filterpy = callPackage ./packages/filterpy { };
kornia = callPackage ./packages/kornia { };
lpips = callPackage ./packages/lpips { };
torch-fidelity = callPackage ./packages/torch-fidelity { };
resize-right = callPackage ./packages/resize-right { };
torchdiffeq = callPackage ./packages/torchdiffeq { };
@ -130,19 +141,7 @@
let
nixpkgs_ = import inputs.nixpkgs {
inherit system;
overlays = [
(final: prev: {
python3 = prev.python3.override {
packageOverrides =
python-self: python-super:
(overlay_default prev python-super) //
(overlay_pynixify python-self);
};
})
];
};
nixpkgs_amd = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true; #both CUDA and MKL are unfree
overlays = [
(final: prev: {
python3 = prev.python3.override {

View File

@ -0,0 +1,23 @@
# 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.
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
pname = "lpips";
version = "0.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "0afxbg5scrlydqkm1cwlnlb0mffrzl785gn4wxrw9xnpqmn130fl";
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "Perceptual Similarity Metric and Dataset";
homepage = "https://richzhang.github.io/PerceptualSimilarity/";
};
}

@ -0,0 +1 @@
Subproject commit 7f8ab1ee8f304031b3404e25761dd0f4c7be7df8