Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions .github/scripts/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,8 @@ if [[ $GPU_ARCH_TYPE == 'cuda' ]]; then
fi
echo '::endgroup::'

echo '::group::Install third party dependencies prior to TorchVision install'
# Installing with `easy_install`, e.g. `python setup.py install` or `python setup.py develop`, has some quirks when
# when pulling in third-party dependencies. For example:
# - On Windows, we often hit an SSL error although `pip` can install just fine.
# - It happily pulls in pre-releases, which can lead to more problems down the line.
# `pip` does not unless explicitly told to do so.
# Thus, we use `easy_install` to extract the third-party dependencies here and install them upfront with `pip`.
python setup.py egg_info
# The requires.txt cannot be used with `pip install -r` directly. The requirements are listed at the top and the
# optional dependencies come in non-standard syntax after a blank line. Thus, we just extract the header.
sed -e '/^$/,$d' *.egg-info/requires.txt | tee requirements.txt
pip install --progress-bar=off -r requirements.txt
echo '::endgroup::'

echo '::group::Install TorchVision'
python setup.py develop
pip install -e . -v --no-build-isolation
echo '::endgroup::'

echo '::group::Install torchvision-extra-decoders'
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ details.
```bash
git clone https://github.com/pytorch/vision.git
cd vision
python setup.py develop # use install instead of develop if you don't care about development.
pip install -e . -v --no-build-isolation # leave out the -e switch if you don't care about development.
# or, for OSX
# MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py develop
# MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ pip install -e . -v --no-build-isolation
# for C++ debugging, use DEBUG=1
# DEBUG=1 python setup.py develop
# DEBUG=1 pip install -e . -v --no-build-isolation
```

By default, GPU support is built if CUDA is found and `torch.cuda.is_available()` is true. It's possible to force
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Torchvision currently supports the following video backends:

```
conda install -c conda-forge 'ffmpeg<4.3'
python setup.py install
pip install . -v --no-build-isolation
```

# Using the models on C++
Expand Down
2 changes: 1 addition & 1 deletion torchvision/csrc/io/decoder/gpu/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ GPU decoder depends on ffmpeg for demuxing, uses NVDECODE APIs from the nvidia-v

.. code:: bash

python setup.py install
pip install . -v --no-build-isolation
Loading