Main collaborators :
- Mounir Messaoudi
- Benjamin Sykes
- Show the number of parameters for each model
- Latent space visualisation while morphing
- Adding "salt and pepper" noise to help better reconstruction --> Mounir
- Compare (with Frechet Inception) only dense layers and convolution layers (with a fixed number of parameters) --> Mounir
- Tuning loss function (KL divergence vs Reconstruction Loss) --> Benjamin
- Testing different impacts of the latent space on the reconstruction --> Benjamin
- Visualisation of evolution of latent space through time
Use the Generate/train_model.py
file with the parameters specified. For example : python3 Generate/train_model.py --z_dim 2 --nb_epochs 1 --model_folder ./models_lamsade/ --losses_path losses_lamsade/ --k1 0.5 --k2 0.5
The model will be saved in the specified folder and the losses as well.
- sortir 1024 images du Dense (k1= 1/2, k2= 1/2) --> Mounir
- print paramètre du model --> Mounir pr Dense et BenJ Conv
- Amélioration du train : par défaut k1=k2=1/2
- Utilisation des images bruités --> Mounir
- Tuner la latent_dim --> Mounir et BenJ
- normaliser les inputs
- Tuner le k1 et k2 et voir les variations de performance BenJ
Computes the distance from our generated data to the original data, using the Inception model and using the Frechet distance of the data distributions in the Inception feature space.
Frechet inception distance :
For an original model trained on 10 epochs, we obtain a fid=24.76
In order to compute the FID distance, first, generate the 1024 images with the model, export the image to numpy generated1024.npy
serialisable object.
Then :
from FID import FrechIncDist
import numpy as np
# load images
images_gen=np.load("../generated_data/Generated_1024.npy")
images_true=np.load("../generated_data/true_MNIST.npy")
# instanciate the FID object
Fid=FrechIncDist()
# compute the distance (takes ~30 seconds)
Fid.compute_FID_images(images_gen,images_true)