Skip to content

Fog Simulation using Generative Adversarial Networks (GAN). This code is the implementation of the master thesis Simulating Weather Conditions on Digital Images. It uses a modified CycleGAN model to synthesize fog on clear images.

License

Notifications You must be signed in to change notification settings

ghaiszaher/Foggy-CycleGAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

November 2024: New Pre-trained Models are available, check the Pre-trained Models section.

Foggy-CycleGAN

This project is the implementation for my Computer Science MSc thesis in the University of Debrecen.

Dissertation: [PDF] Simulating Weather Conditions on Digital Images (Debrecen, 2020).

Table of Content

Description

Foggy-CycleGAN is a A Jupyter Notebook file Foggy_CycleGAN.ipynb is available in the repository.

Code

The full source code is available under GPL-3.0 License in my Github repository ghaiszaher/Foggy-CycleGAN

Notebook Open In Colab

A Jupyter Notebook file Foggy_CycleGAN.ipynb is available in the repository.

Results (2020)

© Ghais Zaher 2020

Pre-trained Models

As legacy pre-trained models are no longer compatible with newer Keras/Tensorflow versions, I have retrained the model and made the new weights available to download.

Each of the following models was trained in Google Colab using the same dataset, the parameters for building the models and number of trained epochs are a bit different:

Model Trained Epochs Config
2020-06 (legacy) 145 use_transmission_map=False
use_gauss_filter=False
use_resize_conv=False
2024-11-17-rev1-000 522 use_transmission_map=False
use_gauss_filter=False
use_resize_conv=False
2024-11-17-rev2-110 100 use_transmission_map=True
use_gauss_filter=True
use_resize_conv=False
2024-11-17-rev3-111 103 use_transmission_map=True
use_gauss_filter=True
use_resize_conv=True
2024-11-17-rev4-001 39 use_transmission_map=False
use_gauss_filter=False
use_resize_conv=True

Results (2024)

The results of the new models are similar to the previous ones, here are some samples:

Clear 2024-11-17-rev1-000 2024-11-17-rev2-110 2024-11-17-rev3-111 2024-11-17-rev4-001

2024-11-17-rev1-000 Test Notebook Open In Colab

A Jupyter Notebook file 2024-11-17-rev1-000-test.ipynb is available in the repository to test the 2024-11-17-rev1-000 model.

About

Fog Simulation using Generative Adversarial Networks (GAN). This code is the implementation of the master thesis Simulating Weather Conditions on Digital Images. It uses a modified CycleGAN model to synthesize fog on clear images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published