Package Details: python-torchvision 0.9.1-1

Git Clone URL: https://aur.archlinux.org/python-torchvision.git (read-only, click to copy)
Package Base: python-torchvision
Description: Datasets, transforms, and models specific to computer vision
Upstream URL: https://github.com/pytorch/vision
Licenses: BSD
Submitter: flacks
Maintainer: hottea (lilac)
Last Packager: lilac
Votes: 18
Popularity: 0.137221
First Submitted: 2018-01-31 10:46
Last Updated: 2021-03-25 22:58

Dependencies (18)

Sources (1)

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

1 2 3 4 5 6 ... Next › Last »

trougnouf commented on 2021-04-29 15:58

//assert(op_name.find("::") != string_view::npos);

needs to be commented out from /usr/include/ATen/core/op_registration/op_whitelist.h

in order for this package to compile with cuda 11.3, pytorch 1.8.1 per https://github.com/pytorch/vision/issues/3695

jorgicio commented on 2021-03-14 01:12

CUDA-related dependencies should be only for the python-torchvision-cuda package, not for this package, which forces to install it.

hottea commented on 2021-03-10 11:25

@7Z0nE You could make a pull request, the PKGBUILD file is hosted here

7Z0nE commented on 2021-03-10 09:32

@hottea If I install pytorch-torchvision I do not want to install cuda as a makedepend and build two versions of the package that I want to install. Making this a split package is not at all sensible to me. I modified the PKG and removed all the cuda stuff. Would you create a separate pkg-base for torchvision-cuda that has its own PKGBUILD. I do not see any problem with having two PKGBUILD. If you do not want to maintain any more packages, feel free to assign me as maintainer to one of them.

ruestique commented on 2021-03-06 12:35

@hottea i installed torch in venv, via pip, no time to fight with this sh*t, thanks!

hottea commented on 2021-03-02 13:48

@ruestique report these issues to upstream, not here. I skip the tests when I build the pkg.

ruestique commented on 2021-03-02 13:04


-- Docs: https://docs.pytest.org/en/stable/warnings.html
================================================= short test summary info ==================================================
FAILED test/test_functional_tensor.py::Tester::test_adjust_brightness - TypeError: Object of type 'module' is not an inst...
FAILED test/test_functional_tensor.py::Tester::test_adjust_contrast - TypeError: Object of type 'module' is not an instan...
FAILED test/test_functional_tensor.py::Tester::test_adjust_gamma - TypeError: Object of type 'module' is not an instance ...
FAILED test/test_functional_tensor.py::Tester::test_adjust_hue - TypeError: Object of type 'module' is not an instance of...
FAILED test/test_functional_tensor.py::Tester::test_adjust_saturation - TypeError: Object of type 'module' is not an inst...
FAILED test/test_functional_tensor.py::Tester::test_affine - TypeError: Object of type 'module' is not an instance of 'fu...
FAILED test/test_functional_tensor.py::Tester::test_center_crop - TypeError: Object of type 'module' is not an instance o...
FAILED test/test_functional_tensor.py::Tester::test_crop - TypeError: Object of type 'module' is not an instance of 'func...
FAILED test/test_functional_tensor.py::Tester::test_five_crop - TypeError: Object of type 'module' is not an instance of ...
FAILED test/test_functional_tensor.py::Tester::test_gaussian_blur - TypeError: Object of type 'module' is not an instance...
FAILED test/test_functional_tensor.py::Tester::test_hflip - TypeError: Object of type 'module' is not an instance of 'fun...
FAILED test/test_functional_tensor.py::Tester::test_hsv2rgb - TypeError: Object of type 'module' is not an instance of 'f...
FAILED test/test_functional_tensor.py::Tester::test_pad - TypeError: Object of type 'module' is not an instance of 'funct...
FAILED test/test_functional_tensor.py::Tester::test_perspective - TypeError: Object of type 'module' is not an instance o...
FAILED test/test_functional_tensor.py::Tester::test_resize - TypeError: Object of type 'module' is not an instance of 'fu...
FAILED test/test_functional_tensor.py::Tester::test_resized_crop - TypeError: Object of type 'module' is not an instance ...
FAILED test/test_functional_tensor.py::Tester::test_rgb2hsv - TypeError: Object of type 'module' is not an instance of 'f...
FAILED test/test_functional_tensor.py::Tester::test_rgb_to_grayscale - TypeError: Object of type 'module' is not an insta...
FAILED test/test_functional_tensor.py::Tester::test_rotate - TypeError: Object of type 'module' is not an instance of 'fu...
FAILED test/test_functional_tensor.py::Tester::test_ten_crop - TypeError: Object of type 'module' is not an instance of '...
FAILED test/test_functional_tensor.py::Tester::test_vflip - TypeError: Object of type 'module' is not an instance of 'fun...
FAILED test/test_image.py::ImageTester::test_decode_image - AssertionError: False is not true
FAILED test/test_image.py::ImageTester::test_decode_jpeg - AssertionError: False is not true
FAILED test/test_image.py::ImageTester::test_encode_jpeg - AssertionError: False is not true
FAILED test/test_image.py::ImageTester::test_write_jpeg - AssertionError: b'\xf[2208 chars]e6\xa6\x87\xc2\x0c\xaa\xcc\xd9...
FAILED test/test_models.py::ModelTester::test_fasterrcnn_resnet50_fpn_cpu - TypeError: Object of type 'NoneType' is not a...
FAILED test/test_models.py::ModelTester::test_googlenet_eval - TypeError: Object of type 'module' is not an instance of '...
FAILED test/test_models.py::ModelTester::test_keypointrcnn_resnet50_fpn_cpu - RuntimeError: class '__torch__.torchvision....
FAILED test/test_models.py::ModelTester::test_maskrcnn_resnet50_fpn_cpu - RuntimeError: class '__torch__.torchvision.mode...
FAILED test/test_models.py::ModelTester::test_retinanet_resnet50_fpn_cpu - RuntimeError: class '__torch__.torchvision.mod...
FAILED test/test_ops.py::RoIPoolTester::test_backward_cpu_contiguous - TypeError: Object of type 'module' is not an insta...
FAILED test/test_ops.py::RoIPoolTester::test_backward_cpu_non_contiguous - TypeError: Object of type 'module' is not an i...
FAILED test/test_ops.py::PSRoIPoolTester::test_backward_cpu_contiguous - TypeError: Object of type 'module' is not an ins...
FAILED test/test_ops.py::PSRoIPoolTester::test_backward_cpu_non_contiguous - TypeError: Object of type 'module' is not an...
FAILED test/test_ops.py::RoIAlignTester::test_backward_cpu_contiguous - TypeError: Object of type 'module' is not an inst...
FAILED test/test_ops.py::RoIAlignTester::test_backward_cpu_non_contiguous - TypeError: Object of type 'module' is not an ...
FAILED test/test_ops.py::PSRoIAlignTester::test_backward_cpu_contiguous - TypeError: Object of type 'module' is not an in...
FAILED test/test_ops.py::PSRoIAlignTester::test_backward_cpu_non_contiguous - TypeError: Object of type 'module' is not a...
FAILED test/test_ops.py::DeformConvTester::test_backward_cpu_contiguous - TypeError: Object of type 'module' is not an in...
FAILED test/test_ops.py::DeformConvTester::test_backward_cpu_non_contiguous - TypeError: Object of type 'module' is not a...
FAILED test/test_ops.py::BoxTester::test_bbox_convert_jit - TypeError: Object of type 'module' is not an instance of 'fun...
FAILED test/test_quantized_models.py::ModelTester::test_googlenet - AssertionError: False is not true : Object of type 'm...
FAILED test/test_quantized_models.py::ModelTester::test_mobilenet_v2 - AssertionError: False is not true : Can't redefine...
FAILED test/test_quantized_models.py::ModelTester::test_resnet18 - AssertionError: False is not true : Can't redefine met...
FAILED test/test_quantized_models.py::ModelTester::test_resnet50 - AssertionError: False is not true : Can't redefine met...
FAILED test/test_quantized_models.py::ModelTester::test_resnext101_32x8d - AssertionError: False is not true : Can't rede...
FAILED test/test_quantized_models.py::ModelTester::test_shufflenet_v2_x0_5 - AssertionError: False is not true : Can't re...
FAILED test/test_quantized_models.py::ModelTester::test_shufflenet_v2_x1_0 - AssertionError: False is not true : Can't re...
FAILED test/test_quantized_models.py::ModelTester::test_shufflenet_v2_x1_5 - AssertionError: False is not true : Can't re...
FAILED test/test_quantized_models.py::ModelTester::test_shufflenet_v2_x2_0 - AssertionError: False is not true : Can't re...
FAILED test/test_transforms.py::Tester::test_convert_image_dtype_float_to_float - TypeError: Object of type 'module' is n...
FAILED test/test_transforms.py::Tester::test_convert_image_dtype_float_to_int - TypeError: Object of type 'module' is not...
FAILED test/test_transforms.py::Tester::test_convert_image_dtype_int_to_float - TypeError: Object of type 'module' is not...
FAILED test/test_transforms.py::Tester::test_convert_image_dtype_int_to_int - TypeError: Object of type 'module' is not a...
FAILED test/test_transforms_tensor.py::Tester::test_center_crop - TypeError: Object of type 'module' is not an instance o...
FAILED test/test_transforms_tensor.py::Tester::test_color_jitter - TypeError: Object of type 'module' is not an instance ...
FAILED test/test_transforms_tensor.py::Tester::test_compose - RuntimeError: Can't redefine method: forward on class: __to...
FAILED test/test_transforms_tensor.py::Tester::test_convert_image_dtype - TypeError: Object of type 'module' is not an in...
FAILED test/test_transforms_tensor.py::Tester::test_crop - TypeError: Object of type 'module' is not an instance of 'func...
FAILED test/test_transforms_tensor.py::Tester::test_five_crop - TypeError: Object of type 'module' is not an instance of ...
FAILED test/test_transforms_tensor.py::Tester::test_gaussian_blur - TypeError: Object of type 'module' is not an instance...
FAILED test/test_transforms_tensor.py::Tester::test_linear_transformation - TypeError: Object of type 'module' is not an ...
FAILED test/test_transforms_tensor.py::Tester::test_normalize - TypeError: Object of type 'module' is not an instance of ...
FAILED test/test_transforms_tensor.py::Tester::test_pad - TypeError: Object of type 'module' is not an instance of 'funct...
FAILED test/test_transforms_tensor.py::Tester::test_random_affine - TypeError: Object of type 'module' is not an instance...
FAILED test/test_transforms_tensor.py::Tester::test_random_apply - TypeError: Object of type 'module' is not an instance ...
FAILED test/test_transforms_tensor.py::Tester::test_random_erasing - TypeError: Object of type 'module' is not an instanc...
FAILED test/test_transforms_tensor.py::Tester::test_random_horizontal_flip - RuntimeError: Can't redefine method: forward...
FAILED test/test_transforms_tensor.py::Tester::test_random_perspective - TypeError: Object of type 'module' is not an ins...
FAILED test/test_transforms_tensor.py::Tester::test_random_rotate - TypeError: Object of type 'module' is not an instance...
FAILED test/test_transforms_tensor.py::Tester::test_random_vertical_flip - TypeError: Object of type 'module' is not an i...
FAILED test/test_transforms_tensor.py::Tester::test_resize - TypeError: Object of type 'module' is not an instance of 'fu...
FAILED test/test_transforms_tensor.py::Tester::test_resized_crop - TypeError: Object of type 'module' is not an instance ...
FAILED test/test_transforms_tensor.py::Tester::test_ten_crop - TypeError: Object of type 'module' is not an instance of '...
FAILED test/test_transforms_tensor.py::Tester::test_to_grayscale - TypeError: Object of type 'module' is not an instance ...
======================== 75 failed, 234 passed, 146 skipped, 1545500 warnings in 206.70s (0:03:26) =========================
terminate called without an active exception
/home/chibo/.cache/yay/python-torchvision/PKGBUILD: line 62: 16245 Aborted                 (core dumped) PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-$(get_pyver)" pytest -v
==> ERROR: A failure occurred in check().
    Aborting...
error making: python-torchvision

t.langlois commented on 2021-02-26 20:08

@hottea Thanks ! I changed the version string value and it worked.

hottea commented on 2021-02-26 12:44

@t.langlois check here, it's upstream issue.

t.langlois commented on 2021-02-26 11:53

Hi, after installation the version reported is 0.8.0:

Python 3.9.1 (default, Feb  6 2021, 06:49:13) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torchvision
>>> print(torchvision.__version__)
0.8.0a0

Any idea ?