fffiloni commited on
Commit
96dd9c7
·
verified ·
1 Parent(s): 8569f0e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +50 -2
README.md CHANGED
@@ -1,12 +1,60 @@
1
  ---
2
  title: Artist
3
- emoji: 🦀
4
  colorFrom: purple
5
  colorTo: green
6
  sdk: gradio
7
  sdk_version: 4.39.0
8
  app_file: app.py
9
  pinned: false
 
10
  ---
 
 
 
 
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: Artist
3
+ emoji: 🎨
4
  colorFrom: purple
5
  colorTo: green
6
  sdk: gradio
7
  sdk_version: 4.39.0
8
  app_file: app.py
9
  pinned: false
10
+ short_description: Aesthetically Controllable Text-Driven Stylization without T
11
  ---
12
+ # Artist
13
+ ## [Webpage](https://DiffusionArtist.github.io)| [arXiv](https://arxiv.org/abs/2407.15842)
14
+ Official repo for Artist: Aesthetically Controllable Text-Driven Stylization without Training
15
+ ![fig_teaser_large-min](https://github.com/user-attachments/assets/6da1a3e1-aeb7-4fb6-9dfa-9f84c27a7975)
16
 
17
+ ## What is Artist?
18
+ Artist is a training-free text-driven image stylization method. You give an image and input the prompt describing the desired style, Artist give you the stylized image in that style. The detail of the original image and the style you provide is harmonically integrated.
19
+
20
+ **No** need to train, **no** need to download many ControNets or LoRAs. Just use a pretrained Stable Diffusion.
21
+
22
+ ## Guide
23
+ Clone the repository:
24
+ ```
25
+ git clone https://github.com/songrise/Artist
26
+ ```
27
+
28
+ Create a virtual environment and install dependencies:
29
+ ```
30
+ conda create -n artist python=3.8
31
+ conda activate artist
32
+ pip install -r requirements.txt
33
+ ```
34
+
35
+ For the first time you execute the code, you need to wait for the download of the Stable Diffusion model from the Hugging Face repository.
36
+
37
+ Run the following command to start the gradio interface:
38
+ ```
39
+ python injection_main.py --mode app
40
+ ```
41
+ Visit `http://localhost:7860` in your browser to access the interface.
42
+ ![example](asset/gradio_example.png)
43
+
44
+
45
+ You can also run the following command to stylize an image in the command line:
46
+ ```
47
+ python injection_main.py --mode cli --image_dir data/example/1.png --prompt "A B&W pencil sketch, detailed cross-hatching --config example_config.yaml"
48
+ ```
49
+
50
+ ## Citation
51
+ ```
52
+ @misc{jiang2024artist,
53
+ title={Artist: Aesthetically Controllable Text-Driven Stylization without Training},
54
+ author={Ruixiang Jiang and Changwen Chen},
55
+ year={2024},
56
+ eprint={2407.15842},
57
+ archivePrefix={arXiv},
58
+ primaryClass={cs.CV}
59
+ }
60
+ ```