mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
@@ -21,6 +21,6 @@ def hijack_encode_prompt(*args, **kwargs):
|
||||
|
||||
def init_hijack(pipe):
|
||||
if shared.opts.te_hijack and pipe is not None and not hasattr(pipe, 'orig_encode_prompt') and hasattr(pipe, 'encode_prompt'):
|
||||
shared.log.debug(f'Model: cls={pipe.__class__.__name__} hijack encode')
|
||||
# shared.log.debug(f'Model: cls={pipe.__class__.__name__} hijack encode')
|
||||
pipe.orig_encode_prompt = pipe.encode_prompt
|
||||
pipe.encode_prompt = hijack_encode_prompt
|
||||
|
||||
Reference in New Issue
Block a user