Commit 1d37f42
Modify the implementation of retrieve_timesteps in CogView4-Control. (#11125)
* 1
* change to channel 1
* cogview4 control training
* add CacheMixin
* 1
* remove initial_input_channels change for val
* 1
* update
* use 3.5
* new loss
* 1
* use imagetoken
* for megatron convert
* 1
* train con and uc
* 2
* remove guidance_scale
* Update pipeline_cogview4_control.py
* fix
* use cogview4 pipeline with timestep
* update shift_factor
* remove the uncond
* add max length
* change convert and use GLMModel instead of GLMForCasualLM
* fix
* [cogview4] Add attention mask support to transformer model
* [fix] Add attention mask for padded token
* update
* remove padding type
* Update train_control_cogview4.py
* resolve conflicts with #10981
* add control convert
* use control format
* fix
* add missing import
* update with cogview4 formate
* make style
* Update pipeline_cogview4_control.py
* Update pipeline_cogview4_control.py
* remove
* Update pipeline_cogview4_control.py
* put back
* Apply style fixes
---------
Co-authored-by: OleehyO <leehy0357@gmail.com>
Co-authored-by: yiyixuxu <yixu310@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 0213179 commit 1d37f42
File tree
1 file changed
+17
-10
lines changed- src/diffusers/pipelines/cogview4
1 file changed
+17
-10
lines changedLines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
103 | 106 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
| |||
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 124 | + | |
| 125 | + | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
| |||
515 | 523 | | |
516 | 524 | | |
517 | 525 | | |
518 | | - | |
519 | | - | |
| 526 | + | |
| 527 | + | |
520 | 528 | | |
521 | 529 | | |
522 | 530 | | |
| |||
532 | 540 | | |
533 | 541 | | |
534 | 542 | | |
535 | | - | |
536 | 543 | | |
537 | 544 | | |
538 | 545 | | |
| |||
0 commit comments