Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • edelland/mso_3_4-td2
  • colasa/gan-cgan
  • rfarssi/mso3_4-be2_cgan
  • ssamuelm/mso3_4-be2_cgan
  • skhedhri/mso3_4-be2_cgan
  • tnavarro/gan-cgan
  • pmuller/mso3_4-be2_cgan
  • hmorillo/mso3_4-be2_cgan
  • mmachado/gan-cgan
  • bcornill/gan-cgan
  • fpennace/gan-cgan
  • egennari/gan-cgan
  • pbrussar/mso3_4-be2_cgan
  • bgourdin/mso3_4-be2_cgan
  • sfruchar/mso3_4-be2_cgan
  • psergent/mso3_4-be2_cgan
  • sclary/mso3_4-be2_cgan
  • gononq/be-2-c-gan
  • sfredj/mso3_4-be2_cgan
  • alebtahi/gan-cgan
  • sballoum/mso3_4-be2_cgan
  • ielansar/mso3_4-be2_cgan
  • asennevi/mso_3_4-td2
  • jseksik/mso_3_4-td2
  • mguiller/gan-cgan
  • ochaufou/mso_3_4-td2
  • barryt/gan-cgan
  • mbabay/mso_3_4-td2
  • amaassen/mso_3_4-td2
  • cgerest/mso_3_4-td2
  • pmarin/mso_3_4-td2
  • bbrudysa/gan-cgan
  • hchauvin/mso_3_4-td2
  • tfassin/mso_3_4-td2
  • coulonj/gan-diffusion
  • tdesgreys/gan-diffusion
  • mbenyahi/gan-diffusion
37 results
Select Git revision
Show changes
Commits on Source (9)
This diff is collapsed.
This diff is collapsed.
# GAN & cGAN tutorial.
We recommand to use the notebook (.ipynb) but the Python script (.py) is also provided if more convenient for you.
## Intro
# How to submit your Work ?
GAN (for Generative Adversarial Network) is a type of machine learning model that consists of two neural networks : a discriminator and a generator. Basically, a generator generates fake data that the discriminator has to detect. While the discriminator learns how to "discriminate" between fake and real images, the generator tries to fool it into thinking the images are real. In this project, we use it to generate fake images based on real ones.
cGAN (for Conditional Generative Adversarial Network) is a variation of GAN in which the generator conditioned on some input, such as a label or a class, to generate data that belongs to a specific category. In our case, it will be models of houses / buildings.
This work must be done individually. The expected output is a repository named gan-cgan on https://gitlab.ec-lyon.fr. It must contain your notebook (or python files) and a README.md file that explains briefly the successive steps of the project. The last commit is due before 11:59 pm on Wednesday, March 29, 2023. Subsequent commits will not be considered.
\ No newline at end of file
This project is part of MSO 3.4 Automatic learning. The goal of the project is to implement GANs in order to understand how they work, and is composed of two parts : the first one gives a simple example of Numbers generation with GAN, whereas the others gives us an example of cGAN, as an image to image translation model. The whole project is included in the Notebook in the main branch.
## Steps of the project
1. Generating handwritten digits using the MNIST dataset.
- Downloading the Dataset
- Initialize weights
- Define the generator and discriminator functions
- Set up the optimizer and the loss
- Train the model
- Plot results
2. Generating Façade using CMP Facade Dataset (download it)
- Defining CGAN and U-net architecture
- Define the Generator with a built-up U-net architecture
- Define discriminator with conv-blocks.
- Set up optimizer and loss functions
- Train the model
- Plot results
## Contact
This project has been written by Paul SERGENT. For any questions, don't hesitate to write to paul.sergent@ecl19.ec-lyon.fr
Training_Loss_CGAN.png

40.3 KiB

generated_images_with_GAN.png

223 KiB

results_CGAN_after_100_epochs.png

328 KiB

results_CGAN_after_200_epochs.png

331 KiB