CoolFace
Datasetpublic

Dasool/MUFAC

MUFAC (Machine Unlearning for Facial Age Classifier) This repository provides a cleaned and resolution-aligned (128x128) version of the MUFAC benchmark dataset. ๐Ÿ“˜ Description A multi-class age classification dataset featuring over 63,000 Asian facial images with annotations for age groups and personal identities. Preprocessed facial images (128ร—128 resolution) CSV files (custom_train_dataset.csv, etc.) for structured training/evaluation Separation ofโ€ฆ See the full description on the dataset page: https://huggingface.co/datasets/Dasool/MUFAC.

sourceHugging Facemitupdated 1y agoView on Hugging Face
1likes1.2kdownloads
Dataset Card

MUFAC (Machine Unlearning for Facial Age Classifier)

![arXiv](https://arxiv.org/abs/2311.02240)

This repository provides a cleaned and resolution-aligned (128x128) version of the MUFAC benchmark dataset.


๐Ÿ“˜ Description

A multi-class age classification dataset featuring over 63,000 Asian facial images with annotations for age groups and personal identities.

<img src="https://raw.githubusercontent.com/ndb796/MachineUnlearning/main/resources/MUFAC.png" width="700" alt="MUFAC examples"/>

  • โ€”Preprocessed facial images (128ร—128 resolution)
  • โ€”CSV files (custom_train_dataset.csv, etc.) for structured training/evaluation
  • โ€”Separation of identity-forgettable vs. retained images (forget_images, retain_images)
  • โ€”Suitable for benchmarking machine unlearning algorithms, especially in task-agnostic setups

It is specifically intended for experiments where personal identities are selectively unlearned, without degrading model utility on the original task (e.g., age classification).


๐Ÿ—‚๏ธ Dataset Structure

MUFAC/
โ”œโ”€โ”€ forget_images/                     # 1,431 images to be unlearned
โ”œโ”€โ”€ retain_images/                     # 7,680 images to retain
โ”œโ”€โ”€ train_images_part1/                # 9,093 training images (part 1)
โ”œโ”€โ”€ train_images_part2/                # 18 training images (part 2)
โ”œโ”€โ”€ val_images/                        # 1,464 validation images
โ”œโ”€โ”€ test_images/                       # 1,408 test images
โ”œโ”€โ”€ fixed_test_dataset_negative/       # 9,319 identity-balanced test data (negative)
โ”œโ”€โ”€ fixed_test_dataset_positive/       # 9,319 identity-balanced test data (positive)
โ”œโ”€โ”€ fixed_val_dataset_negative/        # 9,462 identity-balanced val data (negative)
โ”œโ”€โ”€ fixed_val_dataset_positive/        # 9,424 identity-balanced val data (positive)
โ”œโ”€โ”€ custom_train_dataset.csv           # CSV with image paths and labels
โ”œโ”€โ”€ custom_val_dataset.csv             # Validation CSV
โ””โ”€โ”€ custom_test_dataset.csv            # Test CSV
  • โ€”CSV files follow the format: image_path, age_group, identity, forget_flag, etc.
  • โ€”All image paths are relative and usable with datasets.Image() or PIL.

๐Ÿ”น How to Use

Method 1: Git Clone (Recommended)

bash
git lfs install
git clone https://huggingface.co/datasets/Dasool/MUFAC
cd MUFAC

Method 2: Using Hugging Face Hub API

python
from huggingface_hub import snapshot_download

# Download entire dataset
local_dir = snapshot_download("Dasool/MUFAC", repo_type="dataset")
print(f"Dataset downloaded to: {local_dir}")

Method 3: Load CSV and Images

python
import pandas as pd
import os
from PIL import Image

# Load CSV
df = pd.read_csv("MUFAC/custom_train_dataset.csv")
print(f"Dataset size: {len(df)} samples")
print(df.head())

# Load sample image
sample_row = df.iloc[0]
img_path = os.path.join("MUFAC", sample_row["image_path"])
img = Image.open(img_path)
img.show()

๐Ÿ“Š Citation

This dataset is part of the benchmark suite introduced in the following paper:

bibtex
@misc{choi2023machine,
  title={Towards Machine Unlearning Benchmarks: Forgetting the Personal Identities in Facial Recognition Systems},
  author={Dasol Choi and Dongbin Na},
  year={2023},
  eprint={2311.02240},
  archivePrefix={arXiv},
  primaryClass={cs.CV}
}
  • โ€”๐Ÿ“ง Contact: dasolchoi@yonsei.ac.kr
Dasool/MUFAC ยท CoolFace