OpenViSTAI · Agents · Blockchain · Crypto
Menu
Image & Video AI

Inpainting Gmcnn

Inpainting Gmcnn is an MIT-licensed Python research implementation of generative multi-column convolutional neural networks for filling masked or missing image regions. The repository contains TensorFlow and PyTorch implementations, pretrained-model testing instructions, a two-stage training workflow, and a tkinter-based interactive inpainting GUI.

Independent OpenViST project profile, based on linked sources.

Inpainting Gmcnn — Image completion experiments using rectangular and random-stroke masks
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 masked-image completion and can work with its documented Python and deep-learning framework prerequisites. The repository is relevant both for pretrained-model testing and for adapting or training the implementation.

Who it is for

  • Researchers studying image inpainting and image completion.
  • Developers adapting a neural image-restoration workflow for rectangular or stroke-shaped masks.
  • Practitioners who want to test the supplied pretrained models on image folders or explore the included GUI.

Documented uses

  • Reconstruct areas hidden by rectangular or random-stroke masks.
  • Test pretrained models on images in a folder.
  • Train and fine-tune the model using a dataset with paths to training images.
  • Explore masked-image completion through the included tkinter GUI.
Before you choose

Requirements & limits

The GitHub repository identifies an MIT license.

  • The README lists TensorFlow 1.4 or later but excludes TensorFlow 2.x; it also provides a PyTorch 1.0 implementation.
  • The README lists NVIDIA GPU or CPU for the framework requirements.
  • Pretrained-model testing requires downloading model files and placing them in checkpoints/.
  • The repository includes an interactive tkinter GUI, but its README documents the launch script rather than a packaged desktop release.
  • The README cautions that large masked regions can reduce pretrained-model performance and that results may be unstable on datasets with thousands of categories.

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

Test images with a TensorFlow pretrained model

Run the documented TensorFlow testing workflow on images in a folder.

Before you start

  • Python 3.5 or later
  • TensorFlow 1.4 or later, excluding TensorFlow 2.x
  • OpenCV, NumPy, SciPy and easydict
  • A downloaded pretrained model and images in a folder

Steps

  1. Clone the repository and change into its tensorflow directory.

  2. Download a listed pretrained model, unzip it and place it in checkpoints/.

  3. Call test.py with the image-folder path and model directory; the README gives a Paris streetview example using a rectangular-mask setting.

Expected outcome

The documented procedure runs the model's testing workflow on images from the specified folder.

Guide limitations

  • The example uses a pretrained model and does not document model installation as a separate package.
  • The README warns that pretrained-model performance degrades when masked areas are too large.
Source-based practical guide

Train and fine-tune the TensorFlow implementation

Follow the documented two-stage training procedure on a dataset with a file listing training-image paths.

Before you start

  • Python 3.5 or later
  • TensorFlow 1.4 or later, excluding TensorFlow 2.x
  • OpenCV, NumPy, SciPy and easydict
  • A dataset and a file containing full paths to its training images

Steps

  1. Clone the repository and change into its tensorflow directory.

  2. Run the documented pretraining command with the dataset name, training-file path, GPU ID setting, pretraining flag and batch size.

  3. After the first phase converges, run the documented fine-tuning command with the pretrained model path and the fine-tuning flag.

  4. Select rectangle or stroke masks with the documented mask_type option when invoking training.

Expected outcome

A two-stage training workflow: confidence-driven reconstruction pretraining followed by fine-tuning with adversarial and ID-MRF losses alongside reconstruction loss.

Guide limitations

  • The README provides command templates rather than a dataset-specific configuration.
  • The repository omits a step from the paper's ID-MRF implementation for computational efficiency.
  • The README warns that performance can be unstable on large datasets with thousands of categories.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
14 November 2026
Original website title
shepnerd/inpainting_gmcnn · Official homepage title · retained in its source language