mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
don't restore None
This commit is contained in:
parent
fb312f9ed3
commit
c381788ab9
@ -69,7 +69,8 @@ class InvokeAIDiffuserComponent:
|
||||
try:
|
||||
yield None
|
||||
finally:
|
||||
self.remove_cross_attention_control(old_attn_processor)
|
||||
if old_attn_processor is not None:
|
||||
self.remove_cross_attention_control(old_attn_processor)
|
||||
# TODO resuscitate attention map saving
|
||||
#self.remove_attention_map_saving()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user