OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Planarreconstruction

Planarreconstruction is a Python and PyTorch research implementation of a model that reconstructs piece-wise planar 3D structure from a single image using associative embedding.

Independent OpenViST project profile, based on linked sources.

Planarreconstruction — Single-image planar scene reconstruction experiments
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Clone the PlanarReconstruction repository.

  2. Create and activate the documented Anaconda environment, install OpenCV and install dependencies from requirements.txt.

  3. Run the command below, substituting the checkpoint and image paths.

    Documented command
    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.
Source-based practical guide

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

  1. Obtain the training TFRecord file.

  2. Run the command below, replacing the file and output paths.

    Documented command
    python data_tools/convert_tfrecords.py --data_type=train --input_tfrecords_file=/path/to/planes_scannet_train.tfrecords --output_dir=/path/to/save/processd/data
  3. Run the command below, using the directory containing the prepared data.

    Documented command
    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.
Evidence and transparency

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