summaryrefslogtreecommitdiff
path: root/torchvision.spec
blob: 1f82f82a0cc17742a55e2491c82fa04001d04618 (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
Summary: The torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision.
Name: torchvision
Version: 0.16.2
Release: 1
License: BSD
Group: Development/Libraries
Source: https://github.com/pytorch/vision/archive/refs/tags/v0.16.2.tar.gz
URL: https://github.com/pytorch/vision
BuildRoot: %{_tmppath}/%{name}-buildroot

%description
Torchvision is a PyTorch add-on that provides access to:
- Datasets (MNIST, CIFAR10, etc.)
- Models (ResNet, VGG, etc.)
- Transforms (for image preprocessing)

%global pypi_version 0.16.2

%prep
%autosetup -p1 -n vision-%{pypi_version}

%build
python3 setup.py build

%install
rm -rf %{buildroot}
python3 setup.py install --root %{buildroot}

%clean
rm -rf %{buildroot}

%files
%doc *.md
%license LICENSE
%defattr(-,root,root,-)
%{python3_sitearch}/torchvision*

%changelog
* Mon Apr 15 2024 weilaijishu 
- Initial package