← 开源
astra-vision

MonoScene

[CVPR 2022] "MonoScene: Monocular 3D Semantic Scene Completion": 3D Semantic Occupancy Prediction from a single image

ModelsVision modelsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
822
Star
79
Fork
+0
本周
1
贡献者
创建于 2021-11-26 · 更新于 2026-09-25 · 今日第 13461 名
主要开发者

astra-vision/MonoScene 排名第 13,461,有 822 个星标。

同类别比较

astra-vision/MonoScene 排名第 13,461,此处有 8 个同类条目;Tencent-Hunyuan/Hunyuan-A13B 排名第 13,460。

同类别比较
名称排名指标
titu1994/neural-image-assessment13,448
语言:
Python
星标数:
824
分叉数:
218
简介:
Implementation of NIMA: Neural Image Assessment in Keras
pbcquoc/vietocr13,457
语言:
Jupyter Notebook
星标数:
823
分叉数:
258
简介:
Transformer OCR
SUFE-AIFLM-Lab/Fin-R113,459
星标数:
822
分叉数:
83
简介:
Fin-R1 is a large language model for complex financial reasoning developed and open-sourced with the joint efforts of the SUFE-AIFLM-Lab at the School of Statistics and Data Science, Shanghai University of Finance and Economics and FinStep.AI.
Tencent-Hunyuan/Hunyuan-A13B13,460
语言:
Python
星标数:
822
分叉数:
118
简介:
Tencent Hunyuan A13B (short as Hunyuan-A13B), an innovative and open-source LLM built on a fine-grained MoE architecture.
DriveVLA/OpenDriveVLA13,472
语言:
Python
星标数:
821
分叉数:
85
简介:
[AAAI 2026] OpenDriveVLA: Towards End-to-end Autonomous Driving with Large Vision Language Action Model
awni/ecg13,474
语言:
Python
星标数:
821
分叉数:
282
简介:
Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network
microsoft/RegionCLIP13,492
语言:
Python
星标数:
819
分叉数:
61
简介:
[CVPR 2022] Official code for "RegionCLIP: Region-based Language-Image Pretraining"
zhanshijinwat/Steel-LLM13,510
语言:
Jupyter Notebook
星标数:
818
分叉数:
85
简介:
Train a 1B LLM with 1T tokens from scratch by personal
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Vision models
关键词3D
星标数822
分叉数79
贡献者1
创建日期2021-11-26
更新日期2026-09-25
1 天星标数0
7 天星标数0
排名13,461
上次排名13,354
排名变化-107
7 天星标排名13,948
上次 7 天星标排名13,971
7 天星标排名变化23
总星标排名13,034
上次总星标排名13,012
总星标排名变化-22
README 摘录

MonoScene: Monocular 3D Semantic Scene Completion **MonoScene: Monocular 3D Semantic Scene Completion**\ Anh-Quan Cao, Raoul de Charette Inria, Paris, France. This code was implemented with python 3. Finally, install MonoScene: Datasets SemanticKITTI 1. Create a folder to store SemanticKITTI preprocess data at . Store paths in environment variables for faster access (**Note: folder 'dataset' is in /path/to/semantic_kitti**): 4. Preprocess the data to generate labels at a lower scale, which are used to compute the ground truth relation

