Skip to content

Fix torchvision install #508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
May 24, 2019
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
18 changes: 0 additions & 18 deletions .jenkins/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ sudo apt-get install -y --no-install-recommends unzip p7zip-full sox libsox-dev
export PATH=/opt/conda/bin:$PATH
rm -rf src
pip install -r $DIR/../requirements.txt
pip uninstall -y torchvision || true

export PATH=/opt/conda/bin:$PATH
conda install -y sphinx==1.8.2 pandas
Expand All @@ -25,12 +24,6 @@ pip install -e git+git://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch
# this is a workaround to the issue.
pip install sphinx-gallery tqdm matplotlib ipython pillow==4.1.1

# Install torchvision from source
git clone https://github.com/pytorch/vision --quiet
pushd vision
pip install . --no-deps # We don't want it to install the stock PyTorch version from pip
popd

# Install torchaudio from source
git clone https://github.com/pytorch/audio --quiet
pushd audio
Expand All @@ -39,17 +32,6 @@ popd

aws configure set default.s3.multipart_threshold 5120MB

if [[ $(pip show torch) ]]; then
# Clean up previous PyTorch installations
pip uninstall -y torch || true
pip uninstall -y torch || true
fi

# Install a nightly build of pytorch

# GPU, requires CUDA version 9.0
pip install cython torch_nightly -f https://download.pytorch.org/whl/nightly/cu90/torch_nightly.html

# Decide whether to parallelize tutorial builds, based on $JOB_BASE_NAME
export NUM_WORKERS=20
if [[ "${JOB_BASE_NAME}" == *worker_* ]]; then
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ sphinx-gallery
tqdm
numpy
matplotlib
torch
torchvision
PyHamcrest
bs4
Expand Down