python场景重建_单个RGB图像的整体三维场景理解与重建

该资源提供了ECCV 2018论文的代码,介绍了一种联合解析单个RGB图像并使用随机语法模型重建由CAD模型组成的整体3D配置的计算框架。通过分析-合成方法解决联合解析和重建问题,使用马尔科夫链蒙特卡洛推断最佳配置。提供安装指南、数据下载和推理示例。
摘要由CSDN通过智能技术生成

Holistic 3D Scene Understanding and Reconstruction from a Single RGB Image

Introduction

This repository contains the code for our ECCV 2018 paper (https://arxiv.org/abs/1808.02201).

In this work, we propose a computational framework to jointly parse a single RGB image and reconstruct a holistic 3D configuration composed by a set of CAD models using a stochastic grammar model. We solve this joint parsing and reconstruction problem in an analysis-by-synthesis fashion, seeking to minimize the differences between the input image and the rendered images generated by our 3D representation, over the space of depth, surface normal, and object segmentation map. The optimal configuration, represented by a parse graph, is inferred using Markov chain Monte Carlo.

Please refer to our paper or project for more details.

Citation

If you find our work inspiring or our code helpful in your research, please consider citing:

@inProceedings{huang2018holistic,

title={Holistic 3D Scene Parsing and Reconstruction from a Single RGB Image},

author = {Huang, Siyuan and Qi, Siyuan and Zhu, Yixin and Xiao, Yinxue and Xu, Yuanlu and Zhu, Song-Chun},

booktitle={ECCV},

year={2018}

}

Install

pip install -r requirments.txt

Install osmesa (offscreen rendering) and set up the environment following the instruction at osmesa/osmesa.md

Data

Download initialized parse graph of 1,000 images and learned prior knowledge from here, extract it with tar -vzxf data.tar.gz

Note we simplified the original CAD model in ShapeNetSem since the surface normal of some original models are flipped, this may hurt the performance a little bit.

Inference

Joint inference of 3D room layout and 3D objects with image id, for example, 11. python inference.py -lo 11

Inference takes about one hour for each image, we are working on accelerating the rendering process.

Infer latent human context and then joint infer layout, objects and human. Before that, you need to infer 3D room layout and 3D objects first or download our generated results. python inference.py -human 241

Note we only infer the latent human context in the subset of office due to limited data in 3D human-object interaction.

Sample possible human skeleton for a scene. python sample_human 241

License

Our code is released under the MIT license.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值