blob: b4ba5e8dcc302135d8ea28d7ee5b8f7df17a27ee (
plain)
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
|
{
buildPythonPackage,
fetchFromGitHub,
ftfy,
lib,
regex,
torch,
torchvision,
tqdm,
}:
buildPythonPackage {
pname = "clip";
version = "unstable-2022-11-17";
format = "setuptools";
src = fetchFromGitHub {
owner = "openai";
repo = "clip";
rev = "d50d76daa670286dd6cacf3bcd80b5e4823fc8e1";
hash = "sha256-GAitNBb5CzFVv2+Dky0VqSdrFIpKKtoAoyqeLoDaHO4=";
};
propagatedBuildInputs = [
ftfy
regex
torch
torchvision
tqdm
];
pythonImportsCheck = [ "clip" ];
meta = {
description = "Contrastive Language-Image Pretraining";
homepage = "https://github.com/openai/CLIP";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ samuela ];
};
}
|