Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: fairinternal/detectron2#404

Reviewed By: rbgirshick

Differential Revision: D21368444

Pulled By: ppwwyyxx

fbshipit-source-id: 4dd1fbee4487e9ff0a0da4d55b7164302752ceef
  • Loading branch information
ppwwyyxx authored and facebook-github-bot committed May 4, 2020
1 parent 04958b9 commit 1e21fa4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion detectron2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

# This line will be programatically read/write by setup.py.
# Leave them at the bottom of this file and don't touch them.
__version__ = "0.1.1"
__version__ = "0.1.2"
20 changes: 10 additions & 10 deletions dev/packaging/build_all_wheels.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved

PYTORCH_VERSION=1.4
PYTORCH_VERSION=1.5

build_for_one_cuda() {
cu=$1
Expand Down Expand Up @@ -33,14 +33,14 @@ build_for_one_cuda() {
cd /detectron2 && ./dev/packaging/build_wheel.sh
EOF

if [[ "$cu" == "cu101" ]]; then
# build wheel without local version
cat <<EOF | docker exec -i $container_name sh
export CU_VERSION=$cu D2_VERSION_SUFFIX= PYTHON_VERSION=$py
export PYTORCH_VERSION=$PYTORCH_VERSION
cd /detectron2 && ./dev/packaging/build_wheel.sh
EOF
fi
# if [[ "$cu" == "cu101" ]]; then
# # build wheel without local version
# cat <<EOF | docker exec -i $container_name sh
# export CU_VERSION=$cu D2_VERSION_SUFFIX= PYTHON_VERSION=$py
# export PYTORCH_VERSION=$PYTORCH_VERSION
# cd /detectron2 && ./dev/packaging/build_wheel.sh
# EOF
# fi

docker exec -i $container_name rm -rf /detectron2/build/$cu
docker container stop $container_name
Expand All @@ -51,7 +51,7 @@ EOF
if [[ -n "$1" ]]; then
build_for_one_cuda "$1"
else
for cu in cu101 cu100 cu92 cpu; do
for cu in cu102 cu101 cu92 cpu; do
build_for_one_cuda "$cu"
done
fi
7 changes: 4 additions & 3 deletions dev/packaging/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. "$script_dir/pkg_helpers.bash"

echo "Build Settings:"
echo "CU_VERSION: $CU_VERSION" # e.g. cu100
echo "D2_VERSION_SUFFIX: $D2_VERSION_SUFFIX" # e.g. +cu100 or ""
echo "CU_VERSION: $CU_VERSION" # e.g. cu101
echo "D2_VERSION_SUFFIX: $D2_VERSION_SUFFIX" # e.g. +cu101 or ""
echo "PYTHON_VERSION: $PYTHON_VERSION" # e.g. 3.6
echo "PYTORCH_VERSION: $PYTORCH_VERSION" # e.g. 1.4

setup_cuda
setup_wheel_python
yum install ninja-build -y && ln -sv /usr/bin/ninja-build /usr/bin/ninja

export TORCH_VERSION_SUFFIX="+$CU_VERSION"
if [[ "$CU_VERSION" == "cu101" ]]; then
if [[ "$CU_VERSION" == "cu102" ]]; then
export TORCH_VERSION_SUFFIX=""
fi
pip_install pip numpy -U
Expand Down
4 changes: 4 additions & 0 deletions dev/packaging/pkg_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ setup_cuda() {
# Like other torch domain libraries, we choose common GPU architectures only.
export FORCE_CUDA=1
case "$CU_VERSION" in
cu102)
export CUDA_HOME=/usr/local/cuda-10.2/
export TORCH_CUDA_ARCH_LIST="3.5;3.7;5.0;5.2;6.0+PTX;6.1+PTX;7.0+PTX;7.5+PTX"
;;
cu101)
export CUDA_HOME=/usr/local/cuda-10.1/
export TORCH_CUDA_ARCH_LIST="3.5;3.7;5.0;5.2;6.0+PTX;6.1+PTX;7.0+PTX;7.5+PTX"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_model_zoo_configs() -> List[str]:
url="https://github.com/facebookresearch/detectron2",
description="Detectron2 is FAIR's next-generation research "
"platform for object detection and segmentation.",
packages=find_packages(exclude=("configs", "tests")),
packages=find_packages(exclude=("configs", "tests*")),
package_data={"detectron2.model_zoo": get_model_zoo_configs()},
python_requires=">=3.6",
install_requires=[
Expand Down

0 comments on commit 1e21fa4

Please sign in to comment.