Bug 2243052 - Review Request: python-torchvision - A PyTorch vision package
Summary: Review Request: python-torchvision - A PyTorch vision package
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tim Flink
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/pytorch/vision
Whiteboard:
Depends On:
Blocks: ML-SIG
TreeView+ depends on / blocked
 
Reported: 2023-10-10 12:06 UTC by Tom Rix
Modified: 2024-01-14 16:36 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-01-14 16:36:31 UTC
Type: ---
Embargoed:
tflink: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 6728863 to 6763280 (3.54 KB, patch)
2023-12-16 23:38 UTC, Fedora Review Service
no flags Details | Diff

Description Tom Rix 2023-10-10 12:06:05 UTC
Spec URL: https://trix.fedorapeople.org/python-torchvision.spec
SRPM URL: https://trix.fedorapeople.org/python-torchvision-0.16.0-2.fc40.src.rpm

This package does the image processing for pytorch and is needed to run many of
the examples

https://github.com/pytorch/examples

Reproducible: Always

Comment 1 Fedora Review Service 2023-10-10 12:09:40 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6513712
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2243052-python-torchvision/fedora-rawhide-x86_64/06513712-python-torchvision/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 3 Tom Rix 2023-12-06 14:05:36 UTC
Spec URL: https://trix.fedorapeople.org/python-torchvision.spec
SRPM URL: https://trix.fedorapeople.org/python-torchvision-0.16.0-4.fc40.src.rpm

- Use python-torch                                                                                                                                           
- enable jpeg, png, ffmpeg                                                                                                                                   
- Fix exec permission

Comment 4 Fedora Review Service 2023-12-06 14:22:25 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6728863
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2243052-python-torchvision/fedora-rawhide-x86_64/06728863-python-torchvision/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 5 Tim Flink 2023-12-06 19:51:03 UTC
I have a few questions and concerns:

Where did you see BSD-2-Clause? I see Apache-2.0, BSD-3-Clause, MIT and CC-BY-NC-4.0.

CC-BY-NC-4.0 (vision_transformer model, regnet model from SWAG) is on the list of not acceptable licenses for Fedora and those files will need to be removed, which is unfortunate.

why programmatically generate part of the files? isn't %{python3_sitearch}/%{pypi_name} sufficient for this package? It doesn't cause problems, I'm mostly curious.

Comment 6 Tom Rix 2023-12-16 16:56:55 UTC
Spec URL: https://trix.fedorapeople.org/python-torchvision.spec
SRPM URL: https://trix.fedorapeople.org/python-torchvision-0.16.0-5.fc40.src.rpm

The big change is removing prebuilt torchvision/models
This will resolve the CC-BY-NC-4.0 license issue and the general licensing (NO) of prebuilt models

licensecheck reports

BSD 2-Clause License and/or MIT License                                                                                                              
---------------------------------------                                                                                                              
vision-0.16.0/torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp                                                                                      
vision-0.16.0/torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu 

I have eyeball verified that this is correct.

programmatically generated part removed.

Comment 7 Fedora Review Service 2023-12-16 23:38:24 UTC
Created attachment 2004610 [details]
The .spec file difference from Copr build 6728863 to 6763280

Comment 8 Fedora Review Service 2023-12-16 23:38:26 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6763280
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2243052-python-torchvision/fedora-rawhide-x86_64/06763280-python-torchvision/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 9 Tim Flink 2024-01-04 19:41:23 UTC
I'm not thrilled about removing all the pretrained model code but the reasoning makes sense. I'll start a conversation with Fedora legal about what we can and can't include; if it turns out that at least parts of the pretrained model code is OK, it can be added back at a later date.

Otherwise LGTM

Comment 10 Fedora Admin user for bugzilla script actions 2024-01-05 18:14:04 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/python-torchvision


Note You need to log in before you can comment on or make changes to this bug.