matrices: NYUv2 1. Create a folder to store NYUv2 preprocess data at . Store paths in environment variables for faster access: 4. Preprocess the data to generate labels at a lower scale, which are used to compute the ground truth relation matrices: KITTI-360 1. You can download either the **Perspective Images for Train & Val (128G)** or the **Perspective Images for Test (1. Create a folder to store KITTI-360 data at . Store paths in environment variables for faster access: Pretrained

models Download MonoScene pretrained models on SemanticKITTI and on NYUv2, then put them in the folder . Running MonoScene Training To train MonoScene with SemanticKITTI, type: SemanticKITTI 1. Create folders to store training logs at **/path/to/kitti/logdir**. Train MonoScene using 4 GPUs with batch_size of 4 (1 item per GPU) on Semantic KITTI: NYUv2 1. Create folders to store training logs at **/path/to/NYU/logdir**. Train MonoScene using 2 GPUs with batch_size of 4 (2 item

per GPU) on NYUv2: Evaluating SemanticKITTI To evaluate MonoScene on SemanticKITTI validation set, type: NYUv2 To evaluate MonoScene on NYUv2 test set, type: Inference & Visualization Inference Please create folder **/path/to/monoscene/output** to store the MonoScene outputs and store in environment variable: NYUv2 To generate the predictions on the NYUv2 test set, type: Semantic KITTI To generate the predictions on the Semantic KITTI validation set, type: KITTI-360 Here we use the sequence **2013_05_28_drive_0009_sync

**, you can use other sequences. To generate the predictions on KITTI-360, type: Visualization **NOTE:** if you have trouble using mayavi, you can use an alternative visualization code using Open3D. We use mayavi to visualize the predictions. Please install mayavi following the official installation instruction. Then, use the following commands to visualize the outputs on respective datasets. If you have **trouble installing mayavi**, you can take a look at our **mayavi installation guide**. If you have **trouble fixing mayavi viewpoint

**, you can take a look at **our tutorial**. You also need to install some packages used by the visualization scripts using the commands: NYUv2 Semantic KITTI KITTI-360 Related camera-only 3D occupancy prediction projects NDC-Scene: Boost Monocular 3D Semantic Scene Completion in Normalized Device Coordinates Space, ICCV 2023. OG: Equip vision occupancy with instance segmentation and visual grounding, arXiv 2023. FB-OCC: 3D Occupancy Prediction based on Forward-Backward View Transformation, CVPRW 2023. Symphonize 3D Semantic Scene Completion

with Contextual Instance Queries, arXiv 2023. OVO: Open-Vocabulary Occupancy, arXiv 2023. SceneRF: Self-Supervised Monocular 3D Scene Reconstruction with

常见问题

记录了多少星标和分叉?

astra-vision/MonoScene 有 822 个星标和 79 个分叉。

仓库排名是多少?

astra-vision/MonoScene 排名第 13,461。

记录的语言和类别是什么?

astra-vision/MonoScene 有 822 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

astra-vision/MonoScene 与 Tencent-Hunyuan/Hunyuan-A13B 比较,后者排名第 13,460,有 822 个星标。

README

MonoScene: Monocular 3D Semantic Scene Completion

MonoScene: Monocular 3D Semantic Scene Completion
Anh-Quan Cao, Raoul de Charette
Inria, Paris, France.
CVPR 2022

If you find this work or code useful, please cite our paper and give this repo a star:

@inproceedings{cao2022monoscene,
    title={MonoScene: Monocular 3D Semantic Scene Completion}, 
    author={Anh-Quan Cao and Raoul de Charette},
    booktitle={CVPR},
    year={2022}
}

Teaser

|SemanticKITTI | KITTI-360
(Trained on SemanticKITTI) | |:------------:|:------:| | | |

NYUv2

Table of Content

News

Preparing MonoScene

Installation

  1. Create conda environment:
$ conda create -y -n monoscene python=3.7
$ conda activate monoscene
  1. This code was implemented with python 3.7, pytorch 1.7.1 and CUDA 10.2. Please install PyTorch:
$ conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=10.2 -c pytorch
  1. Install the additional dependencies:
$ cd MonoScene/
$ pip install -r requirements.txt
  1. Install tbb:
$ conda install -c bioconda tbb=2020.2
  1. Downgrade torchmetrics to 0.6.0
$ pip install torchmetrics==0.6.0
  1. Finally, install MonoScene:
$ pip install -e ./

Datasets

SemanticKITTI

  1. You need to download

    • The Semantic Scene Completion dataset v1.1 (SemanticKITTI voxel data (700 MB)) from SemanticKITTI website
    • The KITTI Odometry Benchmark calibration data (Download odometry data set (calibration files, 1 MB)) and the RGB images (Download odometry data set (color, 65 GB)) from KITTI Odometry website.
    • The dataset folder at /path/to/semantic_kitti should have the following structure:
    └── /path/to/semantic_kitti/
      └── dataset
        ├── poses
        └── sequences
    
  2. Create a folder to store SemanticKITTI preprocess data at /path/to/kitti/preprocess/folder.

  3. Store paths in environment variables for faster access (Note: folder 'dataset' is in /path/to/semantic_kitti):

$ export KITTI_PREPROCESS=/path/to/kitti/preprocess/folder
$ export KITTI_ROOT=/path/to/semantic_kitti 
  1. Preprocess the data to generate labels at a lower scale, which are used to compute the ground truth relation matrices:
$ cd MonoScene/
$ python monoscene/data/semantic_kitti/preprocess.py kitti_root=$KITTI_ROOT kitti_preprocess_root=$KITTI_PREPROCESS

NYUv2

  1. Download the NYUv2 dataset.

  2. Create a folder to store NYUv2 preprocess data at /path/to/NYU/preprocess/folder.

  3. Store paths in environment variables for faster access:

$ export NYU_PREPROCESS=/path/to/NYU/preprocess/folder
$ export NYU_ROOT=/path/to/NYU/depthbin 
  1. Preprocess the data to generate labels at a lower scale, which are used to compute the ground truth relation matrices:
$ cd MonoScene/
$ python monoscene/data/NYU/preprocess.py NYU_root=$NYU_ROOT NYU_preprocess_root=$NYU_PREPROCESS

KITTI-360

  1. We only perform inference on KITTI-360. You can download either the Perspective Images for Train & Val (128G) or the Perspective Images for Test (1.5G) at http://www.cvlibs.net/datasets/kitti-360/download.php.

  2. Create a folder to store KITTI-360 data at /path/to/KITTI-360/folder.

  3. Store paths in environment variables for faster access:

$ export KITTI_360_ROOT=/path/to/KITTI-360

Pretrained models

Download MonoScene pretrained models on SemanticKITTI and on NYUv2, then put them in the folder /path/to/MonoScene/trained_models.

Running MonoScene

Training

To train MonoScene with SemanticKITTI, type:

SemanticKITTI

  1. Create folders to store training logs at /path/to/kitti/logdir.

  2. Store in an environment variable:

$ export KITTI_LOG=/path/to/kitti/logdir
  1. Train MonoScene using 4 GPUs with batch_size of 4 (1 item per GPU) on Semantic KITTI:
$ cd MonoScene/
$ python monoscene/scripts/train_monoscene.py \
    dataset=kitti \
    enable_log=true \
    kitti_root=$KITTI_ROOT \
    kitti_preprocess_root=$KITTI_PREPROCESS\
    kitti_logdir=$KITTI_LOG \
    n_gpus=4 batch_size=4    

NYUv2

  1. Create folders to store training logs at /path/to/NYU/logdir.

  2. Store in an environment variable:

$ export NYU_LOG=/path/to/NYU/logdir
  1. Train MonoScene using 2 GPUs with batch_size of 4 (2 item per GPU) on NYUv2:
$ cd MonoScene/
$ python monoscene/scripts/train_monoscene.py \
    dataset=NYU \
    NYU_root=$NYU_ROOT \
    NYU_preprocess_root=$NYU_PREPROCESS \
    logdir=$NYU_LOG \
    n_gpus=2 batch_size=4

Evaluating

SemanticKITTI

To evaluate MonoScene on SemanticKITTI validation set, type:

$ cd MonoScene/
$ python monoscene/scripts/eval_monoscene.py \
    dataset=kitti \
    kitti_root=$KITTI_ROOT \
    kitti_preprocess_root=$KITTI_PREPROCESS \
    n_gpus=1 batch_size=1

NYUv2

To evaluate MonoScene on NYUv2 test set, type:

$ cd MonoScene/
$ python monoscene/scripts/eval_monoscene.py \
    dataset=NYU \
    NYU_root=$NYU_ROOT\
    NYU_preprocess_root=$NYU_PREPROCESS \
    n_gpus=1 batch_size=1

Inference & Visualization

Inference

Please create folder /path/to/monoscene/output to store the MonoScene outputs and store in environment variable:

export MONOSCENE_OUTPUT=/path/to/monoscene/output

NYUv2

To generate the predictions on the NYUv2 test set, type:

$ cd MonoScene/
$ python monoscene/scripts/generate_output.py \
    +output_path=$MONOSCENE_OUTPUT \
    dataset=NYU \
    NYU_root=$NYU_ROOT \
    NYU_preprocess_root=$NYU_PREPROCESS \
    n_gpus=1 batch_size=1

Semantic KITTI

To generate the predictions on the Semantic KITTI validation set, type:

$ cd MonoScene/
$ python monoscene/scripts/generate_output.py \
    +output_path=$MONOSCENE_OUTPUT \
    dataset=kitti \
    kitti_root=$KITTI_ROOT \
    kitti_preprocess_root=$KITTI_PREPROCESS \
    n_gpus=1 batch_size=1

KITTI-360

Here we use the sequence 2013_05_28_drive_0009_sync, you can use other sequences. To generate the predictions on KITTI-360, type:

$ cd MonoScene/
$ python monoscene/scripts/generate_output.py \
    +output_path=$MONOSCENE_OUTPUT \
    dataset=kitti_360 \
    +kitti_360_root=$KITTI_360_ROOT \
    +kitti_360_sequence=2013_05_28_drive_0009_sync  \
    n_gpus=1 batch_size=1

Visualization

NOTE: if you have trouble using mayavi, you can use an alternative visualization code using Open3D.

We use mayavi to visualize the predictions. Please install mayavi following the official installation instruction. Then, use the following commands to visualize the outputs on respective datasets.

If you have trouble installing mayavi, you can take a look at our mayavi installation guide.

If you have trouble fixing mayavi viewpoint, you can take a look at our tutorial.

You also need to install some packages used by the visualization scripts using the commands:

pip install tqdm
pip install omegaconf
pip install hydra-core

NYUv2

$ cd MonoScene/
$ python monoscene/scripts/visualization/NYU_vis_pred.py +file=/path/to/output/file.pkl

Semantic KITTI

$ cd MonoScene/
$ python monoscene/scripts/visualization/kitti_vis_pred.py +file=/path/to/output/file.pkl +dataset=kitt

KITTI-360

$ cd MonoScene/ 
$ python monoscene/scripts/visualization/kitti_vis_pred.py +file=/path/to/output/file.pkl +dataset=kitti_360

Related camera-only 3D occupancy prediction projects

Datasets/Benchmarks

License

MonoScene is released under the Apache 2.0 license.

排名相邻
同类项目