py-segmentation-models-pytorch: add new package (#25022)

This commit is contained in:
Adam J. Stewart 2021-07-21 15:14:41 -05:00 committed by GitHub
parent dfc0aa86ee
commit 497dfee320
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,22 @@
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PySegmentationModelsPytorch(PythonPackage):
"""Python library with Neural Networks for Image Segmentation based on PyTorch."""
homepage = "https://github.com/qubvel/segmentation_models.pytorch"
pypi = "segmentation_models_pytorch/segmentation_models_pytorch-0.2.0.tar.gz"
version('0.2.0', sha256='247266722c23feeef16b0862456c5ce815e5f0a77f95c2cd624a71bf00d955df')
depends_on('python@3:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-torchvision@0.5.0:', type=('build', 'run'))
depends_on('py-pretrainedmodels@0.7.4', type=('build', 'run'))
depends_on('py-efficientnet-pytorch@0.6.3', type=('build', 'run'))
depends_on('py-timm@0.4.12', type=('build', 'run'))