AndranikSargsyan
add support for diffusers checkpoint loading
f1cc496
raw
history blame contribute delete
No virus
360 Bytes
from . import attentionpatch
from . import transformerpatch
attention_forward = attentionpatch.default.forward
basic_transformer_forward = transformerpatch.default.forward
def reset():
global attention_forward, basic_transformer_forward
attention_forward = attentionpatch.default.forward
basic_transformer_forward = transformerpatch.default.forward