nielsr HF Staff commited on
Commit
f8ea130
·
verified ·
1 Parent(s): a205bcb

Add pipeline tag, library name and code snippet

Browse files

This PR improves the model card by adding the pipeline tag `image-to-image`, library name `diffusers`, a code snippet to showcase how to use the model and correcting the github link.

Files changed (1) hide show
  1. README.md +25 -5
README.md CHANGED
@@ -1,13 +1,33 @@
1
  ---
2
- license: apache-2.0
3
- language:
4
- - en
5
  base_model:
6
  - black-forest-labs/FLUX.1-dev
7
  - Yuanshi/OminiControl
 
 
 
 
 
8
  ---
9
 
10
  This repository contains the model described in [Image Editing As Programs with Diffusion Models](https://huggingface.co/papers/2506.04158).
11
 
12
- Code: https://github.com/YujiaHu1109/IEAT.
13
- Project Page: https://yujiahu1109.github.io/IEAP/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
 
 
2
  base_model:
3
  - black-forest-labs/FLUX.1-dev
4
  - Yuanshi/OminiControl
5
+ language:
6
+ - en
7
+ license: apache-2.0
8
+ pipeline_tag: image-to-image
9
+ library_name: diffusers
10
  ---
11
 
12
  This repository contains the model described in [Image Editing As Programs with Diffusion Models](https://huggingface.co/papers/2506.04158).
13
 
14
+ Project Page: https://yujiahu1109.github.io/IEAP/
15
+ Code: https://github.com/YujiaHu1109/IEAP
16
+
17
+ ## Usage
18
+
19
+ ```python
20
+ from diffusers import DiffusionPipeline
21
+
22
+ # load the pretrained model
23
+ pipeline = DiffusionPipeline.from_pretrained("Cicici1109/IEAP", trust_remote_code=True)
24
+
25
+ # generate an image with the model
26
+ generated_image = pipeline(
27
+ image_path="assets/a12.jpg",
28
+ editing_instructions="Change the action of the woman to running and minify the woman."
29
+ )
30
+
31
+ # display the generated image
32
+ generated_image.show()
33
+ ```