OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Sparse To Dense.pytorch

Sparse To Dense.pytorch is a Python research implementation of deep regression neural networks for predicting dense depth from RGB or grayscale images, sparse depth samples, or both together. It provides training and evaluation scripts built with PyTorch.

Independent OpenViST project profile, based on linked sources.

Sparse To Dense.pytorch — Comparing the documented RGB, grayscale, sparse-depth, and combined input modes
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you need research code for training or evaluating depth-prediction networks with image input, sparse depth input, or a combination of the two, and can meet the repository's documented CUDA, dependency, and dataset requirements.

Who it is for

  • Researchers and developers studying depth estimation or depth completion.
  • Practitioners who want to train or evaluate a depth-prediction model using the documented NYU Depth V2 or KITTI Odometry data.

Documented uses

  • Train a depth predictor from RGB or grayscale images.
  • Train a depth predictor from sparse depth samples or combined image-and-depth input.
  • Evaluate a trained model without running a new training job.
Before you choose

Requirements & limits

The repository is public and identified as open source. The README documents a local Python and PyTorch workflow rather than a hosted application.

  • The README specifies PyTorch 0.4.0 and a CUDA GPU, which are relevant to preparing an environment.
  • Training uses preprocessed HDF5 datasets; the README lists 32 GB for NYU Depth V2 and 81 GB for KITTI.
  • The README lists trained models and provides an evaluation option, so evaluation can be considered separately from training.
  • Benchmark tables are attributed to the original Torch repository, not presented as measurements from this PyTorch implementation.

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

Train a combined RGB-and-sparse-depth predictor

Set up the documented NYU Depth V2 training workflow and start training with RGB plus 100 random sparse depth samples.

Before you start

  • Python 3 and PyTorch 0.4.0
  • A machine with a CUDA GPU
  • HDF5 tools and the documented Python packages: h5py, matplotlib, imageio, scikit-image, and opencv-python
  • Preprocessed NYU Depth V2 dataset in HDF5 format, placed under the data folder; the README lists 32 GB of storage

Steps

  1. Install PyTorch on a machine with a CUDA GPU and install the HDF5 and Python dependencies listed in the repository README.

  2. Download the preprocessed NYU Depth V2 HDF5 dataset and place it under the repository's data folder.

  3. Run the command below to inspect the training options.

    Documented command
    python3 main.py --help
  4. Run the command below.

    Documented command
    python3 main.py -a resnet50 -d deconv3 -m rgbd -s 100 --data nyudepthv2

Expected outcome

The repository's example starts training with a ResNet50 encoder, a deconvolution decoder of kernel size 3, RGB input, and 100 random sparse depth samples; results are saved under the results folder.

Guide limitations

  • The README's example and requirements describe a research workflow; they do not establish performance on other datasets or environments.
  • The README lists Python 3 and PyTorch 0.4.0 as the tested versions.
Source-based practical guide

Evaluate an existing trained model

Use the repository's documented evaluation option to test a trained model without training.

Before you start

  • Python 3 and the repository's documented dependencies
  • A trained model file

Steps

  1. From the repository, run the command below to inspect the available options.

    Documented command
    python3 main.py --help
  2. Run the command below, replacing the placeholder with the model path.

    Documented command
    python3 main.py --evaluate [path_to_trained_model]

Expected outcome

The command invokes the repository's evaluation mode for the supplied trained model without starting training.

Guide limitations

  • The README does not provide a specific evaluation command output or a guarantee of performance.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
14 November 2026
Original website title
fangchangma/sparse-to-dense.pytorch · Official homepage title · retained in its source language