ArticleslgStudy

science

Deep image prior

Deep image prior is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Deep image prior rather than just read about it. In short: Deep image prior is a type of convolutional neural network used to enhance a given image with no prior training data other than the image itself. A neural network is randomly initialized and used as prior to solve inverse problems such as noise reduction, super-resolution, and inpainting.

Key takeaways

  • Deep image prior belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Deep image prior to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Deep image prior from memory before moving on to harder problems.

Reference excerpt

Deep image prior is a type of convolutional neural network used to enhance a given image with no prior training data other than the image itself. A neural network is randomly initialized and used as prior to solve inverse problems such as noise reduction, super-resolution, and inpainting. Image statistics are captured by the structure of a convolutional image generator rather than by any previously learned capabilities.

Method

Background Inverse problems such as noise reduction, super-resolution, and inpainting can be formulated as the optimization task x∗=minxE(x;x0)+R(x), where x is an image, x0 a corrupted representation of that image, E(x;x0) is a task-dependent data term, and R(x) is the regularizer. Deep neural networks learn a generator/decoder x=fθ(z) which maps a random code vector z to an image x. The image corruption method used to generate x0 is selected for the specific application.

Specifics In this approach, the R(x) prior is replaced with the implicit prior captured by the neural network (where R(x)=0 for images that can be produced by a deep neural networks and R(x)=+∞ otherwise). This yields the equation for the minimizer θ∗=argminθE(fθ(z);x0) and the result of the optimization process x∗=fθ∗(z). The minimizer θ∗ (typically a gradient descent) starts from a randomly initialized parameters and descends into a local best result to yield the x∗ restoration function.

Overfitting A parameter θ may be used to recover any image, including its noise. However, the network is reluctant to pick up noise because it contains high impedance while useful signal offers low impedance. This results in the θ parameter approaching a good-looking local optimum so long as the number of iterations in the optimization process remains low enough not to overfit data.

Deep Neural Network Model Typically, the deep neural network model for deep image prior uses a U-Net like model without the skip connections that connect the encoder blocks with the decoder blocks. The authors in their paper mention that "Our findings here (and in other similar comparisons) seem to suggest that having deeper architecture is beneficial, and that having skip-connections that work so well for recognition tasks (such as semantic segmentation) is highly detrimental."

Applications

Denoising The principle of denoising is to recover an image x from a noisy observation x0, where x0=x+ϵ. The distribution ϵ is sometimes known (e.g.: profiling sensor and photon noise) and may optionally be incorporated into the model, though this process works well in blind denoising. The quadratic energy function E(x,x0)=||x−x0||2 is used as the data term, plugging it into the equation for θ∗ yields the optimization problem minθ||fθ(z)−x0||2.

Super-resolution Super-resolution is used to generate a higher resolution version of image x. The data term is set to E(x;x0)=||d(x)−x0||2 where d(·) is a downsampling operator such as Lanczos that decimates the image by a factor t.

Inpainting Inpainting is used to reconstruct a missing area in an image x0. These missing pixels are defined as the binary mask m∈{0,1}H×V. The data term is defined as E(x;x0)=||(x−x0)⊙m||2 (where ⊙ is the Hadamard product). The intuition behind this is that the loss is computed only on the known pixels in the image, and the network is going to learn enough about the image to fill in unknown parts of the image even though the computed loss doesn't include those pixels. This strategy is used to remove image watermarks by treating the watermark as missing pixels in the image.

Flash–no-flash reconstruction This approach may be extended to multiple images. A straightforward example mentioned by the author is the reconstruction of an image to obtain natural light and clarity from a flash–no-flash pair. Video reconstruction is possible but it requires optimizations to take into account the spatial differences.

Implementations A reference implementation rewritten in Python 3.6 with the PyTorch 0.4.0 library was released by the author under the Apache 2.0 license: deep-image-prior A TensorFlow-based implementation written in Python 2 and released under the CC-SA 3.0 license: deep-image-prior-tensorflow A Keras-based implementation written in Python 2 and released under the GPLv3: machine_learning_denoising

Example See Astronomy Picture of the Day (APOD) of 2024-02-18

References

Ulyanov, Dmitry; Vedaldi, Andrea; Lempitsky, Victor (30 November 2017). "Deep Image Prior". arXiv:1711.10925v2 [cs.CV].

Worked examples

Example 1 — a first encounter with Deep image prior

Start with the simplest possible case. Write down what Deep image prior claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Deep image prior before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Deep image prior ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Deep image prior

In research
Deep image prior appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Deep image prior in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Deep image prior is common in secondary-school and first-year university syllabi. It links to neighbouring topics Deep learning, so understanding it makes those chapters shorter.
In everyday life
Look for Deep image prior outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Deep image prior” →

How to study Deep image prior in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Deep image prior means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Deep image prior out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Deep image prior in simple terms?

Deep image prior is a type of convolutional neural network used to enhance a given image with no prior training data other than the image itself. A neural network is randomly initialized and used as prior to solve inverse problems such as noise reduction, super-resolution, and inpainting.

Why does Deep image prior matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Deep image prior?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Deep image prior.

Tags

  • Deep learning

Keep exploring