Practical overview
When it fits
Use it when you need a local research workflow for single-image piece-wise planar reconstruction and can supply the checkpoint or prepare the documented dataset.
Who it is for
- Computer-vision researchers exploring single-image planar 3D reconstruction.
- Developers building research prototypes that need image prediction or model training workflows.
Documented uses
- Predict planar 3D structure from an individual image using a pretrained checkpoint.
- Train the reconstruction network using prepared dataset files.
- Evaluate a checkpoint on validation data.
Requirements & limits
The repository is public and lists an MIT license. Its README documents a local Python setup and supplies a pretrained-model download option.
- Prediction uses a pretrained checkpoint and an image path.
- Training and evaluation depend on prepared NPZ data converted from PlaneNet TFRecord files.
- The documented setup uses Python 3, Anaconda, OpenCV and the repository requirements.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Predict planar 3D structure from one image
Run the repository's documented prediction command with a pretrained checkpoint and a local image.
Before you start
- A Python 3 environment with the repository dependencies installed.
- A pretrained checkpoint, fetched with Git LFS or downloaded from the link in the README.
- A local image file.
Steps
Clone the PlanarReconstruction repository.
Create and activate the documented Anaconda environment, install OpenCV and install dependencies from requirements.txt.
Run the command below, substituting the checkpoint and image paths.
python predict.py with resume_dir=pretrained.pt image_path=/path/to/image
Expected outcome
The prediction script is invoked for a single image using the specified pretrained checkpoint.
Guide limitations
- The README does not specify the prediction output format.
- The checkpoint must be obtained separately.
Prepare data and train the reconstruction network
Convert PlaneNet TFRecord data to NPZ files and invoke the documented training command.
Before you start
- A Python 3 environment with the repository dependencies installed.
- Training TFRecord files converted by PlaneNet.
- A directory for the converted data.
Steps
Obtain the training TFRecord file.
Run the command below, replacing the file and output paths.
python data_tools/convert_tfrecords.py --data_type=train --input_tfrecords_file=/path/to/planes_scannet_train.tfrecords --output_dir=/path/to/save/processd/dataRun the command below, using the directory containing the prepared data.
python main.py train with dataset.root_dir=/path/to/save/processd/data
Expected outcome
The documented training workflow is started with the prepared dataset directory.
Guide limitations
- The README requires users to obtain the TFRecord data separately.
- The documented conversion and training commands do not specify a training result or duration.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 November 2026
- Original website title
- svip-lab/PlanarReconstruction · Official homepage title · retained in its source language

