Technical Note

On-device Generative Vision: Person Removal and Scene Synthesis

Compare measured MI-GAN and Telea inpainting on a desktop CPU and scope model deployment on a target device.

Provenance
Independent Research and Development
Project maturity
Interactive Demonstration
Public evidence classification
Measured benchmark · Reproducible experiment
Discuss a similar project Compare measured MI-GAN outputs Technical diagram
Hallway photograph with an illustrated person composited in the foreground
Input · Hallway photo with an illustrated foreground person
Actual MI-GAN output reconstructing the hallway background
After inpainting · MI-GAN output on a desktop CPU Source

Industry problem and engineering challenge

Removing a person requires reconstructing the background they covered. Device deployment adds constraints on output quality, memory and compute.

Engineering constraints

Mask error, fine occlusions and frame-to-frame consistency affect reconstruction. Operator compatibility, dynamic dimensions, precision and memory limits also affect NPU deployment.

Technical approach and architecture

From the mask and inpainting candidates to device validation
  1. Create the person mask

    Obtain a person mask, inspect errors at its edges and define the reconstruction region.

  2. Compare inpainting outputs

    Compare GAN-based restoration or diffusion-based reconstruction candidates under consistent quality criteria.

  3. Plan validation on the target device

    Convert the model, verify runtime compatibility, and validate the complete pipeline on the target workload and device.

Engineering workflow diagram. The public experiment covers MI-GAN and Telea on desktop CPU still images. The founder’s diffusion paper provides research context for another generation approach.

Implementation and deliverables

Use two public-domain backgrounds and controlled masks to run MI-GAN and OpenCV Telea. The clean backgrounds serve as references. An adjustable browser baseline is also available.

Outcome

Compare two scenes and their mask, reference and model output. The CPU results show both latency and image quality, including variation across scenes.

  • Browser-based synthetic reconstruction demo
  • Model conversion and device validation methods
  • Quality and performance acceptance criteria

Validation and evidence

Each measured condition uses five warm-ups and 30 runs. ONNX Runtime CPU uses four threads and batch size one. Timings include preprocessing and postprocessing. Masked PSNR uses the clean background.

Desktop CPU measurements on two scenes. Device deployment is a validation plan.

Project status and disclosure

Ownership and status
Independent Research and Development · Interactive Demonstration

Independent R&D reproduced with a public model and shareable inputs. The evidence covers desktop CPU still-image inference. NPU, diffusion, automatic person segmentation and full-video throughput await measurement.