Code Monkey home page Code Monkey logo

apparent_skincolor's Introduction

Apparent Skin Color

Beyond Skin Tone: A Multidimensional Measure of Apparent Skin Color
William Thong, Przemyslaw Joniak, Alice Xiang
ICCV 2023

[Paper]

Skin color score extraction

  • Run extract/predict.py to extract skin color scores (i.e., perceptual lightness L* and hue angle h*)
    • Only PIL, scikit-image and scikit-learn are needed
    • Perceptual lightness L* is associated with skin tone (values below 60 are considered to be dark tones, while values above are light tones)
    • Hue angle h* is associated with skin hue (values below 55 are considered to red hues, while values above are yellow hues)
  • We also provide the results of this script in extract/results for the CelebAMask-HQ, FFHQ and CFD datasets
  • When masks are not available, we extract them with DeepLabV3 trained on CelebAMask-HQ

Experiments

Saliency-based image cropping

We evaluate the fairness of the open-source image cropping model from Twitter by comparing a pair of facial images. In an ideal scenario, the cropping model should have an equal preference for both faces.

Experiments are reported in Section 4.2.1 of the main paper, and are adapted from [Birhane et al, WACV 2022]. To reproduce them, follow these steps:

Face verification

We evaluate the fairness of face verification models.

Experiments are reported in Section 4.2.2 of the main paper.

Skin color causal effect in attribute prediction

We evaluate the causal effect of skin color in several (non)-commercial models. To achieve this, we modify the skin color of images in CelebAMask-HQ by moving in the latent space that are meaningful to edit the skin tone and the skin hue independently.

Citation

If you find this repository useful for your research, please consider citing our work:

@inproceedings{thong2023skincolor,
  title={Beyond Skin Tone: A Multidimensional Measure of Apparent Skin Color},
  author={Thong, William and Joniak, Przemyslaw and Xiang, Alice},
  booktitle={ICCV},
  year={2023}
}

apparent_skincolor's People

Contributors

wthong-sony avatar zacharymayberry-sony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

peterzs

apparent_skincolor's Issues

Packages version

Hi, it might be good to indicate the version of your packages. For instance in version 0.22 of scikit image the gaussian filter doesn't accept multichannel as an argument anymore.

Skin segmentation

Hi! Great work with the project. Question, how do you make the skin segmentation? In which part of the code do you process the skin segmentation?
Thanks!

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.