caradryanl/CopyMark

PyTorch Implementation of the paper "Real-World Benchmarks Make Membership Inference Attacks Fail on Diffusion Models".

10

stars

202

commits

Python

primary language

Nov 24, 2024

updated

README

CopyMark

PyTorch implementation of Real-World Benchmarks Make Membership Inference Attacks Fail on Diffusion Models based on diffusers and ComfyUI.

CopyMark provides:

  • A benchmark for copyright detection on Latent Diffusion Model, Stable Diffusion, and SDXL (SD3 coming soon!) (based on diffusers)

  • A GUI for using the benchmark to detect copyright images in the training data of diffusion models

Quick Guide

  • Reproducing Results: Check README.md in diffusers directory.

  • Using CopyMark Utility: Check README.md in ui directory.

Code Structure

The code is organized as follows:

CopyMark
│   README.md
│   requirements.txt    
│
└───diffusers           # benchmark on diffusers
│   └───assets          # data: images for case studies
│   └───copymark        # code: diffusers pipelines of copyright detection
│   └───datasets        # data: put the datasets here
│   └───experiments     # data: raw records of original experimental results in the paper
│   └───scripts         # code: scripts to run copyright detection methods
│   └───utils           # code: scripts to prepare datasets & generate metadata
│   
└───ui
│   └───custom_nodes
│       └───assets                      # data: metadata for the inference of copyright detection
│       └───diffusers_ui                # code: diffusers pipelines of copyright detection
│           │   copymark.py             # code: functions of copyright detection used by nodes_copymark.py
│           │   encode_diffusers.py     # code: functions of encoding images and text like diffusers
│           │   load_diffusers.py       # code: functions of loading modules like diffusers
│       │   nodes_copymark.py           # code: custom nodes for copyright detection
│       │   nodes_diffusers.py          # code: custom nodes for adapting diffusers to comfyui
│   ... (the same as comfyui)

Contributors

caradryanl

200 commits

caradryanl/CopyMark

PyTorch Implementation of the paper "Real-World Benchmarks Make Membership Inference Attacks Fail on Diffusion Models".

10

stars

202

commits

Python

primary language

Nov 24, 2024

updated

README

CopyMark

PyTorch implementation of Real-World Benchmarks Make Membership Inference Attacks Fail on Diffusion Models based on diffusers and ComfyUI.

CopyMark provides:

  • A benchmark for copyright detection on Latent Diffusion Model, Stable Diffusion, and SDXL (SD3 coming soon!) (based on diffusers)

  • A GUI for using the benchmark to detect copyright images in the training data of diffusion models

Quick Guide

  • Reproducing Results: Check README.md in diffusers directory.

  • Using CopyMark Utility: Check README.md in ui directory.

Code Structure

The code is organized as follows:

CopyMark
│   README.md
│   requirements.txt    
│
└───diffusers           # benchmark on diffusers
│   └───assets          # data: images for case studies
│   └───copymark        # code: diffusers pipelines of copyright detection
│   └───datasets        # data: put the datasets here
│   └───experiments     # data: raw records of original experimental results in the paper
│   └───scripts         # code: scripts to run copyright detection methods
│   └───utils           # code: scripts to prepare datasets & generate metadata
│   
└───ui
│   └───custom_nodes
│       └───assets                      # data: metadata for the inference of copyright detection
│       └───diffusers_ui                # code: diffusers pipelines of copyright detection
│           │   copymark.py             # code: functions of copyright detection used by nodes_copymark.py
│           │   encode_diffusers.py     # code: functions of encoding images and text like diffusers
│           │   load_diffusers.py       # code: functions of loading modules like diffusers
│       │   nodes_copymark.py           # code: custom nodes for copyright detection
│       │   nodes_diffusers.py          # code: custom nodes for adapting diffusers to comfyui
│   ... (the same as comfyui)

Contributors

caradryanl

200 commits

Languages

Python

65.2%

JavaScript

32.4%

CSS

1.0%