Enikő Biró
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Kernel-Predicting Convolutional Networks for Denoising Monte Carlo Renderings (Bako S, Vogels T et al. 2017) ## Introduction - Photorealistic imaginery with physically-based Monte Carlo (MC) path tracing - MC rendering - Immense computational cost - Long rendering time for noise-free images - Many of the renderers ship with integrated denoisers (Pixar's RenderMan, Corona renderer, Chaos Group's VRay) Contribution - First deep learning solution for denoising MC renderings which was trained and evaluated on actual production data - A novel kernel-prediction CNN architecture that computes the locally optimal neighborhood weights - Design: - A two-network framework for denoising diffuse and specular components of the image separately - A simple normalization procedure that significantly improves the approach (as well as previous methods) for images with high dynamic range ## Previous work Image-space General Monte Carlo Denoising: - Joint bilateral - Gaussian blur, but only consider neighbors that have values similar enough - Joint -> auxiliary buffers (two images, etc.) - Joint non-local means - Takes a mean of all pixels in the image, weighted by how similar these pixels are to the target pixel - It was shown that joint filtering methods, such as those cited above, can be interpreted as linear regressions using a zero-order model Neural Networks: - Using neural networks for denoising (e.g. recurrent denoising autoencoder by Chaitanya et al., 2017) Problems: - training a network to compute a denoised color from only a raw, noisy color buffer causes overblurring since the network cannot distinguish between scene noise and scene detail - since the rendered images have high dynamic range, direct training can cause unstable weights ## Theoretical background Per-pixel data: $$ \mathbf{x}_{p}=\{\mathbf{c}_{p}, \mathbf{f}_{p}\} $$ where $\mathbf{c}_{p}$ represents the RGB color channels and $\mathbf{f}_{p}$ is a set of $D$ auxiliary features. The ideal denoising parameters at every pixel can be written as: $$ \widehat{\boldsymbol{\theta}}_{p}=\underset{\boldsymbol{\theta}}{\operatorname{argmin}} \ell\left(\overline{\mathbf{c}}_{p}, g\left(\mathbf{X}_{p} ; \boldsymbol{\theta}\right)\right) $$ where $\overline{\mathbf{c}}_{p}$ is the ground truth result, $\mathbf{X}_{p}$ is a block of per-pixel vectors around the neighborhood of pixel $p$, and $\widehat{\mathbf{c}}_{p} = g\left(\mathbf{X}_{p} ; \boldsymbol{\theta}\right)$ is the denoised value. Ground truth values are not available at run time, so a weighted least-squares regression on the color values aroung the pixel's neighborhood is applied: $$ \widehat{\boldsymbol{\theta}}_{p}=\underset{\boldsymbol{\theta}}{\operatorname{argmin}} \sum_{q \in \mathcal{N}(p)}\left(\mathbf{c}_{q}-\boldsymbol{\theta}^{\top} \phi\left(\mathbf{x}_{q}\right)\right)^{2} \omega\left(\mathbf{x}_{p}, \mathbf{x}_{q}\right) $$ Supervised learning approach: $$ \widehat{\boldsymbol{\theta}}=\underset{\boldsymbol{\theta}}{\operatorname{argmin}} \frac{1}{N} \sum_{i=1}^{N} \ell\left(\overline{\mathbf{c}}_{i}, g\left(\mathbf{X}_{i} ; \boldsymbol{\theta}\right)\right) $$ Three issues: - $g$ must be flexible enough (choice: deep convolutional network) - $l$ (choice: absolute value loss function) - must capture perceptually important differences between the estimated and reference color - must be easy to evaluate and optimize - large training dataset $D$ ## Deep Convolutional Denoising Since each layer of a CNN applies multiple spatial kernels with learnable weights that are shared over the entire image space, they are naturally suited for the denoising task and have indeed been previously used for traditional image denoising. Furthermore, by joining many such layers together with activation functions, CNNs are able to learn highly nonlinear functions of the input features, which are important for obtaining high-quality outputs. ### Network Architecture ![](https://i.imgur.com/HRoK7hO.png) ### Reconstruction Methods | Direct-prediction conv network (DPCN) | Kernel-prediction conv network (KPCN) | | ----------------- |:----------------------- | | The CNN directly predicts the final denoised pixel value as a highly non-linear combination of the input features. | Instead of directly outputting a denoised pixel, the final layer of the network outputs a kernel of scalar weights that is applied to the noisy neighborhood of the pixel. | |Slower convergence|Faster convergence (5-6x faster)| #### DPCN - The unconstrained nature and complexity of the problem makes optimization difficult. The magnitude and variance of the stochastic gradients computed during training can be large, which slows convergence. #### KPCN - The kernel size is specified before training along with the other network hyperparameters and the same weights are applied to each RGB color channel. Normalized kernel weights: $$ w_{p q}=\frac{\exp \left(\left[\mathbf{z}_{p}^{L}\right] q\right)}{\sum_{q^{\prime} \in \mathcal{N}(p)} \exp \left(\left[\mathbf{z}_{p}^{L}\right]_{q^{\prime}}\right)} $$ The denoised pixel color: $$ \widehat{\mathbf{c}}_{p}=g_{\text {weighted }}\left(\mathbf{X}_{p} ; \boldsymbol{\theta}\right)=\sum_{q \in \mathcal{N}(p)} \mathbf{c}_{q} w_{p q} $$ - The kernel weights can be interpreted as including a softmax activation function on the network outputs in the final layer over the entire neighborhood. - 3 benefits: - It ensures that the final color estimate always lies within the convex hull of the respective neighborhood of the input image. This vastly reduces the search space of output values as compared to the direct-prediction method and avoids potential artifacts (e.g. color shifts). - It ensures the gradients of the error with respect to the kernel weights are well behaved, which prevents large oscillatory changes to the network parameters caused by the high dynamic range of the input. Intuitively, the weights need to only encode the relative importance of the neighborhood; the network does not need to learn the absolute scale. In general, scale-reparameterization schemes have recently proven to be crucial for obtaining low-variance gradients and speeding up convergence. - It could potentially be used for denoising across layers of a given frame, a common case in production, by applying the same reconstruction weights to each component. ### Diffuse/Specular Decomposition - The various components of the image have different noise characteristics and spatial structure, which often leads to conflicting denoising constraints. - Solution: decomposing the image intodiffuse and specular components. #### Diffuse-component Preprocessing - The diffuse color — the outgoing radiance due to diffuse reflection is well behaved and typically has small ranges. Thus, training the diffuse CNN is stable and the resulting network yields good performance without color preprocessing. #### Specular-component Preprocessing - Denoising the specular color is a challenging problem due to the high dynamic range of specularand glossy reflections. - Solution: log transform ## Experimental Setup ### Data Training set: - 600 representative frames sampled from the entire movie Finding Dory generated using RenderMan’s path-tracer - Reference images: 1024 spp (samples per pixel) - Inputs: 32 spp / 128 spp - 65 x 65 patches Test set: - 25 diverse frames from the films Cars 3 and Coco, and contain effects such as motion blur, depth of field, glossy reflections, and global illumination ## Results - Overall, KPCN performs as well or better than state-of-the-art techniques both perceptually and quantitatively. ## Analysis Design choices - $l_{1}$ loss - during experiments, it gives the lowest error - DPCN / KPCN convergence speed: - ![](https://i.imgur.com/plYLcqW.png)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully