File size: 1,244 Bytes
9f95946
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f8a9e77
9f95946
 
 
 
964ba1e
de248ee
 
 
 
 
 
 
 
 
 
 
 
 
964ba1e
9f95946
964ba1e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import gradio as gr
from PIL import Image  

import torch
import re
import os
import requests

from customization import customize_vae_decoder
from diffusers import AutoencoderKL, DDPMScheduler, StableDiffusionPipeline, UNet2DConditionModel, DDIMScheduler, EulerDiscreteScheduler
from torchvision import transforms
from attribution import MappingNetwork

import math
from typing import List
from PIL import Image, ImageChops
import numpy as np
import torch

with gr.Blocks() as demo:
    gr.Markdown(
"""<div style="transform: translate(0, 50%);">
        <h1 style="text-align: center;"><b>WOUAF:
Weight Modulation for User Attribution and Fingerprinting in Text-to-Image Diffusion Models</b> <br> <a href="https://wouaf.vercel.app">Project Page</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://huggingface.co/spaces/wouaf/WOUAF-Text-to-Image">New Demo</a></h1>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <h1 style="text-align: center;"> With generous support from Intel, we have <a href="https://huggingface.co/spaces/wouaf/WOUAF-Text-to-Image">transferred the demo</a> to a better and faster GPU. </h1>      
        </div>
"""
)


if __name__ == "__main__":
    demo.launch()