Site Logo

SimGAN Paper Notes: Better way to learn from Simulated images.

May 21, 2023 ·
Jul 03, 2024 ·
4 minutes
AI / Computer Vision
·
simgan , gan , paper
Table of Contents

Introduction#

Pasted-image-20240531143535.png

Proposed Approach#

Pasted-image-20240531143736.png

Loss Functions#

Discriminator Loss Function#

For Discriminator, the loss function is cross entropy

LD(ϕ)=ilog(Dϕ(x~i))jlog(1Dϕ(yj))\mathcal{L}_{D}(\phi) = -\sum_ilog(D_{\phi}(\tilde{x}_i)) - \sum_j\log{(1-D_{\phi}(y_j))}

Refiner#

For the Refiner, the loss function here is made up of two parts:

lreal(θ;xi~,Y)=i(1Dϕ(Rθ(xi)))l_{real}(\theta;\tilde{x_i},Y) = -\sum_i(1-D_{\phi}(R_{\theta}(x_i))) LR(θ)=ilog(1Dϕ(Rθ(xi)))+λRθ(xi)xi1\mathcal{L}_R(\theta) = -\sum_i\log{(1-D_{\phi}(R_{\theta}(x_i)))} \quad +\lambda||R_{\theta}(x_i)-x_i||_1

Training Algorithm#

Pasted-image-20240531144456.png

Training Loop

Suggested improvements#

Local - adversarial Loss#

Pasted-image-20240531144810.png

History of refined images to train Discriminator#

Datasets#

Results#

Result

Pasted-image-20240531145028.png

A set of randomly shuffled real and refined images was shown to people to differentiate. Above is the confusion matrix of the experiment. This proves that the samples were hard to differentiate.

Pasted-image-20240531145043.png

Pasted-image-20240531145137.png

A simple CNN model was trained on these refined synthetic images, showcasing better results compared to other models trained using real images