Coder Social home page Coder Social logo

zoppellarielena / blind-face-restoration-and-upscaling Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 93.69 MB

This project, created for the "Vision and Cognitive Systems" course, employs generative networks with landmarks as priors to reconstruct full-size and small-size blind faces.

License: MIT License

Jupyter Notebook 100.00%
blind-face-restoration computer-vision deep-learning deep-neural-networks facial-landmarks generative-art

blind-face-restoration-and-upscaling's Introduction

Simulating Real-World Challenges: Blind Face Restoration and Upscaling

This project focuses on Blind Face Restoration (BFR), aiming to reconstruct high-quality face images from blind images—images that underwent an unknown degradation process. Unlike non-blind tasks, the degree of deterioration may vary among training images, since different standard image degradation techniques are applied in random combinations of intensities. Thus, the model aims to build a model applicable in real-world scenarios where the degradation process is unknown.

To increase the model's applicability to truly degraded images, we chose to work with the Labeled Faces in the Wild dataset (LFW), which lacks facial alignment. This characteristic allows the dataset to capture faces in various natural poses, sometimes partially covered by hands or hats.

The project focuses on two main objectives:

  1. The restoration of 16x16 blind face images to 128x128, simulating scenarios with distant or challenging conditions.
  2. Reconstruction of standard 128x128 face images.

16x16 result 128x128 result

The employed models adapt Kim et al.'s progressive 3-step architecture, initially designed for Face Super Resolution. The adaptation includes incorporating facial landmarks and introducing an encoder for 128x128 input image performance.

Model training employs perceptual and attention on landmarks losses, dynamically weighted to achieve a balance between stability and emphasis on attention to facial details.

The project's success is measured using a broad range of evaluation metrics, including PSNR, SSIM, MS-SIM, LPIPS, NIQE, and FID, to evaluate both image similarity and image realism. The overall batch metric results, shown in the table below, indicate that although the model was not always capable of increasing pixel-wise distances, it significantly improved the realism of deteriorated images.

PSNR $\uparrow$ SSIM $\uparrow$ MS-SIM $\uparrow$ LPIPS $\downarrow$ NIQE $\downarrow$ FID $\downarrow$
blind img 16x16 20.1 $\pm$ 0.2 0.59 $\pm$ 0.01 0.818 $\pm$ 0.002 0.468 $\pm$ 0.003 16.78 $\pm$ 0.05 240 $\pm$ 4
pred img 16x16 20.6 $\pm$ 0.3 0.65 $\pm$ 0.01 0.862 $\pm$ 0.004 0.295 $\pm$ 0.006 7.9 $\pm$ 0.3 40 $\pm$ 2
blind img 128x128 21.1 $\pm$ 0.7 0.57 $\pm$ 0.03 0.83 $\pm$ 0.02 0.52 $\pm$ 0.03 9.8 $\pm$ 0.5 151 $\pm$ 14
pred img 128x128 22.0 $\pm$ 0.4 0.65 $\pm$ 0.01 0.862 $\pm$ 0.009 0.31 $\pm$ 0.01 6.8 $\pm$ 0.2 35 $\pm$ 2

The project was conducted as part of the exam of Vision and Cognitive Systems course of University of Padova, academic year 2023-2024. It was developed in January 2024 by the team composed by:

  • Golan Rodrigo
  • Zoppellari Elena

blind-face-restoration-and-upscaling's People

Contributors

zoppellarielena 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.