()
| 15 | |
| 16 | |
| 17 | def enable_sliced_attention(): |
| 18 | ldm.modules.attention.CrossAttention.forward = _hacked_sliced_attentin_forward |
| 19 | print('Enabled sliced_attention.') |
| 20 | return |
| 21 | |
| 22 | |
| 23 | def hack_everything(clip_skip=0): |
nothing calls this directly
no outgoing calls
no test coverage detected