Skip to content

I share in this repo my implementation for pix2pix image translation paper in pytorch

Notifications You must be signed in to change notification settings

Mo-Ouail-Ocf/pix2pix_from_scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pix2Pix from Scratch in PyTorch

This repository contains the implementation of the Pix2Pix model from scratch using PyTorch. The Pix2Pix model is a conditional Generative Adversarial Network (cGAN) that learns a mapping from input images to output images. This project demonstrates the use of PyTorch and Ignite for training and logging purposes.

Project Overview

  • Model: Pix2Pix (cGAN)
  • Framework: PyTorch
  • Dataset: Maps Dataset from Kaggle

Dataset

The Maps dataset contains paired images of satellite photos and maps. This dataset is ideal for tasks like image translation, where the model learns to convert satellite images into map images and vice versa.

You can find and download the dataset from Kaggle.

Training

  • Discriminator Loss (d_loss): Measures how well the discriminator distinguishes between real and fake images.
  • Generator Loss (g_loss): Measures how well the generator produces realistic images.

Below is the training dynamics graph showing the generator and discriminator losses over time for 100 epochs train.

Training Dynamics

Results

The model was trained on the Maps dataset for 100 epochs. Below are some of the results on the validation set:

  • Input Image: : Input
  • Generated Image: The corresponding image generated by the Pix2Pix model : Gen
  • Target Image: The ground truth image : Target

References

  • Pix2Pix original paper link : paper

Future Work

  • Experimenting with different datasets for image-to-image translation.
  • Fine-tuning the model for better performance.
  • Exploring & Implementing advanced GAN techniques to improve image quality.

About

I share in this repo my implementation for pix2pix image translation paper in pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages