torchvideo
A PyTorch library for video-based computer vision tasks. torchvideo provides
dataset loaders specialised for video, video frame samplers, and transformations specifically for video.
Get started
Set up an accelerated environment in conda
$ conda env create -f environment.yml -n torchvideo
$ conda activate torchvideo
# The following steps are taken from
# https://docs.fast.ai/performance.html#installation
$ conda uninstall -y --force pillow pil jpeg libtiff
$ pip uninstall -y pillow pil jpeg libtiff
$ conda install -y -c conda-forge libjpeg-turbo
$ CFLAGS="${CFLAGS} -mavx2" pip install --upgrade --no-cache-dir --force-reinstall --no-binary :all: --compile pillow-simd
$ conda install -y jpeg libtiff
NOTE: If the installation of pillow-simd fails, you can try installing GCC from
conda-forge and trying the install again:
$ conda install -y gxx_linux-64
$ export CXX=x86_64-conda_cos6-linux-gnu-g++
$ export CC=x86_64-conda_cos6-linux-gnu-gcc
$ CFLAGS="${CFLAGS} -mavx2" pip install --upgrade --no-cache-dir --force-reinstall --no-binary :all: --compile pillow-simd
$ conda install -y jpeg libtiff
If you install any new packages, check that pillow-simd hasn't be overwritten
by an alternate pillow install by running:
$ python -c "from PIL import Image; print(Image.PILLOW_VERSION)"
You should see something like
6.0.0.post0
Pillow doesn't release with post suffixes, so if you have post in the version
name, it's likely you have pillow-simd installed.
Install torchvideo
$ pip install git+https://github.com/willprice/torchvideo.git@master
Learn how to use torchvideo
Check out the example notebooks, you can launch these on binder without having to install anything locally!
Acknowledgements
Thanks to the following people and projects
- yjxiong for his work on TSN and publicly available pytorch implementation from which many of the transforms in this project started from.
- dukebw for his excellent lintel FFmpeg video loading library.
- hypothesis and the team behind it. This has been used heavily in testing the project.
Metadata
Release files for torchvideo 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| torchvideo-0.0.1.tar.gz | 48.3 kB | Without provenance | Details for torchvideo-0.0.1.tar.gz |
Release files / torchvideo-0.0.1.tar.gz
| Download URL | torchvideo-0.0.1.tar.gz |
|---|---|
| Size | 48.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfbf1c85bbe28feebe5ce5f5f16764a9659e271de7fb187fc814ec748d2ed765
|
|
BLAKE2b-256 checksum How to use checksums |
548bc96892623ce80356e9863a39c6a6a2f1235a397bebfb30dbfefcfb25d4d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3
|
Security for torchvideo 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.