GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ckorgial/xAI-CAAE: Pytorch Implementation of the Explainable Conditional Adversarial Autoencoder using Saliency Maps and SHAP (J. of Imaging - MDPI)

BranchesTags
Open more actions menu

Latest commit

 

History

88 Commits
88 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
consts.py
consts.py
 
 
mainCAAEsplit.py
mainCAAEsplit.py
 
 
modelSplit_v2_shap.py
modelSplit_v2_shap.py
 
 
requirements.txt
requirements.txt
 
 
utils.py
utils.py
 
 
utils_xai.py
utils_xai.py
 
 

Repository files navigation

Face Aging by Explainable Conditional Adversarial Autoencoders

This repository was created with the aim of incorporating an Explanatory System in the Conditional Adversarial Autoencoder (CAAE). The main source of inspiration was the paper Age Progression/Regressionby Conditional Adversarial Autoencoder proposed by (Zhang, Song, et al.). Moreover, the paper xAI-GAN: Enhancing Generative Adversarial Networks via Explainable AI Systems proposed by (Nagisetyy, Graves, et al.) formed the base of adding xAI methods in CAAE. Endly, thanks to Mattan Serry and the AgeProgression work, we devoloped our code in PyTorch.

Our Paper

This repo contains the codes of the proposed xAI-CAAE described in the Face Aging by Explainable Conditional Adversarial Autoencoders paper. The paper was published in the Journal of Imaging - MDPI.

Dataset

The dataset we used for training was the CACD + UTKFace which consists of 21267 images in 7 age classes. FGNET with 1002 images used for the test purpose. The data folder can be downloaded through Google Drive.

Prerequisites

  1. Python 3.7
  2. Pytorch 1.2.0
  3. Captum 0.4.0

Implementation

The control and change of the Explainable Artificial Intelligence system is achieved through the net.teachSplit() in mainCAAEsplit.py script. If it is a need to train the Original CAAE, without the addition of the xAI system, explainable is set to False. The xAI system is activated by setting explainable to True. Different methods of xAI in CAAE can be added by setting the explanation_type to 'saliency' or 'shap'.

Virtual Environment

conda create -n xaicaae python=3.7 anaconda
conda activate xaicaae
pip install -r requirements.txt

Checkpoints

The training weights for SHAP (θ = 0.5) can be found here.

Training

python mainCAAEsplit.py --mode train --epochs 200 --input data/CACD_UTKFace --output checkpoints

Testing

python mainCAAEsplit.py --mode test --load checkpoints/epoch200 --input data/FGNET --output results/checkpoints/epoch200 --age 0 to 6 --gender 0 or 1

Directory Tree

xAI-CAAE   
│   consts.py
|   checkpoints
    └───epoch 200
│   mainCAAEsplit.py  
│   modelSplit_v2.py   
│   README.md
|   requirements.txt
│   utils.py
|   utils_xai.py
└───data
    └───CACD_UTKFace
    └───FGNET

Citation

@Article{jimaging9050096,
AUTHOR = {Korgialas, Christos and Pantraki, Evangelia and Bolari, Angeliki and Sotiroudi, Martha and Kotropoulos, Constantine},
TITLE = {Face Aging by Explainable Conditional Adversarial Autoencoders},
JOURNAL = {Journal of Imaging},
VOLUME = {9},
YEAR = {2023},
NUMBER = {5},
ARTICLE-NUMBER = {96},
URL = {https://www.mdpi.com/2313-433X/9/5/96},
ISSN = {2313-433X},
DOI = {10.3390/jimaging9050096}
}

Authors

Feel free to send us a message for any issue.

Christos Korgialas ([email protected]), Evangelia Pantraki ([email protected]), and Constantine Kotropoulos ([email protected])

About

Pytorch Implementation of the Explainable Conditional Adversarial Autoencoder using Saliency Maps and SHAP (J. of Imaging - MDPI)

Topics

explainable-aiface-agingganpytorchsaliencyshap

Resources

Readme
MIT license
Activity

Stars

12 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.