Home

Awesome

Stereo-360-Layout

This is the implementation of our paper

Overview

Installation

For PyTorch and PyTorch3d, please follow the instructions below:

conda create -n [yourname] python=3.9
conda activate [yourname]
conda install -c pytorch pytorch=1.9.1 torchvision cudatoolkit=10.2
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install pytorch3d -c pytorch3d

Other needed package are provided in requirements.txt, you can install them via PyPI.

Data Preparation

For MatterportLayout, we follow the preparation on HorizonNet, please refer to here for detailed.

For ZInD, You can preprocess it with our provided script preprocess_zind.py. Besides, to make our custom dataset work, you have to copy the room_shape_simplicity_labels.json from ZInD repo to the root of ZInD dataset on your device.

Data Selection

For active data selection, just execute data_selection.py. The script will evaluate each sample with our proposed label-free metric with the pretrained weight provided in argument --pth. If the path of pretrained weight is not provided, data will be sampled randomly. The sample result will be recorded in the argument --stored_file.

Training

Examples

python train.py --id [yourid] --sup_root_dir /path/to/sup --unsup_root_dir /path/to/unsup --valid_root_dir /path/to/valid
python train.py --id [yourid] --valid_root_dir /path/to/valid --eval_only