Commit f1e0c7c
Refactor instructpix2pix lora to support peft (huggingface#10205)
* make base code changes referred from train_instructpix2pix script in examples
* change code to use PEFT as discussed in issue 10062
* update README training command
* update README training command
* refactor variable name and freezing unet
* Update examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py
Co-authored-by: Sayak Paul <[email protected]>
* update README installation instructions.
* cleanup code using make style and quality
---------
Co-authored-by: Sayak Paul <[email protected]>1 parent b94cfd7 commit f1e0c7c
File tree
2 files changed
+263
-125
lines changed- examples/research_projects/instructpix2pix_lora
2 files changed
+263
-125
lines changedLines changed: 33 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 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 | + | |
5 | 33 | | |
6 | 34 | | |
7 | 35 | | |
8 | 36 | | |
9 | 37 | | |
10 | 38 | | |
11 | 39 | | |
12 | | - | |
| 40 | + | |
13 | 41 | | |
14 | 42 | | |
15 | 43 | | |
| |||
24 | 52 | | |
25 | 53 | | |
26 | 54 | | |
27 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
28 | 59 | | |
29 | 60 | | |
30 | 61 | | |
| |||
0 commit comments