Giter Site home page Giter Site logo

imageattribution's Introduction

Detecting Image Attribution for Text-to-Image Diffusion Models in RGB and Beyond

Open in Colab

Katherine Xu$^{1}$, Lingzhi Zhang$^{2}$, Jianbo Shi$^1$
$^1$ University of Pennsylvania, $^2$ Adobe Inc.

๐Ÿš€ Updates

  • 4/23/2024: Released a demo using EfficientFormer

Setup

  • Clone this repo
git clone https://github.com/k8xu/ImageAttribution.git
  • Install dependencies
conda create --name attribution python=3.10 -y
conda activate attribution
pip install opencv-python torch pillow

Demo

Download a torchscript checkpoint and place it under the specified folder.

Model Name Torchscript Folder Test Accuracy
efficientformer efficientformer_torchscript (118M) ./deployment/efficientformer 90.03%

We randomly sampled 10 test images per class, so you can quickly try our image attributor. Please check out ./images.

python demo.py --img {IMAGE PATH}

Citation

If you find our work useful, please cite our paper:

@article{xu2024detecting,
    title={Detecting Image Attribution for Text-to-Image Diffusion Models in RGB and Beyond},
    author={Xu, Katherine and Zhang, Lingzhi and Shi, Jianbo},
    journal={arXiv preprint arXiv:2403.19653},
    year={2024}
}

imageattribution's People

Contributors

k8xu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

imageattribution's Issues

Demo model

Hi,
Thanks for sharing the model.
Is this model the image attributor or the model trained on the original RGB image?

Train/Test Dataset

Hi,
Thank you for this work. Will the train and test dataset comprising of synthetic images be made available to the public?

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.