Vision Unlearning: a tool for Machine Unlearning in Computer Vision
Project description
Vision Unlearning
Installation
pip install vision-unlearning
Compatible with python 3.10 to 3.12.
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
- Replace George W. Bush by Tony Blair using FADE
- Forget cat using UCE (with hyperparam tunning)
- Forget church using Munba
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vision_unlearning-0.1.8.tar.gz.
File metadata
- Download URL: vision_unlearning-0.1.8.tar.gz
- Upload date:
- Size: 74.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64996b0d6145363ea3f18ab429c87d9860ed17bca3befa993be955ff441cc078
|
|
| MD5 |
396465f6f30b15b2f3b2bc1dd95966b3
|
|
| BLAKE2b-256 |
ee22c4e36ee14715c7e199ed0e7b4d1c3f59e7ac594e37e0425e093c1914b70e
|
File details
Details for the file vision_unlearning-0.1.8-py3-none-any.whl.
File metadata
- Download URL: vision_unlearning-0.1.8-py3-none-any.whl
- Upload date:
- Size: 87.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af0662c1c2d7d6d44a54279075a88ad12fc4ef38ba2a3e5c7b33ee3a158720a4
|
|
| MD5 |
2a4870f0b881c7aad52a718ff56fe83c
|
|
| BLAKE2b-256 |
972cbc7fedf5efdf44270d0fb604018f4cc73287ebdfed53404486b1f8e8d7fb
|