diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-15 16:32:24 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-15 16:32:24 +0000 |
commit | bbe0633e231bbebd88b43903953302a6e8882c3a (patch) | |
tree | a6e16dddfc43958156ab16b3866893f8ce122fbf | |
parent | 260ce9157a7d34f7c4882458f03c2e91c216ac8f (diff) |
automatic import of torchvision
-rw-r--r-- | sources | 2 | ||||
-rw-r--r-- | torchvision.spec | 8 | ||||
-rw-r--r-- | tst.patch | 12 |
3 files changed, 4 insertions, 18 deletions
@@ -1 +1 @@ -a0e7f9cc2aa638576fd8088813377294 v0.16.2.tar.gz +73e4905cd63ecc614fc6abf2d0a1d171 v0.17.2.tar.gz diff --git a/torchvision.spec b/torchvision.spec index 99a6a01..156a15b 100644 --- a/torchvision.spec +++ b/torchvision.spec @@ -1,13 +1,12 @@ Summary: The torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision. Name: torchvision -Version: 0.16.2 +Version: 0.17.2 Release: 1 License: BSD Group: Development/Libraries -Source0: https://github.com/pytorch/vision/archive/refs/tags/v0.16.2.tar.gz +Source0: https://github.com/pytorch/vision/archive/refs/tags/v0.17.2.tar.gz URL: https://github.com/pytorch/vision BuildRoot: %{_tmppath}/%{name}-buildroot -Patch0: tst.patch Requires: python3-pytorch Requires: python3-numpy @@ -45,11 +44,10 @@ Torchvision is a PyTorch add-on that provides access to: - Models (ResNet, VGG, etc.) - Transforms (for image preprocessing) -%global pypi_version 0.16.2 +%global pypi_version 0.17.2 %prep %autosetup -p1 -n vision-%{pypi_version} -%patch -P 0 -p1 %build %pyproject_build diff --git a/tst.patch b/tst.patch deleted file mode 100644 index e4136dc..0000000 --- a/tst.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/setup.py b/setup.py -index ce67413..6b376c2 100644 ---- a/setup.py -+++ b/setup.py -@@ -64,7 +64,7 @@ requirements = [ - ] - - # Excluding 8.3.* because of https://github.com/pytorch/vision/issues/4934 --pillow_ver = " >= 5.3.0, !=8.3.*" -+pillow_ver = " >= 5.3.0, !=8.3.0, !=8.3.1, !=8.3.2" - pillow_req = "pillow-simd" if get_dist("pillow-simd") is not None else "pillow" - requirements.append(pillow_req + pillow_ver)
\ No newline at end of file |