forked from ozcelikfu/brain-diffuser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
50 lines (50 loc) · 1.14 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
description = "Brain-Diffuser";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { ... } @ flakeInputs: let
flakeOutputs = flakeInputs.self.outputs;
system = "x86_64-linux";
pkgs = flakeInputs.nixpkgs.legacyPackages.${system};
in {
devShells.${system} = {
nixpkgs = pkgs.mkShell {
name = "brain-diffuser";
packages = with pkgs; [
(python3.withPackages (ps: with ps; [
clip
easydict
einops
fsspec
gradio
h5py
huggingface-hub
imageio
matplotlib
mpi4py
nibabel
numpy
omegaconf
open-clip-torch
opencv4
pillow
pyyaml
scikit-image
scikit-learn
scipy
tensorboard
tensorboardx
torch
torchmetrics
torchvision
tqdm
transformers
webdataset
]))
];
};
default = flakeOutputs.devShells.${system}.nixpkgs;
};
};
}