explaingit

davidiagraid/hallucinations_invpb

Analysis updated 2026-05-18

0Jupyter NotebookAudience · researcherComplexity · 5/5LicenseSetup · hard

TLDR

Research code reproducing a paper's experiments on how much wrong detail image reconstruction models can invent, across satellite, MRI, and MNIST images.

Mindmap

mindmap
  root((hallucinations_invpb))
    What it does
      Reproduces paper experiments
      Measures reconstruction errors
      Bounds invented detail
    Tech stack
      Python
      Jupyter Notebook
      PyTorch
      torchvision
    Use cases
      Satellite image super-resolution
      MRI reconstruction study
      MNIST super-resolution
    Audience
      Researchers
      ML practitioners

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reproduce the paper's experiments on hallucinated detail in image reconstruction

USE CASE 2

Study super-resolution of Sentinel 2 satellite imagery

USE CASE 3

Study MRI reconstruction from undersampled scan data

USE CASE 4

Study MNIST super-resolution with VDSR models

What is it built with?

PythonJupyter NotebookPyTorchtorchvision

How does it compare?

davidiagraid/hallucinations_invpbbobymicroby/fastbookdavidbeard741/openusd
Stars00
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Last pushed2022-12-11
MaintenanceDormant
Setup difficultyhardeasyeasy
Complexity5/52/52/5
Audienceresearchervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Needs separate large dataset downloads plus one to two hours of CPU preprocessing for the MRI experiments alone.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

This repository is the code that accompanies a research paper titled On Hallucinations in Inverse Problems: Fundamental Limits and Computable Bounds. Inverse problems are a type of task where you try to reconstruct a full, clean signal, like an image, from partial or noisy data. Hallucinations here means confident but wrong details that a reconstruction method invents when it fills in missing information. The paper studies mathematical limits on how bad these invented details can be, and this repository lets others reproduce the paper's experiments. The code covers three separate applications: sharpening low-resolution Sentinel 2 satellite images, speeding up MRI scans by reconstructing them from less raw data than usual, and increasing the resolution of MNIST handwritten digit images. It relies on a separate library called AccuracyBounds for computing the kernel sizes used in the underlying calculations. Because the three applications need different, sometimes conflicting Python packages, the instructions set up two separate virtual environments: one shared between the MRI and MNIST experiments, and one for the satellite image experiments. Each application then needs its own dataset downloaded separately, the satellite data from a Hugging Face dataset, the MRI data from the official Fast MRI website, and the MNIST data automatically through torchvision. Running an experiment typically means computing an operator specific to that problem, running a script that pastes in extra detail to visualize where hallucinations occur, and then working through a Jupyter notebook that walks through the remaining analysis with adjustable parameters such as patch size, noise level, and batch size. For MRI experiments, preparing the dataset alone can take one to two hours on a CPU. The project is released under the MIT license and is aimed at researchers working on inverse problems, image reconstruction, or the reliability of machine learning models.

Copy-paste prompts

Prompt 1
Walk me through setting up the two Python virtual environments this repo needs
Prompt 2
Explain in plain terms what an inverse problem and a hallucination bound mean in this paper's context
Prompt 3
Help me download and structure the Sentinel 2 dataset the way this repo expects
Prompt 4
Show me how the detail pasting scripts visualize hallucinated content in a reconstruction

Frequently asked questions

What is hallucinations_invpb?

Research code reproducing a paper's experiments on how much wrong detail image reconstruction models can invent, across satellite, MRI, and MNIST images.

What language is hallucinations_invpb written in?

Mainly Jupyter Notebook. The stack also includes Python, Jupyter Notebook, PyTorch.

What license does hallucinations_invpb use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is hallucinations_invpb to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is hallucinations_invpb for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.