Skip to content

Pytorch demo code of our CVPR 2019 paper: DuLa-Net: A Dual-Projection Network for Estimating Room Layouts from a Single RGB Panorama

Notifications You must be signed in to change notification settings

zhigangjiang/DuLa-Net

 
 

Repository files navigation

Fork Branch

Added training script at train.py

DuLa-Net

This is the pytorch demo code of our CVPR 2019 paper
DuLa-Net: A Dual-Projection Network for Estimating Room Layouts from a Single RGB Panorama (Arxiv, Project)

By this repo you can estimate the 3D room layout from a single indoor RGB panorama. To see more details please refer to the paper or project page.

Prerequisites

  • Python3
  • Pytorch (CUDA >= 8.0)
  • OpenCV-Python
  • Pillow / scikit-image

recommend use: pip install -r requirements.txt

Pretrained Model

First, please download the pretrained models and copy to ./Model/ckpt/
The pretrained models are trained on our Realtor360 dataset with different backbone networks.

Pre-processing

The input panorama should be already aligned with the Manhattan World. We recommand you using the PanoBasic in Matlab or the python implementation here. Those tool can help you do the pre-processing to align the panorama.

Predict

Then using below command to load the pretrained model and predict the 3D layout.

python demo.py --input figs\001.jpg

If you want to use other backbone networks(default is resnet18).

python demo.py --input figs\001.jpg --backbone resnet50 --ckpt Model\ckpt\res50_realtor.pkl

Train

train:

python --id exp_resnet_18 --mode train --backbon=resnet18 --no_gamma

continue:

python --id exp_resnet_18 --mode continue --ckpt_path ./Model/ckpt/exp_resnet_18/resnet18_epoch_41_0.45.pth --backbon=resnet18 --no_gamma

More Results

:q: :

Dataset

The Realtor360 dataset currently couldn’t be made publicly available due to some legal privacy issue. Please refer to the MatterportLayout dataset(coming soon), which resembles the Realtor360 in all aspects.

pip install opencv-contrib-python

About

Pytorch demo code of our CVPR 2019 paper: DuLa-Net: A Dual-Projection Network for Estimating Room Layouts from a Single RGB Panorama

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%