All Projects → leVirve → lsun-room

leVirve / lsun-room

Licence: MIT license
[ICPR 2018] Indoor Scene Layout Estimation from a Single Image.

Programming Languages

python
139335 projects - #7 most used programming language
matlab
3953 projects
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to lsun-room

HierarchyLayout
[CVPR'19] Hierarchy Denoising Recursive Autoencoders for 3D Scene Layout Prediction
Stars: ✭ 20 (-78.72%)
Mutual labels:  layout-estimation
PanoDR
Code and models for "PanoDR: Spherical Panorama Diminished Reality for Indoor Scenes" presented at the OmniCV workshop of CVPR21.
Stars: ✭ 22 (-76.6%)
Mutual labels:  layout-estimation

Indoor Scene Layout Estimation from a Single Image

one_lsun_result_banner

Paper

Indoor Scene Layout Estimation from a Single Image.

Hung Jin Lin, Sheng-Wei Huang, Shang-Hong Lai, Chen-Kuo Chiang National Tsing Hua University.
International Conference on Pattern Recognition (ICPR), 2018.
Read in public [PDF].

Citation

If you find the work is useful, please use the following BibTeX entry.

@inproceedings{lin2018layoutestimation,
    Author = {Hung Jin Lin and Sheng-Wei Huang and Shang-Hong Lai and Chen-Kuo Chiang},
    Title = {Indoor Scene Layout Estimation from a Single Image},
    Booktitle = {2018 24th International Conference on Pattern Recognition (ICPR)},
    Year = {2018}
}

Prerequisite

  • Python 3.6+
  • PyTorch 1.0+
  • OneGAN newest is okay.
  • pip install -e requirements.txt

Dataset

Checkpoint

Pre-trained weight at Google Drive.

Cannot provide original checkpoint in paper due to the agreement, so this is a re-trained checkpoint for fast evaluation.

Updated Jan 2021.

Usage

Thanks @shuuchen for an all-in-one project, you may also refer to https://github.com/shuuchen/lsun-room-dsc!

  • Training

    • Dataset LSUN Room Layout Dataset into the folders of ./data/lsun_room.

      • images/: RGB image *.jpg of indoor room scene
      • layout_seg/: layout ground truth *.mat planar segmentation
    • Trained model will be saved to folder ./ckpts

    python main.py --phase train --edge_factor 0.2 --l2_factor 0.2 --name baseline
  • Validation

    • Validate on LSUN-Room / Hedau datasets.
    python main.py --phase eval --dataset hedau --folder ./data/hedau --pretrain_path {checkpoint_path}
  • Testing

    • On your photo or image sequence
    # single image
    python demo.py image --weight {checkpoint_path} --path {image_filepath}
    
    # images in folder
    python demo.py image --weight {checkpoint_path} --path {image_folder}
    • On video or webcam
    # video
    python demo.py video --weight {checkpoint_path} --path {test_video}
    
    # webcam
    python demo.py video --weight {checkpoint_path} --device 0
  • Toolkit

    # this is my modified script for usage demonstration,
    # you may need to modify the official Matlab code to evaluate your results.
    matlab -nojvm -nodisplay -nosplash -r "demo('$EXPERIMENT_OUTPUT_FOLDER'); exit;"

More Results

one_lsun_result_more

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].