Skip to content

Commit cc3842a

Browse files
authored
MMScan devkit (#88)
* mmscan-devkit v1 * mmscan-devkit v1 * mmscan-devkit first version * mmscan-devkit first version * mmscan-devkit first version * mmscan-devkit v1 * mmscan-devkit v1 * mmscan-devkit v1 * mmscan-devkit v1 * mmscan-devkit v1 * edit README.md * mmscan-devkit * mmscan-devkit * mmscan-devkit * fix some typos * fix some typos * fix some typos * add picture
1 parent 89aca6f commit cc3842a

File tree

463 files changed

+120338
-1006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

463 files changed

+120338
-1006
lines changed

.dev_scripts/covignore.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
# .*/utils.py
55

66
.*/__init__.py
7+
models/

.dev_scripts/diff_coverage_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ done
3535
if [ ! -z "${PY_FILES}" ]
3636
then
3737
if [ "$REUSE_COVERAGE_REPORT" == "0" ]; then
38-
coverage run --branch --source embodiedscan -m pytest tests/
38+
coverage run --branch --source mmscan -m pytest tests/
3939
fi
4040
coverage report --fail-under 80 -m $PY_FILES
4141
interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-magic --ignore-regex "__repr__" --fail-under 95 $PY_FILES

.dev_scripts/linter.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
yapf -r -i embodiedscan/ configs/ tests/ tools/
2-
isort embodiedscan/ configs/ tests/ tools/
1+
yapf -r -i mmscan/ data_preparation/
2+
isort mmscan/ data_preparation/
33
flake8 .

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- name: Check docstring coverage
2525
run: |
2626
pip install interrogate
27-
interrogate -v --ignore-init-method --ignore-magic --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 90 embodiedscan
27+
interrogate -v --ignore-init-method --ignore-magic --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 90 mmscan

.github/workflows/merge_stage_test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
3939
- name: Install system dependencies
4040
run: apt-get update && apt-get install -y git ffmpeg libturbojpeg
41-
- name: Install dependencies and EmbodiedScan
41+
- name: Install dependencies and MMScan
4242
run: python install.py all
4343
- name: Run unittests and generate coverage report
4444
run: |
45-
coverage run --branch --source embodiedscan -m pytest tests
45+
coverage run --branch --source mmscan -m pytest tests
4646
coverage xml
4747
coverage report -m
4848
@@ -67,10 +67,10 @@ jobs:
6767
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
6868
- name: Install system dependencies
6969
run: apt-get update && apt-get install -y git ffmpeg libturbojpeg
70-
- name: Install dependencies and EmbodiedScan
70+
- name: Install dependencies and MMScan
7171
run: python install.py all
7272
- name: Run unittests and generate coverage report
7373
run: |
74-
coverage run --branch --source embodiedscan -m pytest tests
74+
coverage run --branch --source mmscan -m pytest tests
7575
coverage xml
7676
coverage report -m

.github/workflows/pr_stage_test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
3535
- name: Install system dependencies
3636
run: apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6
37-
- name: Install dependencies and EmbodiedScan
37+
- name: Install dependencies and MMScan
3838
run: python install.py all
3939
- name: Run unittests and generate coverage report
4040
run: |
41-
coverage run --branch --source embodiedscan -m pytest tests/
41+
coverage run --branch --source mmscan -m pytest tests/
4242
coverage xml
4343
coverage report -m

.github/workflows/test_mim.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
- name: Build and install
4242
run: rm -rf .eggs && mim install -e .
4343
- name: test commands of mim
44-
run: mim search embodiedscan
44+
run: mim search mmscan

.gitignore

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ dist/
1414
downloads/
1515
eggs/
1616
.eggs/
17-
lib/
18-
lib64/
17+
1918
parts/
2019
sdist/
2120
var/
@@ -113,7 +112,6 @@ venv.bak/
113112

114113
# demo
115114
*.jpg
116-
*.png
117115
*.obj
118116
*.ply
119117
demo/data/*
@@ -127,7 +125,7 @@ data/3rscan
127125
data/matterport3d
128126
data/arkitscenes
129127
data/*.pkl
130-
data/*.json
128+
131129
exps/
132130
todo.md
133131

@@ -140,4 +138,3 @@ tools/*.sh
140138

141139
# test submission results
142140
*.pkl
143-
*.json

.pre-commit-config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ repos:
33
rev: 5.0.4
44
hooks:
55
- id: flake8
6+
exclude: '^models/.*'
7+
# - repo: https://github.com/ambv/black
8+
# rev: 23.9.1
9+
# hooks:
10+
# - id: black
11+
# args: [--line-length=79]
12+
# exclude: '^models/.*'
613
- repo: https://github.com/PyCQA/isort
714
rev: 5.11.5
815
hooks:

README.md

+216-237
Large diffs are not rendered by default.
3.11 MB
Binary file not shown.

assets/EmbodiedScan.pdf

-2.1 MB
Binary file not shown.

assets/MMScan_teaser.png

1.58 MB
Loading

assets/demo.png

2.01 MB
Loading

assets/demo_fig.png

-734 KB
Binary file not shown.

assets/framework.png

-217 KB
Binary file not shown.

assets/teaser.png

-583 KB
Binary file not shown.

data/README.md

-101
This file was deleted.

data_preparation/README.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
### Prepare MMscan info files.
2+
3+
Given the licenses of respective raw datasets, we recommend users download the raw data from their official websites and then organize them following the below guide.
4+
Detailed steps are shown as follows.
5+
6+
1. Download ScanNet v2 data [HERE](https://github.com/ScanNet/ScanNet). Link or move the folder to this level of directory.
7+
8+
2. Download 3RScan data [HERE](https://github.com/WaldJohannaU/3RScan). Link or move the folder to this level of directory.
9+
10+
3. Download Matterport3D data [HERE](https://github.com/niessner/Matterport). Link or move the folder to this level of directory.
11+
12+
4. Organize the file structure. You are recommanded to create a soft link to the raw data folder under `mmscan_data/embodiedscan_split/data`.
13+
14+
```
15+
mmscan_data/embodiedscan_split/data/
16+
├── scannet/
17+
│ ├── scans
18+
│ │ ├── <scene_id>
19+
│ │ ├── ...
20+
├── 3rscan/
21+
│ ├── <scene_id>
22+
│ ├── ...
23+
├── matterport3d/
24+
│ ├── <scene_id>
25+
│ ├── ...
26+
```
27+
28+
Additionally, create a `process_pcd` folder under `mmscan_data/embodiedscan_split` to store the results. Similarly, we recommend using a symbolic link, as the total file size might be a little large (approximately 21GB)
29+
30+
PS: If you have followed the embodiedscan tutorial to organize the data, you can skip these steps and link or copy the `data` folder to
31+
`mmscan_data/embodiedscan_split`.
32+
33+
After all the raw data is organized, the directory structure should be as below:
34+
35+
```
36+
mmscan_data
37+
├── embodiedscan_split/
38+
│ ├── data/
39+
│ ├── process_pcd/
40+
│ ├── embodiedscan-v1/
41+
│ ├── embodiedscan-v2/
42+
├── MMScan-beta-release
43+
44+
```
45+
46+
5. Read raw files and generate processed point cloud files, by running the following scripts.
47+
48+
```bash
49+
python process_all_scan.py --nproc 8
50+
# If your various file directories do not match the configuration settings, define them using --
51+
```
310 KB
Binary file not shown.

data_preparation/meta_data/all_scan.json

+1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"ZMojNkEp431": "1mp3d_0000", "uNb9QFRL6hY": "1mp3d_0001", "pRbA3pwrgk9": "1mp3d_0002", "1pXnuDYAj8r": "1mp3d_0003", "ULsKaCPVFJR": "1mp3d_0004", "D7N2EKCX4Sj": "1mp3d_0005", "sT4fr6TAbpF": "1mp3d_0006", "YmJkqBEsHnH": "1mp3d_0007", "VLzqgDo317F": "1mp3d_0008", "EU6Fwq7SyZv": "1mp3d_0009", "s8pcmisQ38h": "1mp3d_0010", "JeFG25nYj2p": "1mp3d_0011", "E9uDoFAP3SH": "1mp3d_0012", "PX4nDJXEHrG": "1mp3d_0013", "Vvot9Ly1tCj": "1mp3d_0014", "5ZKStnWn8Zo": "1mp3d_0015", "S9hNv5qa7GM": "1mp3d_0016", "p5wJjkQkbXX": "1mp3d_0017", "b8cTxDM8gDG": "1mp3d_0018", "mJXqzFtmKg4": "1mp3d_0019", "UwV83HsGsw3": "1mp3d_0020", "wc2JMjhGNzB": "1mp3d_0021", "XcA2TqTSSAj": "1mp3d_0022", "8WUmhLawc2A": "1mp3d_0023", "PuKPg4mmafe": "1mp3d_0024", "jh4fc5c5qoQ": "1mp3d_0025", "oLBMNvg9in8": "1mp3d_0026", "5LpN3gDmAk7": "1mp3d_0027", "WYY7iVyf5p8": "1mp3d_0028", "7y3sRwLe3Va": "1mp3d_0029", "JmbYfDe2QKZ": "1mp3d_0030", "jtcxE69GiFV": "1mp3d_0031", "TbHJrupSAjP": "1mp3d_0032", "kEZ7cmS4wCh": "1mp3d_0033", "q9vSo1VnCiC": "1mp3d_0034", "SN83YJsR3w2": "1mp3d_0035", "sKLMLpTHeUy": "1mp3d_0036", "pa4otMbVnkk": "1mp3d_0037", "QUCTc6BB5sX": "1mp3d_0038", "B6ByNegPMKs": "1mp3d_0039", "vyrNrziPKCB": "1mp3d_0040", "VFuaQ6m2Qom": "1mp3d_0041", "X7HyMhZNoso": "1mp3d_0042", "2azQ1b91cZZ": "1mp3d_0043", "VzqfbhrpDEA": "1mp3d_0044", "i5noydFURQK": "1mp3d_0045", "r1Q1Z4BcV1o": "1mp3d_0046", "Uxmj2M2itWa": "1mp3d_0047", "759xd9YjKW5": "1mp3d_0048", "yqstnuAEVhm": "1mp3d_0049", "r47D5H71a5s": "1mp3d_0050", "YFuZgdQ5vWj": "1mp3d_0051", "HxpKQynjfin": "1mp3d_0052", "rqfALeAoiTq": "1mp3d_0053", "ARNzJeq3xxb": "1mp3d_0054", "RPmz2sHmrrY": "1mp3d_0055", "Vt2qJdWjCF2": "1mp3d_0056", "V2XKFyX4ASd": "1mp3d_0057", "dhjEzFoUFzH": "1mp3d_0058", "zsNo4HB9uLZ": "1mp3d_0059", "aayBHfsNo7d": "1mp3d_0060", "rPc6DW4iMge": "1mp3d_0061", "1LXtFkjw3qL": "1mp3d_0062", "fzynW3qQPVF": "1mp3d_0063", "e9zR4mvMWw7": "1mp3d_0064", "2n8kARJN3HM": "1mp3d_0065", "ur6pFq6Qu1A": "1mp3d_0066", "ac26ZMwG7aT": "1mp3d_0067", "YVUC4YcDtcY": "1mp3d_0068", "gTV8FGcVJC9": "1mp3d_0069", "pLe4wQe7qrG": "1mp3d_0070", "Z6MFQCViBuw": "1mp3d_0071", "VVfe2KiqLaN": "1mp3d_0072", "qoiz87JEwZ2": "1mp3d_0073", "JF19kD82Mey": "1mp3d_0074", "17DRP5sb8fy": "1mp3d_0075", "82sE5b5pLXE": "1mp3d_0076", "5q7pvUzZiYa": "1mp3d_0077", "29hnd4uzFmX": "1mp3d_0078", "EDJbREhghzL": "1mp3d_0079", "gxdoqLR6rwA": "1mp3d_0080", "D7G3Y4RVNrH": "1mp3d_0081", "x8F5xyUWy9e": "1mp3d_0082", "GdvgFV5R1Z5": "1mp3d_0083", "cV4RVeZvu5T": "1mp3d_0084", "8194nk5LbLH": "1mp3d_0085", "2t7WUuJeko7": "1mp3d_0086", "Pm6F8kyY3z2": "1mp3d_0087", "gZ6f7yhEvPG": "1mp3d_0088", "gYvKGZ5eRqb": "1mp3d_0089"}
455 KB
Binary file not shown.

0 commit comments

Comments
 (0)