Gram Matrix

Introduction

Each layer of CNN gives a tensor, we can think of it as grid of -dimensional vectors

We’ll compute the outer product of every -dimensional vectors then averaging over these pairs of matrices. This final matrix is called a gram matrix

Intuition

In gram matrices, we want to eliminate the spatial information and only maintain the texture information.

For every entry , it refers to “how often does feature in channel and channel appear together?” When has large value, it means feature in channel and channel tends to appear together in the pattern

Neural Texture Synthesis

Introduction

The goal of texture synthesis is generating different images with the same texture

Steps