Package Details: python-torchvision-cuda 0.8.2-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 (with GPU support)
Upstream URL: https://github.com/pytorch/vision
Licenses: BSD
Conflicts: python-torchvision=0.8.2
Provides: python-torchvision=0.8.2
Submitter: flacks
Maintainer: hottea (lilac)
Last Packager: lilac
Votes: 18
Popularity: 0.58
First Submitted: 2018-01-31 10:46
Last Updated: 2020-12-10 21:40

Dependencies (18)

Required by (24)

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 »

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 ?

dburkhardt commented on 2021-01-05 14:10

@hottea, I'm getting the same issue as @ioctl on the following tests after a full Arch update last night:

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\xe4\xfd\xe3\x82[170942 chars]\xd9' != b'\xf[2208 chars]e6\xa7\x0f\xf0\x83*\xb36y?x\xe0\x92rI\xc9\xa9\[171701 chars]\xd9'

hottea commented on 2020-12-12 09:02

@ioctl You could build it in a clean chroot, and then report to upstream with full log.

ioctl commented on 2020-12-12 08:58

@ioctl you could report bugs to upstream, not here. I usually skip the check.

I am not sure, they will accept it, because problem may be in Arch environment.

Anyway, if check periodically cause errors and you skip it in you own builds, may you remove it from the PKGBUILD?

hottea commented on 2020-12-12 08:54

@ioctl you could report bugs to upstream, not here. I usually skip the check.

ioctl commented on 2020-12-12 08:48

Version 0.8.2-1 build failed on the check stage:


=================================== FAILURES ===================================
________________________ ImageTester.test_decode_image _________________________

self = <test_image.ImageTester testMethod=test_decode_image>

    def test_decode_image(self):
        for img_path in get_images(IMAGE_ROOT, ".jpg"):
            img_pil = torch.load(img_path.replace('jpg', 'pth'))
            img_pil = img_pil.permute(2, 0, 1)
            img_ljpeg = decode_image(read_file(img_path))
>           self.assertTrue(img_ljpeg.equal(img_pil))
E           AssertionError: False is not true

test/test_image.py:200: AssertionError
_________________________ ImageTester.test_decode_jpeg _________________________

self = <test_image.ImageTester testMethod=test_decode_jpeg>

    def test_decode_jpeg(self):
        for img_path in get_images(IMAGE_ROOT, ".jpg"):
            img_pil = torch.load(img_path.replace('jpg', 'pth'))
            img_pil = img_pil.permute(2, 0, 1)
            data = read_file(img_path)
            img_ljpeg = decode_jpeg(data)
>           self.assertTrue(img_ljpeg.equal(img_pil))
E           AssertionError: False is not true

test/test_image.py:42: AssertionError
_________________________ ImageTester.test_encode_jpeg _________________________

self = <test_image.ImageTester testMethod=test_encode_jpeg>

    def test_encode_jpeg(self):
        for img_path in get_images(IMAGE_ROOT, ".jpg"):
            dirname = os.path.dirname(img_path)
            filename, _ = os.path.splitext(os.path.basename(img_path))
            write_folder = os.path.join(dirname, 'jpeg_write')
            expected_file = os.path.join(
                write_folder, '{0}_pil.jpg'.format(filename))
            img = decode_jpeg(read_file(img_path))

            with open(expected_file, 'rb') as f:
                pil_bytes = f.read()
                pil_bytes = torch.as_tensor(list(pil_bytes), dtype=torch.uint8)
            for src_img in [img, img.contiguous()]:
                # PIL sets jpeg quality to 75 by default
                jpeg_bytes = encode_jpeg(src_img, quality=75)
>               self.assertTrue(jpeg_bytes.equal(pil_bytes))
E               AssertionError: False is not true

test/test_image.py:84: AssertionError
_________________________ ImageTester.test_write_jpeg __________________________

self = <test_image.ImageTester testMethod=test_write_jpeg>

    def test_write_jpeg(self):
        for img_path in get_images(IMAGE_ROOT, ".jpg"):
            data = read_file(img_path)
            img = decode_jpeg(data)

            basedir = os.path.dirname(img_path)
            filename, _ = os.path.splitext(os.path.basename(img_path))
            torch_jpeg = os.path.join(
                basedir, '{0}_torch.jpg'.format(filename))
            pil_jpeg = os.path.join(
                basedir, 'jpeg_write', '{0}_pil.jpg'.format(filename))

            write_jpeg(img, torch_jpeg, quality=75)

            with open(torch_jpeg, 'rb') as f:
                torch_bytes = f.read()

            with open(pil_jpeg, 'rb') as f:
                pil_bytes = f.read()

            os.remove(torch_jpeg)
>           self.assertEqual(torch_bytes, pil_bytes)
E           AssertionError: b'\xf[2208 chars]e6\xa6\x87\xc2\x0c\xaa\xcc\xd9\xe4\xfd\xe3\x82[170942 chars]\xd9' != b'\xf[2208 chars]e6\xa7\x0f\xf0\x83*\xb36y?x\xe0\x92rI\xc9\xa9\[171701 chars]\xd9'

test/test_image.py:133: AssertionError

keybreak commented on 2020-11-26 17:44

@hottea Thx not only that, but it seems the problem was also in missing:

export CUDA_HOME=/opt/cuda

That fixed build error, i must say that was a looong build though :)

hottea commented on 2020-11-26 12:27

@keybreak you could skip the test.