Skip to main content

Vision Unlearning: a tool for Machine Unlearning in Computer Vision

Project description

Vision Unlearning

Mypy Pycodestyle Pytest Coverage

Documentation

Installation

pip install vision-unlearning

What is Vision Unlearning?

Vision Unlearning provides a standard interface for unlearning algorithms, datasets, metrics, and evaluation methodologies commonly used in Machine Unlearning for vision-related tasks, such as image classification and image generation.

It bridges the gap between research/theory and engineering/practice, making it easier to apply machine unlearning techniques effectively.

Vision Unlearning is designed to be:

  • Easy to use
  • Easy to extend
  • Architecture-agnostic
  • Application-agnostic

Who is it for?

Researchers

For Machine Unlearning researchers, Vision Unlearning helps with:

  • Using the same data splits as other works, including the correct segmentation of forget-retain data and generating data with the same prompts.
  • Choosing the appropriate metrics for each task.
  • Configuring evaluation setups in a standardized manner.

Practitioners

For practitioners, Vision Unlearning provides:

  • Easy access to state-of-the-art unlearning algorithms.
  • A standardized interface to experiment with different algorithms.

Tutorials

The source code for these tutorials is in tutorials/, but their outputs were cleaned to avoid burdening the repo. The links above contain Google Drive stored executions with the full outputs.

For developers: every time there is a relevant modification in the codebase, please run the affected tutorials, save the notebook to Drive, clear the output before commiting.

Main Interfaces

Vision Unlearning standardizes the following components:

  • Metric: Evaluates a model (e.g., FID, CLIP Score, MIA, NudeNet, etc.).
  • Unlearner: Encapsulates the unlearning algorithm.
  • Dataset: Encapsulates the dataset, including data splitting.

Additionally, common tasks and evaluation setups are provided as example notebooks. Several platform integrations, such as Hugging Face and Weights & Biases, are also included.

uml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_unlearning-0.1.6.tar.gz (62.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vision_unlearning-0.1.6-py3-none-any.whl (73.4 kB view details)

Uploaded Python 3

File details

Details for the file vision_unlearning-0.1.6.tar.gz.

File metadata

  • Download URL: vision_unlearning-0.1.6.tar.gz
  • Upload date:
  • Size: 62.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for vision_unlearning-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d46cd3dccdd652a124509882220ad4d9109c05dae61617a7cf8e4fa3e704d257
MD5 475b39144b2ec37cbda7255e04962cc6
BLAKE2b-256 b7fd0c3a8c678114e779076403eab4096c3886a98c5ed99f39dc6f2b2e738c9f

See more details on using hashes here.

File details

Details for the file vision_unlearning-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for vision_unlearning-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b83748f7d2a63104614d79d0d8fb0fe25ac03553742724a97443d1a7c26223b7
MD5 ea72947f641f327a03d802f867aee98b
BLAKE2b-256 2ea2dde233e2201ea27a60ba022a57081e75159b46794bf69fab31455f30f231

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page