Skip to content

Commit 16f89cc

Browse files
authored
Merge branch 'dev' into dev
2 parents 74ed361 + c751192 commit 16f89cc

21 files changed

+200
-188
lines changed

.github/ISSUE_TEMPLATE/0-build-issue-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body:
1313
required: true
1414
- label: "I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip)."
1515
required: true
16-
- label: "I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch)."
16+
- label: "I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `main` branch)."
1717
required: true
1818

1919
- type: textarea

.github/ISSUE_TEMPLATE/1-bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body:
1313
required: true
1414
- label: "I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip)."
1515
required: true
16-
- label: "I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch)."
16+
- label: "I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `main` branch)."
1717
required: true
1818

1919
- type: textarea

.github/ISSUE_TEMPLATE/2-questions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body:
1313
required: true
1414
- label: "I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip)."
1515
required: true
16-
- label: "I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch)."
16+
- label: "I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `main` branch)."
1717
required: true
1818

1919
- type: textarea

.github/ISSUE_TEMPLATE/3-feature-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body:
1313
required: true
1414
- label: "I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip)."
1515
required: true
16-
- label: "I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch)."
16+
- label: "I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `main` branch)."
1717
required: true
1818

1919
- type: textarea

.github/workflows/style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Style check
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [master, dev]
6+
branches: [main, dev]
77
pull_request:
88
types: [opened, reopened, synchronize]
99

.github/workflows/ubuntu.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Ubuntu CI
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [master, dev]
6+
branches: [main, dev]
77
pull_request:
88
types: [opened, reopened, synchronize]
99

@@ -16,7 +16,7 @@ jobs:
1616
NPROC: 2
1717
steps:
1818
- name: Checkout source code
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: Setup cache
2121
uses: actions/cache@v3
2222
with:
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Python version
3434
uses: actions/setup-python@v4
3535
with:
36-
python-version: "3.10"
36+
python-version: "3.11"
3737
# Pre-installed packages: https://github.com/actions/runner-images/tree/main/images
3838
- name: Install ccache
3939
run: |

README.md

Lines changed: 115 additions & 101 deletions
Large diffs are not rendered by default.

ci/run_ci.sh

Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,42 @@
11
#!/usr/bin/env bash
2-
#
3-
# The following environment variables are required:
4-
# - NPROC
5-
#
6-
TENSORFLOW_VER="2.8.2"
7-
TORCH_GLNX_VER="1.13.1+cpu"
8-
# OPENVINO_DEV_VER="2021.4.2" # Numpy version conflict with TF 2.8.2
9-
PIP_VER="21.1.1"
10-
WHEEL_VER="0.38.4"
11-
STOOLS_VER="67.3.2"
12-
YAPF_VER="0.30.0"
13-
PYTEST_VER="7.1.2"
14-
PYTEST_RANDOMLY_VER="3.8.0"
152

163
set -euo pipefail
174

5+
NPROC=${NPROC:?'env var must be set to number of available CPUs.'}
6+
PIP_VER="23.2.1"
7+
188
echo 1. Prepare the Open3D-ML repo and install dependencies
199
echo
20-
export PATH_TO_OPEN3D_ML=$(pwd)
21-
# the build system of the main repo expects a master branch. make sure master exists
22-
git checkout -b master || true
23-
python -m pip install -U pip==$PIP_VER \
24-
wheel=="$WHEEL_VER" \
25-
setuptools=="$STOOLS_VER" \
26-
yapf=="$YAPF_VER" \
27-
pytest=="$PYTEST_VER" \
28-
pytest-randomly=="$PYTEST_RANDOMLY_VER"
29-
30-
python -m pip install -r requirements.txt
31-
echo $PATH_TO_OPEN3D_ML
10+
export PATH_TO_OPEN3D_ML="$PWD"
11+
echo "$PATH_TO_OPEN3D_ML"
12+
# the build system of the main repo expects a main branch. make sure main exists
13+
git checkout -b main || true
14+
python -m pip install -U pip==$PIP_VER
15+
python -m pip install -r requirements.txt \
16+
-r requirements-torch.txt
17+
# -r requirements-tensorflow.txt # TF disabled on Linux (Open3D PR#6288)
18+
# -r requirements-openvino.txt # Numpy version conflict with TF 2.8.2
3219
cd ..
3320
python -m pip install -U Cython
3421

