Package Base Details: python-torchvision

Git Clone URL: https://aur.archlinux.org/python-torchvision.git (read-only, click to copy)
Submitter: flacks
Maintainer: hottea (lilac)
Last Packager: lilac
Votes: 17
Popularity: 0.124768
First Submitted: 2018-01-31 10:46
Last Updated: 2020-12-02 13:14

Pinned Comments

hottea commented on 2020-05-02 09:00

You could install python-torchvision or python-torchvision-cuda from ArchLinux CN repo. I have no plan to provide two PKGBUILD for pytorch-torchvision and python-torchvision-cuda. However, pull request is welcome.

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

elanglois commented on 2020-05-02 02:34

Could you split up build(), check(), and makedepends into separate functions for cuda and non-cuda versions? python-torch-cuda conflicts with python-torch so using this PKGBUILD to build python-torchvision means uninstalling python-torch, installing python-torch-cuda, building python-torchvision, then uninstalling python-torch-cuda and reinstalling python-torch. Sure I could modify the PKGBUILD (and have been) but it doesn't make sense to be providing python-torchvision if the existing PKGBUILD doesn't work well for it.

~~Really, I think it would be best just to split this into separate PKGBUILDS for python-torchvision and python-torchvision-cuda but splitting the remaining functions works too.~~ [edit: not sure about whether I think separate PKGBUILDS would be preferable, rest still stands]

hottea commented on 2020-04-25 12:43

@promach Maybe you're running out of memory. python-torchvision and python- torchvision-cuda are built with a single PKGBUILD, but with different options. Check the wiki if you have question about PKGBUILD.

promach commented on 2020-04-25 09:22

May I know why the git clone url is the same for non-cuda version of python-torchvision ?

And I face some compilation errors during building the library.

test/test_models.py::ModelTester::test_alexnet PASSED                                                          [ 31%]
test/test_models.py::ModelTester::test_deeplabv3_resnet101 PASSED                                              [ 32%]
test/test_models.py::ModelTester::test_deeplabv3_resnet50 PASSED                                               [ 32%]
test/test_models.py::ModelTester::test_densenet121 PASSED                                                      [ 32%]
test/test_models.py::ModelTester::test_densenet161 PASSED                                                      [ 33%]
test/test_models.py::ModelTester::test_densenet169 PASSED                                                      [ 33%]
test/test_models.py::ModelTester::test_densenet201 PASSED                                                      [ 34%]
test/test_models.py::ModelTester::test_fasterrcnn_double /home/phung/Downloads/python-torchvision/PKGBUILD: line 60: 17596 Killed                  PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-$(get_pyver)" pytest -v
==> ERROR: A failure occurred in check().
    Aborting...

hottea commented on 2020-04-22 15:23

@jclds139 You could modify this PKGBUILD as you need. Modifications you need include: 1. remove python-torchvision-cuda from pkgname. 2. remove python-pytorch-cuda from makedepends. 3. remove all lines related to build or package python-torchvision-cuda

Another solution, just install the binary package from ArchLinxCN repo.

jclds139 commented on 2020-04-21 16:49

I can see why you have python-pytorch-cuda included as a dependency, but I still have to disagree with your reasoning. Since this package isn't going to use CUDA, it shouldn't be built with it or the FORCE_CUDA=1 option. All that's doing is forcing us to download the huge cuda package that we don't need in order to build this. Is there any way you could split this PKGBUILD so that this package doesn't require CUDA in order to build?

hottea commented on 2020-04-16 13:31

@horst python-torchvision requires python-pytorch, python-torchvision-cuda requires python-pytorch-cuda. I add python-pytorch-cuda to makedepends, because I need to build torchvision in a clean chroot environment.

horst commented on 2020-04-16 13:14

With python-torchvision-cuda existing, should python-torchvision require python-pytorch-cuda in addition to python-pytorch?

yosunpeng commented on 2020-04-14 03:29

@hottea I edited the PKGBUILD and commented the check() function. It worked! Thank you!

hottea commented on 2020-04-13 14:22

@yosunpeng Bug reports to upstream. And you could always skip the check. You're welcome to install this pkg from ArchLinuxCN repo.

yosunpeng commented on 2020-04-13 13:55

Hi! Guys, I am a newbie to Arch Linux. I got a failure occurred in check(). To be precise, two failed during the testing progress in torchvision installation. They are : test/test_datasets_utils.py::Tester::test_download_url FAILED test/test_datasets_utils.py::Tester::test_download_url_dont_exit FAILED At first, I thought it maybe caused by China's GFW, however, I checked the download urls(reported by error) with my browser: https://github.com/pytorch/vision/archive/master.zip https://github.com/pytorch/vision/archive/this_doesnt_exist.zip They are simply not existing any more(404 error). So, I guess if I can download the two zip files and put them to correct path, I may pass the test. But, I cannot get the two files and do not known how to skip these tests. Please help me! Thank you in advance! My email: yosunpeng@gmail.com