Commit
·
9c6c673
1
Parent(s):
171e8c1
Update README.md
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ license: creativeml-openrail-m
|
|
4 |
|
5 |
# InstructPix2Pix checkpoint fine-tuned on [MagicBrush](https://osu-nlp-group.github.io/MagicBrush/).
|
6 |
|
7 |
-
## Env Setup
|
8 |
|
9 |
To use this checkpoint on InstructPix2Pix model, set up env like this:
|
10 |
|
@@ -14,7 +14,7 @@ cd instruct-pix2pix
|
|
14 |
mkdir checkpoints
|
15 |
```
|
16 |
|
17 |
-
Download this
|
18 |
|
19 |
```shell
|
20 |
cd checkpoints
|
@@ -23,7 +23,7 @@ wget https://huggingface.co/osunlp/InstructPix2Pix-MagicBrush/resolve/main/Magic
|
|
23 |
|
24 |
Then go back to the root folder and set up the env following the instructpix2pix guidelines.
|
25 |
|
26 |
-
## Launch
|
27 |
|
28 |
### Edit a single image:
|
29 |
|
@@ -35,8 +35,7 @@ python edit_cli.py --input [YOUR_IMG_PATH] --output imgs/output.jpg --edit "EDIT
|
|
35 |
```
|
36 |
|
37 |
|
38 |
-
|
39 |
-
### Launch
|
40 |
|
41 |
```python
|
42 |
python edit_app.py --ckpt checkpoints/MagicBrush-epoch-000168.ckpt
|
@@ -44,8 +43,6 @@ python edit_app.py --ckpt checkpoints/MagicBrush-epoch-000168.ckpt
|
|
44 |
|
45 |
|
46 |
|
47 |
-
|
48 |
-
|
49 |
## Citation
|
50 |
|
51 |
If you find this checkpoint useful, please consider citing our paper:
|
@@ -61,7 +58,7 @@ If you find this checkpoint useful, please consider citing our paper:
|
|
61 |
}
|
62 |
```
|
63 |
|
64 |
-
And our prior work
|
65 |
|
66 |
```
|
67 |
@InProceedings{brooks2022instructpix2pix,
|
|
|
4 |
|
5 |
# InstructPix2Pix checkpoint fine-tuned on [MagicBrush](https://osu-nlp-group.github.io/MagicBrush/).
|
6 |
|
7 |
+
## 1. Env Setup
|
8 |
|
9 |
To use this checkpoint on InstructPix2Pix model, set up env like this:
|
10 |
|
|
|
14 |
mkdir checkpoints
|
15 |
```
|
16 |
|
17 |
+
Download this checkpoint into `checkpoints` folder via
|
18 |
|
19 |
```shell
|
20 |
cd checkpoints
|
|
|
23 |
|
24 |
Then go back to the root folder and set up the env following the instructpix2pix guidelines.
|
25 |
|
26 |
+
## 2. Launch
|
27 |
|
28 |
### Edit a single image:
|
29 |
|
|
|
35 |
```
|
36 |
|
37 |
|
38 |
+
### Run the interactive editing Gradio app:
|
|
|
39 |
|
40 |
```python
|
41 |
python edit_app.py --ckpt checkpoints/MagicBrush-epoch-000168.ckpt
|
|
|
43 |
|
44 |
|
45 |
|
|
|
|
|
46 |
## Citation
|
47 |
|
48 |
If you find this checkpoint useful, please consider citing our paper:
|
|
|
58 |
}
|
59 |
```
|
60 |
|
61 |
+
And our prior work:
|
62 |
|
63 |
```
|
64 |
@InProceedings{brooks2022instructpix2pix,
|