python3Packages.coqui-trainer: init at 0.0.4
This commit is contained in:
parent
1a0b804799
commit
d96183955b
2 changed files with 60 additions and 0 deletions
58
pkgs/development/python-modules/coqui-trainer/default.nix
Normal file
58
pkgs/development/python-modules/coqui-trainer/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
, coqpit
|
||||
, fsspec
|
||||
, pytorch-bin
|
||||
|
||||
, pytestCheckHook
|
||||
, soundfile
|
||||
, tensorboardx
|
||||
, torchvision
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "coqui-trainer";
|
||||
version = "0.0.4";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coqui-ai";
|
||||
repo = "Trainer";
|
||||
# https://github.com/coqui-ai/Trainer/issues/4
|
||||
rev = "776eba829231543d3207927fc69b321d121e527c";
|
||||
hash = "sha256-ICveftJjBNsCgegTmd/ewd/Y6XGMg7YOvchx640RFPI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
coqpit
|
||||
fsspec
|
||||
pytorch-bin
|
||||
soundfile
|
||||
tensorboardx
|
||||
];
|
||||
|
||||
# tests are failing; tests require the clearml library
|
||||
# https://github.com/coqui-ai/Trainer/issues/5
|
||||
doCheck = false;
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
torchvision
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"trainer"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A general purpose model trainer, as flexible as it gets";
|
||||
homepage = "https://github.com/coqui-ai/Trainer";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.tts.members;
|
||||
};
|
||||
}
|
|
@ -1519,6 +1519,8 @@ in {
|
|||
|
||||
coqpit = callPackage ../development/python-modules/coqpit { };
|
||||
|
||||
coqui-trainer = callPackage ../development/python-modules/coqui-trainer {};
|
||||
|
||||
cepa = callPackage ../development/python-modules/cepa { };
|
||||
|
||||
cerberus = callPackage ../development/python-modules/cerberus { };
|
||||
|
|
Loading…
Reference in a new issue