Skip to content

leeeeeeo/yousaidthat-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repository is a TensorFlow version of You said that?. Demos are shown in videos.

Since Matlab code is given by the author. The basic idea of my work is converting the Matlab model to TensorFlow. Origin Matlab model parameters are stored in the intermediate .mat file here. TensorFlow variables are initialized using these files.

Note1: 5 faces are used in the Matlab code. Only 1 face is used as the identity. However, both intermediate .mat files are given. v201_param_cell_idnum1.mat means only 1 face used as identity.

Note2: The deblur model is also implemented, and the intermediate .mat file is also given, which is named v114_param_cell.mat.

Note3: the upsample layer is defined by the author in the given Matlab code. So the upsample layer is not exact same with Matlab model. Both bilinear upsample and deconvolution are tried in the TensorFlow version. And the deconvolution performs better.

The code is in a mess. Some code is deprecated. Sorry that I don't have time to sort them out. Different models are indicated by its file name. For example, _halfface.py means L1 loss is only applied in the lower half face. _save_step0.py means not a single step is trained. The model is only initialized by Matlab parameters. It is used to verify that the Matlab parameters really worked in TensorFlow. Besides, GAN is implemented. The AutoEncoder is used as G, and the D comes from pix2pix.

If you have any questions, please contact me.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published