3522
echo 2. clone Open3D and install dependencies
3623
echo
37-
git clone --recursive --branch master https://github.com/isl-org/Open3D.git
24+
git clone --branch main https://github.com/isl-org/Open3D.git
3825

3926
./Open3D/util/install_deps_ubuntu.sh assume-yes
40-
python -m pip install -U tensorflow-cpu==$TENSORFLOW_VER \
41-
torch==${TORCH_GLNX_VER} --extra-index-url https://download.pytorch.org/whl/cpu/
42-
# openvino-dev=="$OPENVINO_DEV_VER"
27+
python -m pip install -r Open3D/python/requirements.txt \
28+
-r Open3D/python/requirements_style.txt \
29+
-r Open3D/python/requirements_test.txt
4330

4431
echo 3. Configure for bundling the Open3D-ML part
4532
echo
4633
mkdir Open3D/build
4734
pushd Open3D/build
35+
# TF disabled on Linux (Open3D PR#6288)
4836
cmake -DBUNDLE_OPEN3D_ML=ON \
49-
-DOPEN3D_ML_ROOT=$PATH_TO_OPEN3D_ML \
37+
-DOPEN3D_ML_ROOT="${PATH_TO_OPEN3D_ML}" \
5038
-DGLIBCXX_USE_CXX11_ABI=OFF \
51-
-DBUILD_TENSORFLOW_OPS=ON \
39+
-DBUILD_TENSORFLOW_OPS=OFF \
5240
-DBUILD_PYTORCH_OPS=ON \
5341
-DBUILD_GUI=ON \
5442
-DBUILD_UNIT_TESTS=OFF \
@@ -66,12 +54,13 @@ echo
6654
popd
6755
mkdir test_workdir
6856
pushd test_workdir
69-
mv $PATH_TO_OPEN3D_ML/tests .
57+
mv "$PATH_TO_OPEN3D_ML/tests" .
7058
echo Add --randomly-seed=SEED to the test command to reproduce test order.
7159
python -m pytest tests
7260

73-
echo ... now do the same but in dev mode by setting OPEN3D_ML_ROOT
74-
export OPEN3D_ML_ROOT=$PATH_TO_OPEN3D_ML
61+
echo "... now do the same but in dev mode by setting OPEN3D_ML_ROOT"
62+
echo
63+
export OPEN3D_ML_ROOT="$PATH_TO_OPEN3D_ML"
7564
echo Add --randomly-seed=SEED to the test command to reproduce test order.
7665
python -m pytest tests
7766
unset OPEN3D_ML_ROOT

ml3d/tf/pipelines/object_detection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run_test(self):
6262
dataset = self.dataset
6363
cfg = self.cfg
6464

65-
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
65+
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
6666

6767
log_file_path = join(cfg.logs_dir, 'log_test_' + timestamp + '.txt')
6868
log.info("Logging in file : {}".format(log_file_path))
@@ -111,7 +111,7 @@ def run_valid(self, epoch=0):
111111
dataset = self.dataset
112112
cfg = self.cfg
113113

114-
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
114+
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
115115

116116
log_file_path = join(cfg.logs_dir, 'log_valid_' + timestamp + '.txt')
117117
log.info("Logging in file : {}".format(log_file_path))
@@ -212,7 +212,7 @@ def run_train(self):
212212

213213
cfg = self.cfg
214214

215-
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
215+
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
216216
log_file_path = join(cfg.logs_dir, 'log_train_' + timestamp + '.txt')
217217
log.info("Logging in file : {}".format(log_file_path))
218218
log.addHandler(logging.FileHandler(log_file_path))

ml3d/tf/pipelines/semantic_segmentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def run_test(self):
147147
cfg = self.cfg
148148

149149
self.load_ckpt(model.cfg.ckpt_path)
150-
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
150+
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
151151

152152
log_file_path = join(cfg.logs_dir, 'log_test_' + timestamp + '.txt')
153153
log.info("Logging in file : {}".format(log_file_path))
@@ -192,7 +192,7 @@ def run_train(self):
192192
cfg = self.cfg
193193

194194
log.info(model)
195-
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
195+
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
196196
log_file_path = join(cfg.logs_dir, 'log_train_' + timestamp + '.txt')
197197
log.info("Logging in file : {}".format(log_file_path))
198198
log.addHandler(logging.FileHandler(log_file_path))

0 commit comments

Comments
 (0)