Code Monkey home page Code Monkey logo

inf8801a-projet's Introduction

INF8801A Projet

Here you will find a (partial) reimplementation of the article Face Sketch Recognition written by Xiaoou Tang and Xiaogang Wang in 2004. The implementation mainly concerns the parts III.A and III.B corresponding to the photo-to-sketch transformation and to the photo retrieval. We then have implemented the different distances used in the article to compare our own results to it.

It also features an implementation of a GAN in order to compare performances.

Repo organisation

Files

On the root folder you will find the main notebooks used for our code.

  • implementation.ipynb is the code containing the article implementation and the comparison with AI model.
  • Pix2Pix.ipynb contains the implementation of a GAN for sketch recognition.
  • plots.ipynb contains the code used to generate some plots for our presentation.
  • data-treat.py is a script used to rename the files in order to ease the link between photos and sketches files.

Get the data

You can get the dataset on Kaggle here.

It is expected for the data to be in a data/ folder at the root of the project. Only the photos/ and sketches/ folder will be of use.

Important: To run the notebooks, you'll need to execute the data-treat.py script in order to rename the files so that they'll work correctly with the rest.

Requirements

Having a python install working. A conda environment have been used for the run of the notebooks using python 3.11.8.

The necessary python packages are listed in requirements/txt. You can install them via

pip install -r requirements.txt

inf8801a-projet's People

Contributors

bassetmatt avatar clemflannagahn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.