Skip to content

Commit

Permalink
Merge branch 'dev-1.x' into build_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangxu-0103 committed Apr 22, 2023
2 parents 7723048 + aa10365 commit dfc2f52
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .circleci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
python -m pip install git+ssh://git@github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
pip install git+ssh://git@github.com/open-mmlab/mmdetection.git@dev-3.x
mim install 'mmdet >= 3.0.0'
pip install -r requirements.txt
- run:
name: Build and install
Expand Down
2 changes: 1 addition & 1 deletion .dev_scripts/diff_coverage_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ done
if [ ! -z "${PY_FILES}" ]
then
if [ "$REUSE_COVERAGE_REPORT" == "0" ]; then
coverage run --branch --source mmocr -m pytest tests/
coverage run --branch --source mmdet3d -m pytest tests/
fi
coverage report --fail-under 80 -m $PY_FILES
interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-magic --ignore-regex "__repr__" --fail-under 95 $PY_FILES
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/merge_stage_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade
run: pip install pip --upgrade && pip install wheel
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
- name: Install MMEngine
Expand All @@ -43,7 +43,7 @@ jobs:
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
- name: Install MMDet
run: pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
run: mim install 'mmdet>=3.0.0'
- name: Install other dependencies
run: pip install -r requirements/tests.txt
- name: Build and install
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade
run: pip install pip --upgrade && pip install wheel
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
- name: Install MMEngine
Expand All @@ -97,7 +97,7 @@ jobs:
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
- name: Install MMDet
run: pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
run: mim install 'mmdet>=3.0.0'
- name: Install other dependencies
run: pip install -r requirements/tests.txt
- name: Build and install
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade
run: pip install pip --upgrade && pip install wheel
- name: Fetch GPG keys
run: |
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
Expand All @@ -147,7 +147,7 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
mim install 'mmdet>=3.0.0'
pip install -r requirements/tests.txt
- name: Build and install
run: pip install -e .
Expand All @@ -171,7 +171,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade
run: pip install pip --upgrade && pip install wheel
- name: Fetch GPG keys
run: |
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
Expand All @@ -183,7 +183,7 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
mim install 'mmdet>=3.0.0'
pip install -r requirements/tests.txt
- name: Build and install
run: pip install -e .
Expand All @@ -208,7 +208,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Upgrade pip
run: pip install pip --upgrade
run: pip install pip --upgrade && pip install wheel
- name: Install lmdb
run: pip install lmdb
- name: Install PyTorch
Expand All @@ -218,7 +218,7 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
mim install 'mmdet>=3.0.0'
pip install -r requirements/tests.txt
- name: Build and install
run: pip install -e .
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pr_stage_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install pip --upgrade
run: python -m pip install pip --upgrade && pip install wheel
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
- name: Install MMEngine
Expand All @@ -40,7 +40,7 @@ jobs:
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
- name: Install MMDet
run: pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
run: mim install 'mmdet>=3.0.0'
- name: Install other dependencies
run: pip install -r requirements/tests.txt
- name: Build and install
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade
run: pip install pip --upgrade && pip install wheel
- name: Fetch GPG keys
run: |
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
Expand All @@ -86,7 +86,7 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
mim install 'mmdet>=3.0.0'
pip install -r requirements/tests.txt
- name: Build and install
run: pip install -e .
Expand All @@ -111,7 +111,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install pip --upgrade
run: python -m pip install pip --upgrade && pip install wheel
- name: Install lmdb
run: pip install lmdb
- name: Install PyTorch
Expand All @@ -121,7 +121,7 @@ jobs:
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc4'
pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
mim install 'mmdet>=3.0.0'
pip install -r requirements/tests.txt
- name: Build and install
run: pip install -e .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_mim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade
run: pip install pip --upgrade && pip install wheel
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
- name: Install openmim
Expand Down
3 changes: 2 additions & 1 deletion mmdet3d/visualization/local_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ def set_points(self,
self.o3d_vis.remove_geometry(self.pcd)

# set points size in Open3D
self.o3d_vis.get_render_option().point_size = points_size
if self.o3d_vis.get_render_option() is not None:
self.o3d_vis.get_render_option().point_size = points_size

points = points.copy()
pcd = geometry.PointCloud()
Expand Down

0 comments on commit dfc2f52

Please sign in to comment.