Skip to content

Project to train a DNN using MNIST and then apply it on SVHN data using domain adaptation technique.

Notifications You must be signed in to change notification settings

Dustadd/Domain_Adaptation_MNIST-SVHN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Domain Adaptation for MNIST/SVHN

logo_domain_adaptation

This project is carried out in the context of the Artificial Intelligence Masters of TelecomParis.

Made with Python v3.11

Project

Train a DNN (you can choose which one) using MNIST and then apply it on SVHN data using domain adaptation technique.

In pairs, you are tasked with developing a solution to address the challenge of domain adaptation between two distinct image datasets: MNIST and SVHN. Specifically, you will focus on adapting a deep neural network (DNN) trained on the labeled MNIST dataset to perform accurately on the SVHN dataset, for which you are provided with images but no labels during training. Your ultimate goal is to demonstrate effective domain adaptation by achieving high accuracy on the SVHN test set.

Deliverables

  • Adapted DNN Model: A deep neural network model that has been successfully adapted from MNIST to perform well on the SVHN dataset.

  • Brief Report: A concise report that outlines your approach, methods used for domain adaptation, challenges encountered, and a discussion of the model's performance on the SVHN test set. The report should also include the accuracy metrics achieved on the SVHN test set to demonstrate the effectiveness of your domain adaptation strategy.

Report

  • Our complete report and explanations is located here.

Quick try?

Use our Google Collab link.

Note: Collab version can take some time to run due to imports.

How to setup?

  • First, clone the repository:
git clone https://github.com/PierreBio/DomainAdaptationMNIST-SVHN.git
  • Then go to the root of the project:
cd DomainAdaptationMNIST-SVHN
  • Create a virtual environment:
py -m venv venv
  • Activate your environment:
.\venv\Scripts\activate
  • Install requirements:
pip install -r requirements.txt
  • If you have CUDA installed on your computer, you can install a specific torch version:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

How to launch?

  • Once the project is setup, you can launch it using our initial main script (the first time it'll download datasets):
py -m src.main

Method

See our explanations about the whole method from A Tarvainen, Harri Valpola.

Results

See our results.

Ressources

About

Project to train a DNN using MNIST and then apply it on SVHN data using domain adaptation technique.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%