python3Packages.clip: init at unstable-2022-11-17

This commit is contained in:
Samuel Ainsworth 2022-11-17 18:12:13 -08:00 committed by Jonathan Ringer
parent ef5ded2009
commit 03e7eabb58
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ buildPythonPackage
, fetchFromGitHub
, ftfy
, lib
, regex
, torch
, torchvision
, tqdm
}:
buildPythonPackage rec {
pname = "clip";
version = "unstable-2022-11-17";
format = "setuptools";
src = fetchFromGitHub {
owner = "openai";
repo = pname;
rev = "d50d76daa670286dd6cacf3bcd80b5e4823fc8e1";
hash = "sha256-GAitNBb5CzFVv2+Dky0VqSdrFIpKKtoAoyqeLoDaHO4=";
};
propagatedBuildInputs = [
ftfy
regex
torch
torchvision
tqdm
];
pythonImportsCheck = [ "clip" ];
meta = with lib; {
description = "Contrastive Language-Image Pretraining";
homepage = "https://github.com/openai/CLIP";
license = licenses.mit;
maintainers = with maintainers; [ samuela ];
};
}

View file

@ -1738,6 +1738,8 @@ self: super: with self; {
clf = callPackage ../development/python-modules/clf { };
clip = callPackage ../development/python-modules/clip { };
cock = callPackage ../development/python-modules/cock { };
click = callPackage ../development/python-modules/click { };