Skip to content

local sync #3

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 51 commits into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
32f21da
Fix: PyAV does not support floating point numbers with decimals as FP…
QuentinDuval Jun 22, 2020
42aa9b2
Refactoring to use contexts managers, list comprehensions when more i…
QuentinDuval Jun 22, 2020
b6f55ed
Update torchvision ops in doc (#2341)
zhiqwang Jun 23, 2020
f554f2d
added fill to __repr__ of RandomRotation (#2340)
joerg-de Jun 23, 2020
e92b515
Update the statement of supporting torchscript ops (#2343)
zhiqwang Jun 23, 2020
2dad9c7
bump nightlies to 0.8.0 (#2351)
seemethere Jun 26, 2020
8dc14cf
Unified Pad and F.pad opertion for PIL and Tensor inputs (#2345)
vfdev-5 Jun 26, 2020
26dd3f8
Updated travis-ci (#2346)
vfdev-5 Jun 26, 2020
1a04d3c
Try remove eager scripting calls (#2248)
eellison Jun 26, 2020
efe90f8
Fix https://github.com/pytorch/vision/issues/2354 (#2355)
ssnl Jun 29, 2020
dafd6d3
Cherry picking changes for release improvements (#2352)
seemethere Jun 29, 2020
bb14c2b
Unpin ninja version (#2358)
peterjc123 Jun 29, 2020
446eac6
Fix torchhub due to numerical changes in torch.sum (#2361)
fmassa Jun 29, 2020
a99b6bd
Unified Tensor/PIL crop (#2342)
vfdev-5 Jun 30, 2020
6fe11d5
Issue 2350 - support of all padding modes with tensors (#2368)
vfdev-5 Jun 30, 2020
7fd2491
F_t add factor nonnegativity checks for adjust_* (#2356)
ssnl Jun 30, 2020
4480603
Port roi_align to actually use dispatcher (#2366)
ezyang Jun 30, 2020
e50c2e3
Improved docs and tests for (#2371)
vfdev-5 Jun 30, 2020
9d9e716
Add unittest job to CircleCI (#2328)
guyang3532 Jun 30, 2020
766721b
PR: Add libpng and libjpeg-turbo requirement into conda recipe (#2301)
andfoy Jun 30, 2020
d24008c
Update MSVC toolchain to 14.13 (#2374)
peterjc123 Jul 1, 2020
fa6af6d
Revert "PR: Add libpng and libjpeg-turbo requirement into conda recip…
andfoy Jul 1, 2020
c1a99b7
PR: Enable libPNG support (#2379)
andfoy Jul 2, 2020
e4b9823
Revert "PR: Enable libPNG support (#2379)" (#2383)
fmassa Jul 2, 2020
39e4057
Added symmetric padding mode for Tensors (#2373)
vfdev-5 Jul 2, 2020
5247f7b
Fix image extension tests (#2382)
fmassa Jul 3, 2020
e757d52
add error message if Google Drive quota is exceeded (#2321)
pmeier Jul 3, 2020
75f5b57
[BC-breaking] RandomErasing is now scriptable (#2386)
vfdev-5 Jul 3, 2020
67f5fcf
For std::min and std::max cast to like data types (#2389)
jekriske-lilly Jul 6, 2020
971c3e4
Type annotations for torchvision.ops (#2331)
iamvukasin Jul 6, 2020
e212cc8
Unified input for resize op (#2394)
vfdev-5 Jul 6, 2020
d96832a
PR: Improve calls to libpng-config on Ubuntu/Debian (#2398)
andfoy Jul 6, 2020
86b6c3e
Removed obsolete import. (#2399)
maxfrei750 Jul 6, 2020
b572d5e
Fixed torch randint incoherent sampling (compatible to random.randint…
vfdev-5 Jul 7, 2020
9b80465
Unified input for resized crop op (#2396)
vfdev-5 Jul 7, 2020
4433a5b
Minor docs improvement (#2403)
vfdev-5 Jul 8, 2020
4246abc
PR: Read JPEG images directly (#2388)
andfoy Jul 8, 2020
0a8586c
[WIP] Allow autocast for 1.6 (#2384)
mcarilli Jul 9, 2020
131ba13
Fix wrong clamping in RoIAlign with aligned=True (#2438)
fmassa Jul 9, 2020
892d0ef
add probot (#2448)
astaff Jul 10, 2020
cf534fd
variable name should match that of tested method (#2456)
nairbv Jul 10, 2020
750e38f
Fixes function signatures for torch::nn::Functional (#2463)
peterjc123 Jul 12, 2020
ad0553c
Fix type annotation for num_features in FrozenBatchNorm2d (#2462)
iamvukasin Jul 12, 2020
812395c
Fix CPU unit tests (#2465)
guyang3532 Jul 13, 2020
0344603
PR: Remove linux distribution detection, search first on local paths …
andfoy Jul 13, 2020
a568c7f
Fixes incoherence in affine transformation when center is defined as …
vfdev-5 Jul 15, 2020
03b1d38
PR: Improve handling of truncated/incomplete and corrupt JPEG images …
andfoy Jul 15, 2020
5f4b579
Unified input for F.affine (#2444)
vfdev-5 Jul 16, 2020
ab73b44
perform cyclic check for hue in test_rgb2hsv (#2477)
KushajveerSingh Jul 16, 2020
d481f2d
Add torchscriptable adjust_gamma transform (#2459)
nairbv Jul 17, 2020
1aef87d
[ONNX] fix dynamic resize (#2488)
neginraoof Jul 20, 2020
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
582 changes: 422 additions & 160 deletions .circleci/config.yml

Large diffs are not rendered by default.

275 changes: 161 additions & 114 deletions .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ jobs:
- checkout
- run:
command: |
sudo apt-get update -y
sudo apt install -y libturbojpeg-dev
pip install --user --progress-bar off numpy mypy
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install --user --progress-bar off --editable .
Expand Down Expand Up @@ -155,106 +157,7 @@ jobs:
- store_test_results:
path: build_results/

binary_linux_conda_cuda:
<<: *binary_common
machine:
image: ubuntu-1604:201903-01
resource_class: gpu.medium
steps:
- checkout_merge
- run:
name: Setup environment
command: |
set -ex

curl -L https://packagecloud.io/circleci/trusty/gpgkey | sudo apt-key add -
curl -L https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

sudo apt-get update

sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"

sudo apt-get update
export DOCKER_VERSION="5:19.03.2~3-0~ubuntu-xenial"
sudo apt-get install docker-ce=${DOCKER_VERSION} docker-ce-cli=${DOCKER_VERSION} containerd.io=1.2.6-3

# Add the package repositories
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

export NVIDIA_CONTAINER_VERSION="1.0.3-1"
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit=${NVIDIA_CONTAINER_VERSION}
sudo systemctl restart docker

DRIVER_FN="NVIDIA-Linux-x86_64-440.59.run"
wget "https://s3.amazonaws.com/ossci-linux/nvidia_driver/$DRIVER_FN"
sudo /bin/bash "$DRIVER_FN" -s --no-drm || (sudo cat /var/log/nvidia-installer.log && false)
nvidia-smi

- run:
name: Pull docker image
command: |
set -ex
export DOCKER_IMAGE=pytorch/conda-cuda
echo Pulling docker image $DOCKER_IMAGE
docker pull $DOCKER_IMAGE >/dev/null

- run:
name: Build and run tests
command: |
set -ex

cd ${HOME}/project/

export DOCKER_IMAGE=pytorch/conda-cuda
export VARS_TO_PASS="-e PYTHON_VERSION -e BUILD_VERSION -e PYTORCH_VERSION -e UNICODE_ABI -e CU_VERSION"

docker run --gpus all --ipc=host -v $(pwd):/remote -w /remote ${VARS_TO_PASS} ${DOCKER_IMAGE} ./packaging/build_conda.sh

binary_win_conda:
<<: *binary_common
executor: windows-cpu
steps:
- checkout_merge
- run:
command: |
set -ex
source packaging/windows/internal/vc_install_helper.sh
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda activate base
conda install -yq conda-build "conda-package-handling!=1.5.0"
packaging/build_conda.sh
- store_test_results:
path: build_results/

binary_win_conda_cuda:
<<: *binary_common
executor: windows-gpu
steps:
- checkout_merge
- run:
command: |
set -ex
source packaging/windows/internal/vc_install_helper.sh
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda activate base
conda install -yq conda-build "conda-package-handling!=1.5.0"
packaging/build_conda.sh

binary_win_conda_release:
<<: *binary_common
executor: windows-cpu
steps:
Expand All @@ -279,7 +182,7 @@ jobs:
- store_test_results:
path: build_results/

binary_win_wheel_release:
binary_win_wheel:
<<: *binary_common
executor: windows-cpu
steps:
Expand Down Expand Up @@ -385,34 +288,178 @@ jobs:
aws s3 cp "$pkg" "s3://pytorch/whl/${UPLOAD_CHANNEL}/<< parameters.subfolder >>" --acl public-read
done

unittest_linux_cpu:
<<: *binary_common
docker:
- image: "pytorch/manylinux-cuda102"
resource_class: 2xlarge+
steps:
- checkout
- run:
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
command: echo "$(date +"%Y-%U")" > .circleci-weekly
- restore_cache:
{% raw %}
keys:
- env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
- run:
name: Setup
command: .circleci/unittest/linux/scripts/setup_env.sh
- save_cache:
{% raw %}
key: env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
paths:
- conda
- env
- run:
name: Install torchvision
command: .circleci/unittest/linux/scripts/install.sh
- run:
name: Run tests
command: .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/linux/scripts/post_process.sh
- store_test_results:
path: test-results

unittest_linux_gpu:
<<: *binary_common
machine:
image: ubuntu-1604-cuda-10.1:201909-23
resource_class: gpu.small
environment:
image_name: "pytorch/manylinux-cuda101"
steps:
- checkout
- run:
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
command: echo "$(date +"%Y-%U")" > .circleci-weekly
- restore_cache:
{% raw %}
keys:
- env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
- run:
name: Setup
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
- save_cache:
{% raw %}
key: env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
paths:
- conda
- env
- run:
name: Install torchvision
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/install.sh
- run:
name: Run tests
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post Process
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
- store_test_results:
path: test-results

unittest_windows_cpu:
<<: *binary_common
executor:
name: windows-cpu
steps:
- checkout
- run:
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
command: echo "$(date +"%Y-%U")" > .circleci-weekly
- restore_cache:
{% raw %}
keys:
- env-v2-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
- run:
name: Setup
command: .circleci/unittest/windows/scripts/setup_env.sh
- save_cache:
{% raw %}
key: env-v2-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
paths:
- conda
- env
- run:
name: Install torchvision
command: .circleci/unittest/windows/scripts/install.sh
- run:
name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results:
path: test-results

unittest_windows_gpu:
<<: *binary_common
executor:
name: windows-gpu
environment:
CUDA_VERSION: "10.1"
steps:
- checkout
- run:
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
command: echo "$(date +"%Y-%U")" > .circleci-weekly
- restore_cache:
{% raw %}
keys:
- env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
- run:
name: Setup
command: .circleci/unittest/windows/scripts/setup_env.sh
- save_cache:
{% raw %}
key: env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
paths:
- conda
- env
- run:
name: Install torchvision
command: .circleci/unittest/windows/scripts/install.sh
- run:
name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results:
path: test-results

workflows:
build:
{%- if True %}
jobs:
- circleci_consistency
{{ workflows(windows_latest_only=True) }}
- binary_linux_conda_cuda:
name: torchvision_linux_py3.8_cu102_cuda
python_version: "3.8"
cu_version: "cu102"
- binary_win_conda:
name: torchvision_win_py3.6_cpu
python_version: "3.6"
cu_version: "cpu"
- binary_win_conda_cuda:
name: torchvision_win_py3.6_cu101
python_version: "3.6"
cu_version: "cu101"
{{ build_workflows(windows_latest_only=True) }}
- python_lint
- python_type_check
- clang_format

unittest:
jobs:
{{ unittest_workflows() }}
nightly:
{%- endif %}
jobs:
- circleci_consistency
- python_lint
- python_type_check
- clang_format
{{ workflows(prefix="nightly_", filter_branch="nightly", upload=True) }}
{{ build_workflows(prefix="nightly_", filter_branch="nightly", upload=True) }}
Loading